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

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

Issue 2810873007: Replace LayoutPart::GetFrameViewBase with GetNodeFrameView (Closed)
Patch Set: No need for child_frame_view var 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 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

Powered by Google App Engine
This is Rietveld 408576698