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

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

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/LayoutObject.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.h b/third_party/WebKit/Source/core/layout/LayoutObject.h
index dc73053c81ea21d00a0caf54fa45638805215bbe..ecd2587a18a7ee76be63b5e2202fc150bacf4c8b 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.h
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.h
@@ -1366,6 +1366,15 @@ public:
// Called before anonymousChild.setStyle(). Override to set custom styles for the child.
virtual void updateAnonymousChildStyle(const LayoutObject& anonymousChild, ComputedStyle& style) const { }
+ // Returns a rect corresponding to this LayoutObject's bounds for use in debugging output
+ virtual LayoutRect debugRect() const
+ {
+ // This method should never be reached as it's overriden by subclasses.
+ NOTREACHED();
+ LayoutRect r;
+ return r;
+ }
+
// Painters can use const methods only, except for these explicitly declared methods.
class MutableForPainting {
public:

Powered by Google App Engine
This is Rietveld 408576698