Index: third_party/WebKit/Source/core/layout/LayoutObject.cpp |
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.cpp b/third_party/WebKit/Source/core/layout/LayoutObject.cpp |
index 66cb9ed15a87486bad9237ce03a9705a17880a2f..82f997e21b47262a73f480184a182cccab0c3146 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp |
@@ -1643,8 +1643,10 @@ void LayoutObject::showLayoutTreeForThis() const |
void LayoutObject::showLineTreeForThis() const |
{ |
- if (containingBlock()) |
- containingBlock()->showLineTreeAndMark(0, 0, 0, 0, this); |
+ if (LayoutBlock* cb = containingBlock()) { |
+ if (cb->isLayoutBlockFlow()) |
+ toLayoutBlockFlow(cb)->showLineTreeAndMark(nullptr, nullptr, nullptr, nullptr, this); |
+ } |
} |
void LayoutObject::showLayoutObject() const |