| Index: Source/core/css/resolver/StyleBuilderCustom.cpp
|
| diff --git a/Source/core/css/resolver/StyleBuilderCustom.cpp b/Source/core/css/resolver/StyleBuilderCustom.cpp
|
| index 296a018e6b3c4be54887d6ede4ff377b89475af9..6c52b2aaf34aaeeab34cd62b2b23bb15b5ff207e 100644
|
| --- a/Source/core/css/resolver/StyleBuilderCustom.cpp
|
| +++ b/Source/core/css/resolver/StyleBuilderCustom.cpp
|
| @@ -970,25 +970,6 @@ void StyleBuilderFunctions::applyValueCSSPropertyInternalMarqueeSpeed(StyleResol
|
| }
|
| }
|
|
|
| -// FIXME: We should use the same system for this as the rest of the pseudo-shorthands (e.g. background-position)
|
| -void StyleBuilderFunctions::applyInitialCSSPropertyWebkitPerspectiveOrigin(StyleResolverState& state)
|
| -{
|
| - applyInitialCSSPropertyWebkitPerspectiveOriginX(state);
|
| - applyInitialCSSPropertyWebkitPerspectiveOriginY(state);
|
| -}
|
| -
|
| -void StyleBuilderFunctions::applyInheritCSSPropertyWebkitPerspectiveOrigin(StyleResolverState& state)
|
| -{
|
| - applyInheritCSSPropertyWebkitPerspectiveOriginX(state);
|
| - applyInheritCSSPropertyWebkitPerspectiveOriginY(state);
|
| -}
|
| -
|
| -void StyleBuilderFunctions::applyValueCSSPropertyWebkitPerspectiveOrigin(StyleResolverState&, CSSValue* value)
|
| -{
|
| - // This is expanded in the parser
|
| - ASSERT_NOT_REACHED();
|
| -}
|
| -
|
| void StyleBuilderFunctions::applyInitialCSSPropertyWebkitTextEmphasisStyle(StyleResolverState& state)
|
| {
|
| state.style()->setTextEmphasisFill(RenderStyle::initialTextEmphasisFill());
|
| @@ -1200,7 +1181,6 @@ void StyleBuilderFunctions::applyValueCSSPropertyFont(StyleResolverState& state,
|
| // FIXME: System Font identifiers should not hijack this
|
| // short-hand CSSProperty like this (crbug.com/353932)
|
| state.style()->setLineHeight(RenderStyle::initialLineHeight());
|
| - state.setLineHeightValue(0);
|
| state.fontBuilder().fromSystemFont(toCSSPrimitiveValue(value)->getValueID(), state.style()->effectiveZoom());
|
| }
|
|
|
| @@ -1235,37 +1215,21 @@ void StyleBuilderFunctions::applyValueCSSPropertyWebkitAppRegion(StyleResolverSt
|
| state.document().setHasAnnotatedRegions(true);
|
| }
|
|
|
| -void StyleBuilderFunctions::applyInitialCSSPropertyWebkitPerspective(StyleResolverState& state)
|
| -{
|
| - applyInitialCSSPropertyPerspective(state);
|
| -}
|
| -
|
| -void StyleBuilderFunctions::applyInheritCSSPropertyWebkitPerspective(StyleResolverState& state)
|
| -{
|
| - applyInheritCSSPropertyPerspective(state);
|
| -}
|
| -
|
| -void StyleBuilderFunctions::applyValueCSSPropertyWebkitPerspective(StyleResolverState& state, CSSValue* value)
|
| +void StyleBuilderFunctions::applyValueCSSPropertyPerspective(StyleResolverState& state, CSSValue* value)
|
| {
|
| if (!value->isPrimitiveValue())
|
| return;
|
| CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value);
|
| + if (primitiveValue->getValueID() == CSSValueNone) {
|
| + state.style()->setPerspective(0);
|
| + return;
|
| + }
|
| +
|
| + // This case is only hit when using -webkit-perspective
|
| if (primitiveValue->isNumber()) {
|
| float perspectiveValue = CSSPrimitiveValue::create(primitiveValue->getDoubleValue(), CSSPrimitiveValue::CSS_PX)->computeLength<float>(state.cssToLengthConversionData());
|
| if (perspectiveValue >= 0.0f)
|
| state.style()->setPerspective(perspectiveValue);
|
| - } else {
|
| - applyValueCSSPropertyPerspective(state, value);
|
| - }
|
| -}
|
| -
|
| -void StyleBuilderFunctions::applyValueCSSPropertyPerspective(StyleResolverState& state, CSSValue* value)
|
| -{
|
| - if (!value->isPrimitiveValue())
|
| - return;
|
| - CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value);
|
| - if (primitiveValue->getValueID() == CSSValueNone) {
|
| - state.style()->setPerspective(0);
|
| return;
|
| }
|
|
|
| @@ -1276,20 +1240,6 @@ void StyleBuilderFunctions::applyValueCSSPropertyPerspective(StyleResolverState&
|
| state.style()->setPerspective(perspectiveValue);
|
| }
|
|
|
| -void StyleBuilderFunctions::applyInitialCSSPropertyInternalCallback(StyleResolverState& state)
|
| -{
|
| -}
|
| -
|
| -void StyleBuilderFunctions::applyInheritCSSPropertyInternalCallback(StyleResolverState& state)
|
| -{
|
| -}
|
| -
|
| -void StyleBuilderFunctions::applyValueCSSPropertyInternalCallback(StyleResolverState& state, CSSValue* value)
|
| -{
|
| - if (value->isPrimitiveValue() && toCSSPrimitiveValue(value)->getValueID() == CSSValueInternalPresence)
|
| - state.style()->addCallbackSelector(state.currentRule()->selectorList().selectorsText());
|
| -}
|
| -
|
| void StyleBuilderFunctions::applyValueCSSPropertyWebkitWritingMode(StyleResolverState& state, CSSValue* value)
|
| {
|
| if (value->isPrimitiveValue())
|
|
|