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

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: 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/style/ComputedStyleConstants.h
diff --git a/third_party/WebKit/Source/core/style/ComputedStyleConstants.h b/third_party/WebKit/Source/core/style/ComputedStyleConstants.h
index 7b259ea7438aff334d4488e9ad4bb7be6d13d5e5..61646e5585c7fa94f3a741bd64ad68a6b3e8939b 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyleConstants.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyleConstants.h
@@ -180,6 +180,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
};
« no previous file with comments | « third_party/WebKit/Source/core/style/ComputedStyle.cpp ('k') | third_party/WebKit/Source/core/style/FillLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698