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

Unified Diff: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.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/layout/compositing/CompositedLayerMapping.cpp
diff --git a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
index a9d98d6c4e33a57f276cb1c0a0153326061ebce8..961486217260411a00f2e2e69167b480cd775b2f 100644
--- a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
+++ b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
@@ -148,11 +148,8 @@ static bool contentLayerSupportsDirectBackgroundComposition(
static WebLayer* platformLayerForPlugin(LayoutObject& layoutObject) {
if (!layoutObject.isEmbeddedObject())
return nullptr;
- FrameViewBase* frameViewBase =
- toLayoutEmbeddedObject(layoutObject).frameViewBase();
- if (!frameViewBase || !frameViewBase->isPluginView())
- return nullptr;
- return toPluginView(frameViewBase)->platformLayer();
+ PluginView* plugin = toLayoutEmbeddedObject(layoutObject).plugin();
+ return plugin ? plugin->platformLayer() : nullptr;
}
static inline bool isAcceleratedContents(LayoutObject& layoutObject) {

Powered by Google App Engine
This is Rietveld 408576698