Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(666)

Unified Diff: third_party/WebKit/Source/core/paint/EmbeddedObjectPaintInvalidator.cpp

Issue 2764313002: Move plugins to be stored in HTMLPlugInElement. (Closed)
Patch Set: Update comments about duplicating code Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/paint/EmbeddedObjectPaintInvalidator.cpp
diff --git a/third_party/WebKit/Source/core/paint/EmbeddedObjectPaintInvalidator.cpp b/third_party/WebKit/Source/core/paint/EmbeddedObjectPaintInvalidator.cpp
index 4aa26d6277face07cd9a2f033cb1ae5a0682a99f..4774e8f5257064631ba70c882fcf0373fa00d680 100644
--- a/third_party/WebKit/Source/core/paint/EmbeddedObjectPaintInvalidator.cpp
+++ b/third_party/WebKit/Source/core/paint/EmbeddedObjectPaintInvalidator.cpp
@@ -16,9 +16,9 @@ EmbeddedObjectPaintInvalidator::invalidatePaintIfNeeded() {
BoxPaintInvalidator(m_embeddedObject, m_context)
.invalidatePaintIfNeeded();
- FrameViewBase* frameViewBase = m_embeddedObject.frameViewBase();
- if (frameViewBase && frameViewBase->isPluginView())
- toPluginView(frameViewBase)->invalidatePaintIfNeeded();
+ PluginView* plugin = m_embeddedObject.plugin();
+ if (plugin)
+ plugin->invalidatePaintIfNeeded();
return reason;
}

Powered by Google App Engine
This is Rietveld 408576698