Index: third_party/WebKit/Source/core/layout/TracedLayoutObject.cpp |
diff --git a/third_party/WebKit/Source/core/layout/TracedLayoutObject.cpp b/third_party/WebKit/Source/core/layout/TracedLayoutObject.cpp |
index efc34549d1ec8945943d321e6697697066066893..2577df4c5f2935766b846aba3ace0f8b91407521 100644 |
--- a/third_party/WebKit/Source/core/layout/TracedLayoutObject.cpp |
+++ b/third_party/WebKit/Source/core/layout/TracedLayoutObject.cpp |
@@ -37,15 +37,7 @@ void dumpToTracedValue(const LayoutObject& object, bool traceGeometry, TracedVal |
// FIXME: When the fixmes in LayoutTreeAsText::writeLayoutObject() are |
// fixed, deduplicate it with this. |
if (traceGeometry) { |
- tracedValue->setDouble("absX", object.absoluteBoundingBoxRect().x()); |
benjhayden
2016/08/29 20:45:27
Can you restore absX and absY? Sorry, I realize I
lunalu1
2016/08/30 20:35:30
Done.
|
- tracedValue->setDouble("absY", object.absoluteBoundingBoxRect().y()); |
- LayoutRect rect; |
- if (object.isText()) |
- rect = LayoutRect(toLayoutText(object).linesBoundingBox()); |
- else if (object.isLayoutInline()) |
- rect = LayoutRect(toLayoutInline(object).linesBoundingBox()); |
- else if (object.isBox()) |
- rect = toLayoutBox(&object)->frameRect(); |
+ LayoutRect rect = object.debugRect(); |
tracedValue->setDouble("relX", rect.x()); |
tracedValue->setDouble("relY", rect.y()); |
tracedValue->setDouble("width", rect.width()); |