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

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

Issue 2280153002: Refactoring out the code in LayoutTreeAsText::writeLayoutObject. (Closed)
Patch Set: Codereview update Created 4 years, 3 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 5e8c2189902f9de46259c5ca3ab902728e1d423c..7f87b734fd6179e876e9bd2dcff6460b652f7d24 100644
--- a/third_party/WebKit/Source/core/layout/LayoutInline.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutInline.cpp
@@ -1369,4 +1369,12 @@ void LayoutInline::invalidateDisplayItemClients(PaintInvalidationReason invalida
paintInvalidator.invalidateDisplayItemClient(*box, invalidationReason);
}
+LayoutRect LayoutInline::debugRect() const
+{
+ LayoutRect linesBox = linesBoundingBox();
+ LayoutRect rect = LayoutRect(linesBox);
skobes 2016/09/12 17:09:35 This line doesn't do anything. You can inline the
lunalu1 2016/09/12 17:48:48 Done.
+
+ return rect;
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698