Index: Source/core/css/CSSComputedStyleDeclaration.cpp |
diff --git a/Source/core/css/CSSComputedStyleDeclaration.cpp b/Source/core/css/CSSComputedStyleDeclaration.cpp |
index 01985b62e0649bf5720624fe0fe4c2f01833f7e9..37ef5411c1276260eda79819bbcf5ce26747665b 100644 |
--- a/Source/core/css/CSSComputedStyleDeclaration.cpp |
+++ b/Source/core/css/CSSComputedStyleDeclaration.cpp |
@@ -157,6 +157,8 @@ static const CSSPropertyID staticComputableProperties[] = { |
CSSPropertyMinHeight, |
CSSPropertyMinWidth, |
CSSPropertyMixBlendMode, |
+ CSSPropertyObjectFit, |
+ CSSPropertyObjectPosition, |
CSSPropertyOpacity, |
CSSPropertyOrphans, |
CSSPropertyOutlineColor, |
@@ -519,7 +521,7 @@ static PassRefPtr<CSSValue> valueForNinePieceImageRepeat(const NinePieceImage& i |
verticalRepeat = horizontalRepeat; |
else |
verticalRepeat = cssValuePool().createIdentifierValue(valueForRepeatRule(image.verticalRule())); |
- return cssValuePool().createValue(Pair::create(horizontalRepeat.release(), verticalRepeat.release())); |
+ return cssValuePool().createValue(Pair::create(horizontalRepeat.release(), verticalRepeat.release(), Pair::DropIdenticalValues)); |
} |
static PassRefPtr<CSSValue> valueForNinePieceImage(const NinePieceImage& image, const RenderStyle* style) |
@@ -2173,6 +2175,12 @@ PassRefPtr<CSSValue> CSSComputedStyleDeclaration::getPropertyCSSValue(CSSPropert |
return zoomAdjustedPixelValueForLength(style->minWidth(), style.get()); |
case CSSPropertyObjectFit: |
return cssValuePool().createValue(style->objectFit()); |
+ case CSSPropertyObjectPosition: |
+ return cssValuePool().createValue( |
+ Pair::create( |
+ cssValuePool().createValue(style->objectPosition().x()), |
+ cssValuePool().createValue(style->objectPosition().y()), |
+ Pair::KeepIdenticalValues)); |
case CSSPropertyOpacity: |
return cssValuePool().createValue(style->opacity(), CSSPrimitiveValue::CSS_NUMBER); |
case CSSPropertyOrphans: |