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

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

Issue 2280153002: Refactoring out the code in LayoutTreeAsText::writeLayoutObject. (Closed)
Patch Set: Initial commit Created 4 years, 4 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
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..1f7662e410be6c84d082880b426021eb91f39416 100644
--- a/third_party/WebKit/Source/core/layout/LayoutInline.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutInline.cpp
@@ -1369,4 +1369,14 @@ 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.
benjhayden 2016/08/29 20:45:27 Would it be possible to go ahead and use linesBox.
lunalu1 2016/08/30 20:35:30 I will use linesBox.x() and linesBox.y() for now,
+LayoutRect LayoutInline::debugRect() const
+{
+ IntRect linesBox = enclosingIntRect(linesBoundingBox());
+ LayoutRect r = LayoutRect(IntRect(IntRect(0, 0, linesBox.width(), linesBox.height())));
+
+ setLayoutRectDimForLayoutView(r);
+ return r;
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698