Index: third_party/WebKit/Source/core/layout/LayoutEmbeddedObject.cpp |
diff --git a/third_party/WebKit/Source/core/layout/LayoutEmbeddedObject.cpp b/third_party/WebKit/Source/core/layout/LayoutEmbeddedObject.cpp |
index 9263bd578574b120dbb607dc3552329a72f4d36a..e19d3466670bc9761d8beb648eca660d2e109b37 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutEmbeddedObject.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutEmbeddedObject.cpp |
@@ -157,9 +157,9 @@ CompositingReasons LayoutEmbeddedObject::AdditionalCompositingReasons() const { |
} |
LayoutReplaced* LayoutEmbeddedObject::EmbeddedReplacedContent() const { |
- if (!GetNode() || !GetFrameViewBase() || !GetFrameViewBase()->IsFrameView()) |
- return nullptr; |
- return ToFrameView(GetFrameViewBase())->EmbeddedReplacedContent(); |
+ if (FrameView* frame_view = ChildFrameView()) |
+ return frame_view->EmbeddedReplacedContent(); |
+ return nullptr; |
} |
} // namespace blink |