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

Unified Diff: third_party/WebKit/Source/core/style/ComputedStyleConstants.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: Add/update tests and simplify added code. 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/style/ComputedStyleConstants.h
diff --git a/third_party/WebKit/Source/core/style/ComputedStyleConstants.h b/third_party/WebKit/Source/core/style/ComputedStyleConstants.h
index 57a6689f7b3b1b5c61f96e982493218bdd35458e..7d9682506a0520cc369aa82023febfef80c53b23 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyleConstants.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyleConstants.h
@@ -179,6 +179,17 @@ enum EFillBox {
BorderFillBox, PaddingFillBox, ContentFillBox, TextFillBox
};
+inline EFillBox enclosingFillBox(EFillBox boxA, EFillBox boxB)
+{
+ if (boxA == BorderFillBox || boxB == BorderFillBox)
+ return BorderFillBox;
+ if (boxA == PaddingFillBox || boxB == PaddingFillBox)
+ return PaddingFillBox;
+ if (boxA == ContentFillBox || boxB == ContentFillBox)
+ return ContentFillBox;
+ return TextFillBox;
+}
+
enum EFillRepeat {
RepeatFill, NoRepeatFill, RoundFill, SpaceFill
};

Powered by Google App Engine
This is Rietveld 408576698