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 9328460562c2e41ae35001f33e58dda965ee8de8..84f64b1d3bc19c228698baa43e2c857d17b93c23 100644 |
--- a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp |
+++ b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp |
@@ -151,10 +151,10 @@ static bool contentLayerSupportsDirectBackgroundComposition( |
static WebLayer* platformLayerForPlugin(LayoutObject& layoutObject) { |
if (!layoutObject.isEmbeddedObject()) |
return nullptr; |
- Widget* widget = toLayoutEmbeddedObject(layoutObject).widget(); |
- if (!widget || !widget->isPluginView()) |
+ FrameViewBase* frameViewBase = toLayoutEmbeddedObject(layoutObject).widget(); |
+ if (!frameViewBase || !frameViewBase->isPluginView()) |
return nullptr; |
- return toPluginView(widget)->platformLayer(); |
+ return toPluginView(frameViewBase)->platformLayer(); |
} |
static inline bool isAcceleratedContents(LayoutObject& layoutObject) { |