| Index: Source/core/css/resolver/StyleResolver.cpp
|
| diff --git a/Source/core/css/resolver/StyleResolver.cpp b/Source/core/css/resolver/StyleResolver.cpp
|
| index 5574120de126a787d69bc2f7bb711077a150b602..e8eaa0684f1cc68f606b38fe24ca718f77539e47 100644
|
| --- a/Source/core/css/resolver/StyleResolver.cpp
|
| +++ b/Source/core/css/resolver/StyleResolver.cpp
|
| @@ -673,17 +673,17 @@ PassRefPtr<ComputedStyle> StyleResolver::styleForKeyframe(Element& element, cons
|
|
|
| // This function is used by the WebAnimations JavaScript API method animate().
|
| // FIXME: Remove this when animate() switches away from resolution-dependent parsing.
|
| -PassRefPtrWillBeRawPtr<AnimatableValue> StyleResolver::createAnimatableValueSnapshot(Element& element, const ComputedStyle* baseStyle, CSSPropertyID property, CSSValue* value)
|
| +PassRefPtrWillBeRawPtr<AnimatableValue> StyleResolver::createAnimatableValueSnapshot(Element& element, const ComputedStyle* baseStyle, CSSPropertyID property, NullableCSSValue value)
|
| {
|
| StyleResolverState state(element.document(), &element);
|
| state.setStyle(baseStyle ? ComputedStyle::clone(*baseStyle) : ComputedStyle::create());
|
| return createAnimatableValueSnapshot(state, property, value);
|
| }
|
|
|
| -PassRefPtrWillBeRawPtr<AnimatableValue> StyleResolver::createAnimatableValueSnapshot(StyleResolverState& state, CSSPropertyID property, CSSValue* value)
|
| +PassRefPtrWillBeRawPtr<AnimatableValue> StyleResolver::createAnimatableValueSnapshot(StyleResolverState& state, CSSPropertyID property, NullableCSSValue value)
|
| {
|
| if (value) {
|
| - StyleBuilder::applyProperty(property, state, value);
|
| + StyleBuilder::applyProperty(property, state, *value);
|
| state.fontBuilder().createFont(state.document().styleEngine().fontSelector(), state.mutableStyleRef());
|
| }
|
| return CSSAnimatableValueFactory::create(property, *state.style());
|
| @@ -1187,7 +1187,7 @@ static bool shouldIgnoreTextTrackAuthorStyle(Document& document)
|
| // This method expands the 'all' shorthand property to longhand properties
|
| // and applies the expanded longhand properties.
|
| template <CSSPropertyPriority priority>
|
| -void StyleResolver::applyAllProperty(StyleResolverState& state, CSSValue* allValue, bool inheritedOnly)
|
| +void StyleResolver::applyAllProperty(StyleResolverState& state, CSSValue allValue, bool inheritedOnly)
|
| {
|
| unsigned startCSSProperty = CSSPropertyPriorityData<priority>::first();
|
| unsigned endCSSProperty = CSSPropertyPriorityData<priority>::last();
|
| @@ -1242,7 +1242,7 @@ void StyleResolver::applyProperties(StyleResolverState& state, const StyleProper
|
| // If the property value is explicitly inherited, we need to apply further non-inherited properties
|
| // as they might override the value inherited here. For this reason we don't allow declarations with
|
| // explicitly inherited properties to be cached.
|
| - ASSERT(!current.value()->isInheritedValue());
|
| + ASSERT(!current.value().isInheritedValue());
|
| continue;
|
| }
|
|
|
| @@ -1436,7 +1436,7 @@ void StyleResolver::computeFont(ComputedStyle* style, const StylePropertySet& pr
|
| for (CSSPropertyID property : properties) {
|
| if (property == CSSPropertyLineHeight)
|
| updateFont(state);
|
| - StyleBuilder::applyProperty(property, state, propertySet.getPropertyCSSValue(property).get());
|
| + StyleBuilder::applyProperty(property, state, *propertySet.getPropertyCSSValue(property));
|
| }
|
| }
|
|
|
|
|