| Index: Source/core/rendering/RenderObject.h
|
| diff --git a/Source/core/rendering/RenderObject.h b/Source/core/rendering/RenderObject.h
|
| index d0fab2e388e5d315914104eb7a911e29a24816aa..7de74d7aea2bccaeb3322a4633c2f553d186cf72 100644
|
| --- a/Source/core/rendering/RenderObject.h
|
| +++ b/Source/core/rendering/RenderObject.h
|
| @@ -386,6 +386,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); }
|
|
|