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 |
}; |