| 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 773 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 784 float StyleBuilderConverter::convertTextStrokeWidth(StyleResolverState& state, C
SSValue* value) | 784 float StyleBuilderConverter::convertTextStrokeWidth(StyleResolverState& state, C
SSValue* value) |
| 785 { | 785 { |
| 786 CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value); | 786 CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value); |
| 787 if (primitiveValue->getValueID()) { | 787 if (primitiveValue->getValueID()) { |
| 788 float multiplier = convertLineWidth<float>(state, value); | 788 float multiplier = convertLineWidth<float>(state, value); |
| 789 return CSSPrimitiveValue::create(multiplier / 48, CSSPrimitiveValue::CSS
_EMS)->computeLength<float>(state.cssToLengthConversionData()); | 789 return CSSPrimitiveValue::create(multiplier / 48, CSSPrimitiveValue::CSS
_EMS)->computeLength<float>(state.cssToLengthConversionData()); |
| 790 } | 790 } |
| 791 return primitiveValue->computeLength<float>(state.cssToLengthConversionData(
)); | 791 return primitiveValue->computeLength<float>(state.cssToLengthConversionData(
)); |
| 792 } | 792 } |
| 793 | 793 |
| 794 TransformOrigin StyleBuilderConverter::convertTransformOrigin(StyleResolverState
& state, CSSValue* value) |
| 795 { |
| 796 CSSValueList* list = toCSSValueList(value); |
| 797 ASSERT(list->length() == 3); |
| 798 |
| 799 CSSPrimitiveValue* primitiveValueX = toCSSPrimitiveValue(list->item(0)); |
| 800 CSSPrimitiveValue* primitiveValueY = toCSSPrimitiveValue(list->item(1)); |
| 801 CSSPrimitiveValue* primitiveValueZ = toCSSPrimitiveValue(list->item(2)); |
| 802 |
| 803 return TransformOrigin( |
| 804 convertOriginLength<CSSValueLeft, CSSValueRight>(state, primitiveValueX)
, |
| 805 convertOriginLength<CSSValueTop, CSSValueBottom>(state, primitiveValueY)
, |
| 806 StyleBuilderConverter::convertComputedLength<float>(state, primitiveValu
eZ) |
| 807 ); |
| 808 } |
| 809 |
| 794 } // namespace blink | 810 } // namespace blink |
| OLD | NEW |