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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutTreeAsText.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/LayoutTreeAsText.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp b/third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp
index 97bb06a31ffbb2ea121ed4e672c6981068e5390d..598c528548c10d404466d192f04ea41cae868334 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp
@@ -529,10 +529,9 @@ void Write(TextStream& ts,
}
if (o.IsLayoutPart()) {
- FrameViewBase* frame_view_base = ToLayoutPart(o).GetFrameViewBase();
- if (frame_view_base && frame_view_base->IsFrameView()) {
- FrameView* view = ToFrameView(frame_view_base);
- LayoutViewItem root_item = view->GetLayoutViewItem();
+ FrameView* frame_view = ToLayoutPart(o).GetNodeFrameView();
+ if (frame_view) {
+ LayoutViewItem root_item = frame_view->GetLayoutViewItem();
if (!root_item.IsNull()) {
root_item.UpdateStyleAndLayout();
PaintLayer* layer = root_item.Layer();

Powered by Google App Engine
This is Rietveld 408576698