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

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

Issue 2280153002: Refactoring out the code in LayoutTreeAsText::writeLayoutObject. (Closed)
Patch Set: Revert to Original Impl 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/LayoutObject.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.cpp b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
index 86d1e889b5fd5bd972f422ba3ca92380bb70160f..edca61dc55e4867b12316f582ac82bdd08535666 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
@@ -3244,6 +3244,16 @@ ObjectPaintProperties& LayoutObject::ensureObjectPaintProperties()
return *addResult.storedValue->value;
}
+LayoutRect LayoutObject::debugRect() const
+{
+ LayoutRect rect;
+ LayoutBlock* block = containingBlock();
+ if (block)
+ block->adjustChildDebugRect(rect);
+
+ return rect;
+}
+
} // namespace blink
#ifndef NDEBUG

Powered by Google App Engine
This is Rietveld 408576698