12014-01-13 Bear Travis <betravis@adobe.com>
2
3 [CSS Shapes] Move CSSPrimitiveValue <-> LayoutBox Conversion to CSSPrimitiveValueMappings
4 https://bugs.webkit.org/show_bug.cgi?id=126719
5
6 Reviewed by NOBODY (OOPS!).
7
8 The standard location for conversions to/from CSSPrimitiveValues is CSSPrimitiveValueMappings.
9 This patch moves the conversion for LayoutBoxes from BasicShapeFunctions to
10 CSSPrimitiveValueMappings.h.
11
12 Refactoring, no new tests.
13
14 * css/BasicShapeFunctions.cpp:
15 (WebCore::valueForBasicShape):
16 (WebCore::basicShapeForValue):
17 * css/CSSComputedStyleDeclaration.cpp:
18 (WebCore::ComputedStyleExtractor::propertyValue):
19 * css/CSSPrimitiveValueMappings.h:
20 (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
21 (WebCore::CSSPrimitiveValue::operator LayoutBox):
22 * css/DeprecatedStyleBuilder.cpp:
23 (WebCore::ApplyPropertyClipPath::applyValue):
24 (WebCore::ApplyPropertyShape::applyValue):
25