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

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

Issue 2280153002: Refactoring out the code in LayoutTreeAsText::writeLayoutObject. (Closed)
Patch Set: Rename helper 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/LayoutBox.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.cpp b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
index 48925626d7d27e253620d5c424a23370aae3b42b..962c54780caf00f226a34dac405c6a3643efa25a 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
@@ -4851,4 +4851,15 @@ SnapAreaSet* LayoutBox::snapAreas() const
return m_rareData ? m_rareData->m_snapAreas.get() : nullptr;
}
+LayoutRect LayoutBox::debugRect() const
+{
+ LayoutRect r = frameRect();
skobes 2016/09/09 20:27:41 We generally avoid single-letter abbreviations in
lunalu1 2016/09/12 14:45:13 Done.
+
+ LayoutBlock* cb = containingBlock();
+ if (cb)
+ cb->adjustChildDebugRect(r);
+
+ return r;
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698