Index: Source/core/rendering/RenderObject.h |
diff --git a/Source/core/rendering/RenderObject.h b/Source/core/rendering/RenderObject.h |
index a646439133714d3716f98c8a827fec809e70a082..1975ed16046eecbe6ed469f16e300cd38c25f069 100644 |
--- a/Source/core/rendering/RenderObject.h |
+++ b/Source/core/rendering/RenderObject.h |
@@ -389,6 +389,9 @@ public: |
virtual bool isVideo() const { return false; } |
virtual bool isWidget() const { return false; } |
+ // The background of the root element or the body element could propagate up to the canvas. |
+ bool backgroundCanBleedToCanvas() const { return isBody() || isDocumentElement(); } |
+ |
bool isDocumentElement() const { return document().documentElement() == m_node; } |
// isBody is called from RenderBox::styleWillChange and is thus quite hot. |
bool isBody() const { return node() && node()->hasTagName(HTMLNames::bodyTag); } |