| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * * Redistributions of source code must retain the above copyright | 4 * * Redistributions of source code must retain the above copyright |
| 5 * notice, this list of conditions and the following disclaimer. | 5 * notice, this list of conditions and the following disclaimer. |
| 6 * * Redistributions in binary form must reproduce the above | 6 * * Redistributions in binary form must reproduce the above |
| 7 * copyright notice, this list of conditions and the following disclaimer | 7 * copyright notice, this list of conditions and the following disclaimer |
| 8 * in the documentation and/or other materials provided with the | 8 * in the documentation and/or other materials provided with the |
| 9 * distribution. | 9 * distribution. |
| 10 * * Neither the name of Google Inc. nor the names of its | 10 * * Neither the name of Google Inc. nor the names of its |
| (...skipping 1014 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1025 PassRefPtr<ShadowList> StyleBuilderConverter::convertShadowList( | 1025 PassRefPtr<ShadowList> StyleBuilderConverter::convertShadowList( |
| 1026 StyleResolverState& state, | 1026 StyleResolverState& state, |
| 1027 const CSSValue& value) { | 1027 const CSSValue& value) { |
| 1028 if (value.isIdentifierValue()) { | 1028 if (value.isIdentifierValue()) { |
| 1029 DCHECK_EQ(toCSSIdentifierValue(value).getValueID(), CSSValueNone); | 1029 DCHECK_EQ(toCSSIdentifierValue(value).getValueID(), CSSValueNone); |
| 1030 return PassRefPtr<ShadowList>(); | 1030 return PassRefPtr<ShadowList>(); |
| 1031 } | 1031 } |
| 1032 | 1032 |
| 1033 ShadowDataVector shadows; | 1033 ShadowDataVector shadows; |
| 1034 for (const auto& item : toCSSValueList(value)) | 1034 for (const auto& item : toCSSValueList(value)) |
| 1035 shadows.append(convertShadow(state, *item)); | 1035 shadows.push_back(convertShadow(state, *item)); |
| 1036 | 1036 |
| 1037 return ShadowList::adopt(shadows); | 1037 return ShadowList::adopt(shadows); |
| 1038 } | 1038 } |
| 1039 | 1039 |
| 1040 ShapeValue* StyleBuilderConverter::convertShapeValue(StyleResolverState& state, | 1040 ShapeValue* StyleBuilderConverter::convertShapeValue(StyleResolverState& state, |
| 1041 const CSSValue& value) { | 1041 const CSSValue& value) { |
| 1042 if (value.isIdentifierValue()) { | 1042 if (value.isIdentifierValue()) { |
| 1043 DCHECK_EQ(toCSSIdentifierValue(value).getValueID(), CSSValueNone); | 1043 DCHECK_EQ(toCSSIdentifierValue(value).getValueID(), CSSValueNone); |
| 1044 return nullptr; | 1044 return nullptr; |
| 1045 } | 1045 } |
| (...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1299 // Instead of the actual zoom, use 1 to avoid potential rounding errors | 1299 // Instead of the actual zoom, use 1 to avoid potential rounding errors |
| 1300 Length length = primitiveValue.convertToLength( | 1300 Length length = primitiveValue.convertToLength( |
| 1301 state.cssToLengthConversionData().copyWithAdjustedZoom(1)); | 1301 state.cssToLengthConversionData().copyWithAdjustedZoom(1)); |
| 1302 return *CSSPrimitiveValue::create(length, 1); | 1302 return *CSSPrimitiveValue::create(length, 1); |
| 1303 } | 1303 } |
| 1304 } | 1304 } |
| 1305 return value; | 1305 return value; |
| 1306 } | 1306 } |
| 1307 | 1307 |
| 1308 } // namespace blink | 1308 } // namespace blink |
| OLD | NEW |