12012-03-29 Alexis Menard <alexis.menard@openbossa.org>
2
3 Rename CSSPropertyLonghand class to ShorthandProperties.
4 https://bugs.webkit.org/show_bug.cgi?id=82624
5
6 Reviewed by NOBODY (OOPS!).
7
8 Rename CSSPropertyLonghand to ShorthandProperties as what CSSPropertyLonghand
9 is representing is not a longhand but the list of longhands for a given shorthand.
10 Also in the same time switch all shorthand declarations to use CSSPropertyID enum
11 rather than a int so it is clear on what kind of data we are dealing with.
12
13 In a following patch I will rename CSSPropertyLonghand file.
14
15 No new tests : This is a refactoring, no behaviour change intended.
16
17 * css/CSSComputedStyleDeclaration.cpp:
18 (WebCore):
19 (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
20 (WebCore::CSSComputedStyleDeclaration::getCSSPropertyValuesForShorthandProperties):
21 (WebCore::CSSComputedStyleDeclaration::getCSSPropertyValuesForSidesShorthand):
22 (WebCore::CSSComputedStyleDeclaration::copyPropertiesInSet):
23 * css/CSSComputedStyleDeclaration.h:
24 (WebCore):
25 (CSSComputedStyleDeclaration):
26 * css/CSSParser.cpp:
27 (WebCore::CSSParser::parseValue):
28 (WebCore::CSSParser::parseFillShorthand):
29 (WebCore::CSSParser::parseShorthand):
30 (WebCore::CSSParser::parse4Values):
31 * css/CSSParser.h:
32 (WebCore):
33 (CSSParser):
34 * css/CSSProperty.cpp:
35 (WebCore::resolveToPhysicalProperty):
36 (WebCore::borderDirections):
37 (WebCore::CSSProperty::resolveDirectionAwareProperty):
38 * css/CSSPropertyLonghand.cpp:
39 (WebCore::backgroundLonghand):
40 (WebCore::backgroundPositionLonghand):
41 (WebCore::backgroundRepeatLonghand):
42 (WebCore::borderLonghand):
43 (WebCore::borderAbridgedLonghand):
44 (WebCore::borderBottomLonghand):
45 (WebCore::borderColorLonghand):
46 (WebCore::borderImageLonghand):
47 (WebCore::borderLeftLonghand):
48 (WebCore::borderRadiusLonghand):
49 (WebCore::borderRightLonghand):
50 (WebCore::borderSpacingLonghand):
51 (WebCore::borderStyleLonghand):
52 (WebCore::borderTopLonghand):
53 (WebCore::borderWidthLonghand):
54 (WebCore::listStyleLonghand):
55 (WebCore::fontLonghand):
56 (WebCore::marginLonghand):
57 (WebCore::outlineLonghand):
58 (WebCore::overflowLonghand):
59 (WebCore::paddingLonghand):
60 (WebCore::webkitAnimationLonghand):
61 (WebCore::webkitBorderAfterLonghand):
62 (WebCore::webkitBorderBeforeLonghand):
63 (WebCore::webkitBorderEndLonghand):
64 (WebCore::webkitBorderStartLonghand):
65 (WebCore::webkitColumnsLonghand):
66 (WebCore::webkitColumnRuleLonghand):
67 (WebCore::webkitFlexFlowLonghand):
68 (WebCore::webkitMarginCollapseLonghand):
69 (WebCore::webkitMarqueeLonghand):
70 (WebCore::webkitMaskLonghand):
71 (WebCore::webkitMaskPositionLonghand):
72 (WebCore::webkitMaskRepeatLonghand):
73 (WebCore::webkitTextEmphasisLonghand):
74 (WebCore::webkitTextStrokeLonghand):
75 (WebCore::webkitTransitionLonghand):
76 (WebCore::webkitTransformOriginLonghand):
77 (WebCore::webkitWrapLonghand):
78 (WebCore::longhandsForProperty):
79 * css/CSSPropertyLonghand.h:
80 (WebCore::ShorthandProperties::ShorthandProperties):
81 (WebCore::ShorthandProperties::properties):
82 (WebCore::ShorthandProperties::longhandsForInitialization):
83 (ShorthandProperties):
84 (WebCore):
85 * css/StylePropertySet.cpp:
86 (WebCore::StylePropertySet::getPropertyValue):
87 (WebCore::StylePropertySet::borderSpacingValue):
88 (WebCore::StylePropertySet::get4Values):
89 (WebCore::StylePropertySet::getLayeredShorthandValue):
90 (WebCore::StylePropertySet::getShorthandValue):
91 (WebCore::StylePropertySet::getCommonValue):
92 (WebCore::StylePropertySet::removeShorthandProperty):
93 (WebCore::StylePropertySet::propertyIsImportant):
94 (WebCore::StylePropertySet::setProperty):
95 (WebCore::StylePropertySet::asText):
96 (WebCore):
97 (WebCore::StylePropertySet::removePropertiesInSet):
98 (WebCore::StylePropertySet::copyPropertiesInSet):
99 * css/StylePropertySet.h:
100 (WebCore):
101 (StylePropertySet):
102 * editing/EditingStyle.cpp:
103 (WebCore):
104 (WebCore::removePropertiesInStyle):
105 * page/animation/AnimationBase.cpp:
106 (WebCore::ShorthandPropertyWrapper::ShorthandPropertyWrapper):
107 (WebCore::addShorthandProperties):
108 * page/animation/CompositeAnimation.cpp:
109