| Index: Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl
|
| diff --git a/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl b/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl
|
| index c25ed31b0e276f1850137f0f6c38d5962f17f3ba..e3cb394e2959d9ce5f63215fd7eaecb803618db5 100644
|
| --- a/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl
|
| +++ b/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl
|
| @@ -142,7 +142,7 @@ namespace blink {
|
| if (!value.isPrimitiveValue())
|
| return;
|
|
|
| - CSSPrimitiveValue& primitiveValue = toCSSPrimitiveValue(value);
|
| + CSSPrimitiveValue primitiveValue = toCSSPrimitiveValue(value);
|
| if (primitiveValue.getValueID() == {{auto_identity}})
|
| state.style()->{{auto_setter}}();
|
| else
|
| @@ -358,8 +358,8 @@ static bool borderImageLengthMatchesAllSides(const BorderImageLengthBox& borderI
|
| if (!pair || !pair->first() || !pair->second())
|
| continue;
|
|
|
| - AtomicString identifier(pair->first()->getStringValue());
|
| - int value = pair->second()->getIntValue();
|
| + AtomicString identifier(toCSSPrimitiveValue(*pair->first()).getStringValue());
|
| + int value = toCSSPrimitiveValue(*pair->second()).getIntValue();
|
| CounterDirectives& directives = map.add(identifier, CounterDirectives()).storedValue->value;
|
| {% if action == 'Reset' %}
|
| directives.setResetValue(value);
|
| @@ -520,7 +520,7 @@ static bool borderImageLengthMatchesAllSides(const BorderImageLengthBox& borderI
|
| if (!list.item(0).isPrimitiveValue())
|
| return;
|
|
|
| - CSSPrimitiveValue& primitiveValue = toCSSPrimitiveValue(list.item(0));
|
| + CSSPrimitiveValue primitiveValue = toCSSPrimitiveValue(list.item(0));
|
| if (!primitiveValue.isURI())
|
| return;
|
|
|
| @@ -528,7 +528,7 @@ static bool borderImageLengthMatchesAllSides(const BorderImageLengthBox& borderI
|
| value = list.item(1);
|
| }
|
| if (value.isPrimitiveValue()) {
|
| - CSSPrimitiveValue& primitiveValue = toCSSPrimitiveValue(value);
|
| + CSSPrimitiveValue primitiveValue = toCSSPrimitiveValue(value);
|
| Color color;
|
| SVGPaintType paintType = SVG_PAINTTYPE_RGBCOLOR;
|
| if (primitiveValue.getValueID() == CSSValueNone) {
|
|
|