OLD | NEW |
1 /* | 1 /* |
2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) | 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) |
3 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. | 3 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 static CSSPropertyID resolveDirectionAwareProperty(CSSPropertyID, TextDirect
ion); | 80 static CSSPropertyID resolveDirectionAwareProperty(CSSPropertyID, TextDirect
ion); |
81 static bool isAffectedByAllProperty(CSSPropertyID); | 81 static bool isAffectedByAllProperty(CSSPropertyID); |
82 | 82 |
83 const StylePropertyMetadata& metadata() const { return m_metadata; } | 83 const StylePropertyMetadata& metadata() const { return m_metadata; } |
84 | 84 |
85 private: | 85 private: |
86 StylePropertyMetadata m_metadata; | 86 StylePropertyMetadata m_metadata; |
87 RefPtr<CSSValue> m_value; | 87 RefPtr<CSSValue> m_value; |
88 }; | 88 }; |
89 | 89 |
90 inline CSSPropertyID prefixingVariantForPropertyId(CSSPropertyID propId) | |
91 { | |
92 if (RuntimeEnabledFeatures::cssAnimationUnprefixedEnabled()) { | |
93 switch (propId) { | |
94 case CSSPropertyAnimation: | |
95 return CSSPropertyWebkitAnimation; | |
96 case CSSPropertyAnimationDelay: | |
97 return CSSPropertyWebkitAnimationDelay; | |
98 case CSSPropertyAnimationDirection: | |
99 return CSSPropertyWebkitAnimationDirection; | |
100 case CSSPropertyAnimationDuration: | |
101 return CSSPropertyWebkitAnimationDuration; | |
102 case CSSPropertyAnimationFillMode: | |
103 return CSSPropertyWebkitAnimationFillMode; | |
104 case CSSPropertyAnimationIterationCount: | |
105 return CSSPropertyWebkitAnimationIterationCount; | |
106 case CSSPropertyAnimationName: | |
107 return CSSPropertyWebkitAnimationName; | |
108 case CSSPropertyAnimationPlayState: | |
109 return CSSPropertyWebkitAnimationPlayState; | |
110 case CSSPropertyAnimationTimingFunction: | |
111 return CSSPropertyWebkitAnimationTimingFunction; | |
112 case CSSPropertyWebkitAnimation: | |
113 return CSSPropertyAnimation; | |
114 case CSSPropertyWebkitAnimationDelay: | |
115 return CSSPropertyAnimationDelay; | |
116 case CSSPropertyWebkitAnimationDirection: | |
117 return CSSPropertyAnimationDirection; | |
118 case CSSPropertyWebkitAnimationDuration: | |
119 return CSSPropertyAnimationDuration; | |
120 case CSSPropertyWebkitAnimationFillMode: | |
121 return CSSPropertyAnimationFillMode; | |
122 case CSSPropertyWebkitAnimationIterationCount: | |
123 return CSSPropertyAnimationIterationCount; | |
124 case CSSPropertyWebkitAnimationName: | |
125 return CSSPropertyAnimationName; | |
126 case CSSPropertyWebkitAnimationPlayState: | |
127 return CSSPropertyAnimationPlayState; | |
128 case CSSPropertyWebkitAnimationTimingFunction: | |
129 return CSSPropertyAnimationTimingFunction; | |
130 default: | |
131 break; | |
132 } | |
133 } | |
134 | |
135 switch (propId) { | |
136 case CSSPropertyTransitionDelay: | |
137 return CSSPropertyWebkitTransitionDelay; | |
138 case CSSPropertyTransitionDuration: | |
139 return CSSPropertyWebkitTransitionDuration; | |
140 case CSSPropertyTransitionProperty: | |
141 return CSSPropertyWebkitTransitionProperty; | |
142 case CSSPropertyTransitionTimingFunction: | |
143 return CSSPropertyWebkitTransitionTimingFunction; | |
144 case CSSPropertyTransition: | |
145 return CSSPropertyWebkitTransition; | |
146 case CSSPropertyWebkitTransitionDelay: | |
147 return CSSPropertyTransitionDelay; | |
148 case CSSPropertyWebkitTransitionDuration: | |
149 return CSSPropertyTransitionDuration; | |
150 case CSSPropertyWebkitTransitionProperty: | |
151 return CSSPropertyTransitionProperty; | |
152 case CSSPropertyWebkitTransitionTimingFunction: | |
153 return CSSPropertyTransitionTimingFunction; | |
154 case CSSPropertyWebkitTransition: | |
155 return CSSPropertyTransition; | |
156 default: | |
157 return propId; | |
158 } | |
159 } | |
160 | |
161 } // namespace blink | 90 } // namespace blink |
162 | 91 |
163 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::CSSProperty); | 92 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::CSSProperty); |
164 | 93 |
165 #endif // SKY_ENGINE_CORE_CSS_CSSPROPERTY_H_ | 94 #endif // SKY_ENGINE_CORE_CSS_CSSPROPERTY_H_ |
OLD | NEW |