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

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: fix under invalidation (override LayoutView::visualOverflowRect), revise LayoutBoxModelObject::styl… 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
Index: Source/core/layout/LayoutBoxModelObject.h
diff --git a/Source/core/layout/LayoutBoxModelObject.h b/Source/core/layout/LayoutBoxModelObject.h
index 1b8983ad4bf164df154962e63a163809af3f32b3..52b5f5b4900b9f875d6adfefa2612d45f55d19ac 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;

Powered by Google App Engine
This is Rietveld 408576698