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 a2816297526db24266be19aff26e2af74e2d2f99..022d229658e20f736f11ce987bacde56760b2331 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutObject.h |
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.h |
@@ -1366,6 +1366,16 @@ public: |
// Called before anonymousChild.setStyle(). Override to set custom styles for the child. |
virtual void updateAnonymousChildStyle(const LayoutObject& anonymousChild, ComputedStyle& style) const { } |
+ // Fixed implementation for LayoutText, LayoutInline, LayoutTableCell and |
+ // LayoutBox. |
+ 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: |