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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutEmbeddedObject.cpp

Issue 2810873007: Replace LayoutPart::GetFrameViewBase with GetNodeFrameView (Closed)
Patch Set: 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/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

Powered by Google App Engine
This is Rietveld 408576698