Home | History | Annotate | Download | only in css

Lines Matching refs:properties

61 CSSMutableStyleDeclaration::CSSMutableStyleDeclaration(CSSRule* parent, const Vector<CSSProperty>& properties, unsigned variableDependentValueCount)
63 , m_properties(properties)
72 // FIXME: This allows duplicate properties.
75 CSSMutableStyleDeclaration::CSSMutableStyleDeclaration(CSSRule* parent, const CSSProperty* const * properties, int numProperties)
86 ASSERT(properties[i]);
87 m_properties.append(*properties[i]);
88 if (properties[i]->value()->isVariableDependentValue())
91 // FIXME: This allows duplicate properties.
109 // Shorthand and 4-values properties
113 const int properties[2] = { CSSPropertyBackgroundPositionX, CSSPropertyBackgroundPositionY };
114 return getLayeredShorthandValue(properties, 2);
117 const int properties[2] = { CSSPropertyBackgroundRepeatX, CSSPropertyBackgroundRepeatY };
118 return getLayeredShorthandValue(properties, 2);
121 const int properties[9] = { CSSPropertyBackgroundColor,
130 return getLayeredShorthandValue(properties, 9);
133 const int properties[3][4] = {{ CSSPropertyBorderTopWidth,
146 const int nrprops = sizeof(properties) / sizeof(properties[0]);
148 String value = getCommonValue(properties[i], 4);
158 const int properties[3] = { CSSPropertyBorderTopWidth, CSSPropertyBorderTopStyle,
160 return getShorthandValue(properties, 3);
163 const int properties[3] = { CSSPropertyBorderRightWidth, CSSPropertyBorderRightStyle,
165 return getShorthandValue(properties, 3);
168 const int properties[3] = { CSSPropertyBorderBottomWidth, CSSPropertyBorderBottomStyle,
170 return getShorthandValue(properties, 3);
173 const int properties[3] = { CSSPropertyBorderLeftWidth, CSSPropertyBorderLeftStyle,
175 return getShorthandValue(properties, 3);
178 const int properties[3] = { CSSPropertyOutlineWidth, CSSPropertyOutlineStyle,
180 return getShorthandValue(properties, 3);
183 const int properties[4] = { CSSPropertyBorderTopColor, CSSPropertyBorderRightColor,
185 return get4Values(properties);
188 const int properties[4] = { CSSPropertyBorderTopWidth, CSSPropertyBorderRightWidth,
190 return get4Values(properties);
193 const int properties[4] = { CSSPropertyBorderTopStyle, CSSPropertyBorderRightStyle,
195 return get4Values(properties);
198 const int properties[4] = { CSSPropertyMarginTop, CSSPropertyMarginRight,
200 return get4Values(properties);
203 const int properties[2] = { CSSPropertyOverflowX, CSSPropertyOverflowY };
204 return getCommonValue(properties, 2);
207 const int properties[4] = { CSSPropertyPaddingTop, CSSPropertyPaddingRight,
209 return get4Values(properties);
212 const int properties[3] = { CSSPropertyListStyleType, CSSPropertyListStylePosition,
214 return getShorthandValue(properties, 3);
218 const int properties[2] = { CSSPropertyWebkitMaskPositionX, CSSPropertyWebkitMaskPositionY };
219 return getLayeredShorthandValue(properties, 2);
222 const int properties[2] = { CSSPropertyWebkitMaskRepeatX, CSSPropertyWebkitMaskRepeatY };
223 return getLayeredShorthandValue(properties, 2);
226 const int properties[] = { CSSPropertyWebkitMaskImage, CSSPropertyWebkitMaskRepeat,
229 return getLayeredShorthandValue(properties, 6);
232 const int properties[3] = { CSSPropertyWebkitTransformOriginX,
235 return getShorthandValue(properties, 3);
238 const int properties[4] = { CSSPropertyWebkitTransitionProperty, CSSPropertyWebkitTransitionDuration,
240 return getLayeredShorthandValue(properties, 4);
243 const int properties[6] = { CSSPropertyWebkitAnimationName, CSSPropertyWebkitAnimationDuration,
246 return getLayeredShorthandValue(properties, 6);
259 String CSSMutableStyleDeclaration::get4Values(const int* properties) const
261 // Assume the properties are in the usual order top, right, bottom, left.
262 RefPtr<CSSValue> topValue = getPropertyCSSValue(properties[0]);
263 RefPtr<CSSValue> rightValue = getPropertyCSSValue(properties[1]);
264 RefPtr<CSSValue> bottomValue = getPropertyCSSValue(properties[2]);
265 RefPtr<CSSValue> leftValue = getPropertyCSSValue(properties[3]);
267 // All 4 properties must be specified.
286 String CSSMutableStyleDeclaration::getLayeredShorthandValue(const int* properties, unsigned number) const
290 // Begin by collecting the properties into an array.
295 values[i] = getPropertyCSSValue(properties[i]);
305 // Now stitch the properties together. Implicit initial values are flagged as such and
321 if (properties[j] == CSSPropertyBackgroundColor) {
332 if (properties[j] == CSSPropertyBackgroundRepeatX && isPropertyImplicit(properties[j])) {
333 if (j < number - 1 && properties[j + 1] == CSSPropertyBackgroundRepeatY) {
385 String CSSMutableStyleDeclaration::getShorthandValue(const int* properties, int number) const
389 if (!isPropertyImplicit(properties[i])) {
390 RefPtr<CSSValue> value = getPropertyCSSValue(properties[i]);
402 // only returns a non-null value if all properties have the same, non-null value
403 String CSSMutableStyleDeclaration::getCommonValue(const int* properties, int number) const
407 if (!isPropertyImplicit(properties[i])) {
408 RefPtr<CSSValue> value = getPropertyCSSValue(properties[i]);
433 removePropertiesInSet(longhand.properties(), longhand.length(), notifyChanged);
593 void CSSMutableStyleDeclaration::addParsedProperties(const CSSProperty* const* properties, int numProperties)
600 // Only add properties that have no !important counterpart present
601 if (!getPropertyPriority(properties[i]->id()) || properties[i]->isImportant()) {
602 removeProperty(properties[i]->id(), false);
603 ASSERT(properties[i]);
604 m_properties.append(*properties[i]);
605 if (properties[i]->value()->isVariableDependentValue())
667 // It is required because background-position-x/y are non-standard properties and WebKit generated output
672 const int properties[2] = { CSSPropertyBackgroundPositionX, CSSPropertyBackgroundPositionY };
674 positionValue = getLayeredShorthandValue(properties, 2);
743 // This is the list of properties we want to copy in the copyBlockProperties() function.
744 // It is the list of CSS properties that apply specially to block-level elements.