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

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

Issue 1995853003: [Layout API] Use FrameView::layoutViewItem() in LayoutTreeAsText.cpp (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/api/LayoutItem.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 6fb97d71d5be4ff792e5e6783ce763012ea93e62..a24c26f3306d36101f52e82dd310376594d7e429 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp
@@ -539,10 +539,10 @@ void write(TextStream& ts, const LayoutObject& o, int indent, LayoutAsTextBehavi
Widget* widget = toLayoutPart(o).widget();
if (widget && widget->isFrameView()) {
FrameView* view = toFrameView(widget);
- LayoutView* root = view->layoutView();
- if (root) {
- root->document().updateStyleAndLayout();
- PaintLayer* layer = root->layer();
+ LayoutViewItem rootItem = view->layoutViewItem();
+ if (!rootItem.isNull()) {
+ rootItem.updateStyleAndLayout();
+ PaintLayer* layer = rootItem.layer();
if (layer)
LayoutTreeAsText::writeLayers(ts, layer, layer, layer->rect(), indent + 1, behavior);
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/api/LayoutItem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698