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); |
} |