| Index: third_party/WebKit/Source/core/css/resolver/CSSToStyleMap.cpp
|
| diff --git a/third_party/WebKit/Source/core/css/resolver/CSSToStyleMap.cpp b/third_party/WebKit/Source/core/css/resolver/CSSToStyleMap.cpp
|
| index b191952d7e10f2eb2887c3880f93d4c52d1f092c..9791d32fe95a90f8533312f0d90ac88f995686f3 100644
|
| --- a/third_party/WebKit/Source/core/css/resolver/CSSToStyleMap.cpp
|
| +++ b/third_party/WebKit/Source/core/css/resolver/CSSToStyleMap.cpp
|
| @@ -196,12 +196,11 @@ void CSSToStyleMap::mapFillSize(StyleResolverState& state, FillLayer* layer, con
|
|
|
| if (value.isValuePair()) {
|
| const CSSValuePair& pair = toCSSValuePair(value);
|
| - // TODO(sashab): Make StyleBuilderConverter take const&s and remove these const_casts.
|
| - firstLength = StyleBuilderConverter::convertLengthOrAuto(state, const_cast<CSSValue*>(&pair.first()));
|
| - secondLength = StyleBuilderConverter::convertLengthOrAuto(state, const_cast<CSSValue*>(&pair.second()));
|
| + firstLength = StyleBuilderConverter::convertLengthOrAuto(state, pair.first());
|
| + secondLength = StyleBuilderConverter::convertLengthOrAuto(state, pair.second());
|
| } else {
|
| ASSERT(value.isPrimitiveValue());
|
| - firstLength = StyleBuilderConverter::convertLengthOrAuto(state, const_cast<CSSValue*>(&value));
|
| + firstLength = StyleBuilderConverter::convertLengthOrAuto(state, value);
|
| secondLength = Length();
|
| }
|
|
|
|
|