| 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 a60df869c8d06488197bb815a35fb020ded16b91..0d14972763720f2881c1cde6d1a50a6a86625685 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 = GetNodeFrameView())
|
| + return frame_view->EmbeddedReplacedContent();
|
| + return nullptr;
|
| }
|
|
|
| } // namespace blink
|
|
|