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

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

Issue 2068723002: Paint local attachment backgrounds into composited scrolling contents layer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge and fix test expectations. Created 4 years, 4 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: third_party/WebKit/Source/core/layout/LayoutBox.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.h b/third_party/WebKit/Source/core/layout/LayoutBox.h
index 06152bea1a748b6d3f5d32ed05d27f387d798166..d5e0e4f892f6c42ff5c564204ebdbc137dbe0f15 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBox.h
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.h
@@ -45,6 +45,7 @@ enum AvailableLogicalHeightType { ExcludeMarginBorderPadding, IncludeMarginBorde
// clipping behavior. During hit testing, overlay scrollbars behave like regular
// scrollbars and should change how hit testing is clipped.
enum MarginDirection { BlockDirection, InlineDirection };
+enum BackgroundRectType { BackgroundClipRect, BackgroundKnownOpaqueRect };
enum ShouldComputePreferred { ComputeActual, ComputePreferred };
@@ -355,8 +356,8 @@ public:
IntSize absoluteContentBoxOffset() const;
// The content box converted to absolute coords (taking transforms into account).
FloatQuad absoluteContentQuad() const;
- // The clip rect of the background.
- LayoutRect backgroundClipRect() const;
+ // The enclosing rectangle of the background with given opacity requirement.
+ LayoutRect backgroundRect(BackgroundRectType) const;
// This returns the content area of the box (excluding padding and border). The only difference with contentBoxRect is that computedCSSContentBoxRect
// does include the intrinsic padding in the content box as this is what some callers expect (like getComputedStyle).

Powered by Google App Engine
This is Rietveld 408576698