Index: Source/core/css/resolver/StyleBuilderConverter.cpp |
diff --git a/Source/core/css/resolver/StyleBuilderConverter.cpp b/Source/core/css/resolver/StyleBuilderConverter.cpp |
index e25942f7d5636c7f4f4a1aa29009fa95403d43ab..8ef1c6b4acc93c9b061fdf9fec42454d83c619e9 100644 |
--- a/Source/core/css/resolver/StyleBuilderConverter.cpp |
+++ b/Source/core/css/resolver/StyleBuilderConverter.cpp |
@@ -34,6 +34,7 @@ |
#include "core/css/CSSReflectValue.h" |
#include "core/css/CSSShadowValue.h" |
#include "core/css/Pair.h" |
+#include "core/css/Rect.h" |
#include "core/svg/SVGURIReference.h" |
namespace blink { |
@@ -91,6 +92,16 @@ AtomicString StyleBuilderConverter::convertFragmentIdentifier(StyleResolverState |
return nullAtom; |
} |
+LengthBox StyleBuilderConverter::convertClip(StyleResolverState& state, CSSValue* value) |
+{ |
+ Rect* rect = toCSSPrimitiveValue(value)->getRectValue(); |
+ |
+ return LengthBox(convertLengthOrAuto(state, rect->top()), |
+ convertLengthOrAuto(state, rect->right()), |
+ convertLengthOrAuto(state, rect->bottom()), |
+ convertLengthOrAuto(state, rect->left())); |
+} |
+ |
PassRefPtr<FontFeatureSettings> StyleBuilderConverter::convertFontFeatureSettings(StyleResolverState& state, CSSValue* value) |
{ |
if (value->isPrimitiveValue() && toCSSPrimitiveValue(value)->getValueID() == CSSValueNormal) |