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

Unified Diff: Source/core/layout/LayoutBoxModelObject.h

Issue 1145993002: Refactor root element background painting (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase, adding back TestExpectation Created 5 years, 6 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/layout/LayoutBox.cpp ('k') | Source/core/layout/LayoutBoxModelObject.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutBoxModelObject.h
diff --git a/Source/core/layout/LayoutBoxModelObject.h b/Source/core/layout/LayoutBoxModelObject.h
index 125f63dc509a1d931b7cdedc9534b39ab0d618ca..c1cb0b18352ce902be9978b7e9bb9a3c4de6fccf 100644
--- a/Source/core/layout/LayoutBoxModelObject.h
+++ b/Source/core/layout/LayoutBoxModelObject.h
@@ -204,6 +204,11 @@ public:
void invalidateDisplayItemClientOnBacking(const DisplayItemClientWrapper&) const;
+ // http://www.w3.org/TR/css3-background/#body-background
+ // <html> root element with no background steals background from its first <body> child.
+ // The used background for such body element should be the initial value. (i.e. transparent)
+ bool backgroundStolenForBeingBody(const ComputedStyle* rootElementStyle = nullptr) const;
+
protected:
virtual void willBeDestroyed() override;
« no previous file with comments | « Source/core/layout/LayoutBox.cpp ('k') | Source/core/layout/LayoutBoxModelObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698