Index: third_party/WebKit/Source/core/layout/LayoutInline.cpp |
diff --git a/third_party/WebKit/Source/core/layout/LayoutInline.cpp b/third_party/WebKit/Source/core/layout/LayoutInline.cpp |
index 5277c70df08b6b99419fb3e7eac9adb45e4206d4..be149451223c064752126778ece9b495fa791c17 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutInline.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutInline.cpp |
@@ -1369,4 +1369,13 @@ void LayoutInline::invalidateDisplayItemClients(PaintInvalidationReason invalida |
paintInvalidator.invalidateDisplayItemClient(*box, invalidationReason); |
} |
+// FIXME: Would be better not to just dump 0, 0 as the x and y here. |
+LayoutRect LayoutInline::debugRect() const |
+{ |
+ IntRect linesBox = enclosingIntRect(linesBoundingBox()); |
+ LayoutRect r = LayoutRect(IntRect(IntRect(linesBox.x(), linesBox.y(), linesBox.width(), linesBox.height()))); |
+ |
+ return r; |
+} |
+ |
} // namespace blink |