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

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

Issue 2511893002: Paint solid color background into both scrolling contents layer and graphics layer. (Closed)
Patch Set: Add Mac rebaselines. Created 4 years 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: third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h b/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h
index 3fee2b996fd0f39c8a7c3f1880295af9ed860165..301f9122e1133234aa05938449f716a4b6add359 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h
+++ b/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h
@@ -47,6 +47,12 @@ enum PaintLayerType {
ForcedPaintLayer
};
+enum : uint32_t {
+ BackgroundPaintInGraphicsLayer = 1 << 0,
+ BackgroundPaintInScrollingContents = 1 << 1
+};
+using BackgroundPaintLocation = uint32_t;
+
// Modes for some of the line-related functions.
enum LinePositionMode { PositionOnContainingLine, PositionOfInteriorLineBoxes };
enum LineDirectionMode { HorizontalLine, VerticalLine };
@@ -191,9 +197,9 @@ class CORE_EXPORT LayoutBoxModelObject : public LayoutObject {
bool hasNonEmptyLayoutSize() const;
bool usesCompositedScrolling() const;
- // Checks if all of the background's layers can be painted as locally
- // attached.
- bool hasLocalEquivalentBackground() const;
+ // Returns which layers backgrounds should be painted into for overflow
+ // scrolling boxes.
+ BackgroundPaintLocation backgroundPaintLocation() const;
// These return the CSS computed padding values.
LayoutUnit computedCSSPaddingTop() const {

Powered by Google App Engine
This is Rietveld 408576698