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

Unified Diff: Source/core/rendering/RenderObject.h

Issue 396073002: Remove 2 calls to paintInvalidationForWholeRenderer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaselined patch for landing Created 6 years, 5 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
« no previous file with comments | « Source/core/rendering/RenderBox.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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); }
« no previous file with comments | « Source/core/rendering/RenderBox.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698