Index: Source/core/css/CSSComputedStyleDeclaration.cpp |
diff --git a/Source/core/css/CSSComputedStyleDeclaration.cpp b/Source/core/css/CSSComputedStyleDeclaration.cpp |
index df4b2313f8b2e465e57ed5e243a90feace7e26b9..d49f3bd519e7f572af606f3b2355ae5ff85c66fb 100644 |
--- a/Source/core/css/CSSComputedStyleDeclaration.cpp |
+++ b/Source/core/css/CSSComputedStyleDeclaration.cpp |
@@ -221,6 +221,7 @@ static const CSSPropertyID staticComputableProperties[] = { |
CSSPropertyWebkitAnimationPlayState, |
CSSPropertyWebkitAnimationTimingFunction, |
CSSPropertyWebkitAppearance, |
+ CSSPropertyBackfaceVisibility, |
CSSPropertyWebkitBackfaceVisibility, |
CSSPropertyWebkitBackgroundClip, |
CSSPropertyWebkitBackgroundComposite, |
@@ -296,7 +297,9 @@ static const CSSPropertyID staticComputableProperties[] = { |
CSSPropertyWebkitMaskRepeat, |
CSSPropertyWebkitMaskSize, |
CSSPropertyOrder, |
+ CSSPropertyPerspective, |
CSSPropertyWebkitPerspective, |
+ CSSPropertyPerspectiveOrigin, |
CSSPropertyWebkitPerspectiveOrigin, |
CSSPropertyWebkitPrintColorAdjust, |
CSSPropertyWebkitRtlOrdering, |
@@ -316,8 +319,11 @@ static const CSSPropertyID staticComputableProperties[] = { |
CSSPropertyWebkitTextSecurity, |
CSSPropertyWebkitTextStrokeColor, |
CSSPropertyWebkitTextStrokeWidth, |
+ CSSPropertyTransform, |
CSSPropertyWebkitTransform, |
+ CSSPropertyTransformOrigin, |
CSSPropertyWebkitTransformOrigin, |
+ CSSPropertyTransformStyle, |
CSSPropertyWebkitTransformStyle, |
CSSPropertyWebkitTransitionDelay, |
CSSPropertyWebkitTransitionDuration, |
@@ -1490,8 +1496,11 @@ static bool isLayoutDependent(CSSPropertyID propertyID, PassRefPtr<RenderStyle> |
case CSSPropertyLeft: |
case CSSPropertyRight: |
case CSSPropertyTop: |
+ case CSSPropertyPerspectiveOrigin: |
case CSSPropertyWebkitPerspectiveOrigin: |
+ case CSSPropertyTransform: |
case CSSPropertyWebkitTransform: |
+ case CSSPropertyTransformOrigin: |
case CSSPropertyWebkitTransformOrigin: |
case CSSPropertyWidth: |
case CSSPropertyWebkitFilter: |
@@ -2470,6 +2479,7 @@ PassRefPtrWillBeRawPtr<CSSValue> CSSComputedStyleDeclaration::getPropertyCSSValu |
if (!style->hasAspectRatio()) |
return cssValuePool().createIdentifierValue(CSSValueNone); |
return CSSAspectRatioValue::create(style->aspectRatioNumerator(), style->aspectRatioDenominator()); |
+ case CSSPropertyBackfaceVisibility: |
case CSSPropertyWebkitBackfaceVisibility: |
return cssValuePool().createIdentifierValue((style->backfaceVisibility() == BackfaceVisibilityHidden) ? CSSValueHidden : CSSValueVisible); |
case CSSPropertyWebkitBorderImage: |
@@ -2505,10 +2515,12 @@ PassRefPtrWillBeRawPtr<CSSValue> CSSComputedStyleDeclaration::getPropertyCSSValu |
case CSSPropertyWebkitMarginTopCollapse: |
case CSSPropertyWebkitMarginBeforeCollapse: |
return cssValuePool().createValue(style->marginBeforeCollapse()); |
+ case CSSPropertyPerspective: |
case CSSPropertyWebkitPerspective: |
if (!style->hasPerspective()) |
return cssValuePool().createIdentifierValue(CSSValueNone); |
return zoomAdjustedPixelValue(style->perspective(), *style); |
+ case CSSPropertyPerspectiveOrigin: |
case CSSPropertyWebkitPerspectiveOrigin: { |
RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createSpaceSeparated(); |
if (renderer) { |
@@ -2554,8 +2566,10 @@ PassRefPtrWillBeRawPtr<CSSValue> CSSComputedStyleDeclaration::getPropertyCSSValu |
} |
case CSSPropertySpeak: |
return cssValuePool().createValue(style->speak()); |
+ case CSSPropertyTransform: |
case CSSPropertyWebkitTransform: |
return computedTransform(renderer, *style); |
+ case CSSPropertyTransformOrigin: |
case CSSPropertyWebkitTransformOrigin: { |
RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createSpaceSeparated(); |
if (renderer) { |
@@ -2575,6 +2589,7 @@ PassRefPtrWillBeRawPtr<CSSValue> CSSComputedStyleDeclaration::getPropertyCSSValu |
} |
return list.release(); |
} |
+ case CSSPropertyTransformStyle: |
case CSSPropertyWebkitTransformStyle: |
return cssValuePool().createIdentifierValue((style->transformStyle3D() == TransformStyle3DPreserve3D) ? CSSValuePreserve3d : CSSValueFlat); |
case CSSPropertyTransitionDelay: |