• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/WebCore-7600.1.25/css/

Lines Matching defs:shorthand

217 String StyleProperties::borderSpacingValue(const StylePropertyShorthand& shorthand) const
219 RefPtr<CSSValue> horizontalValue = getPropertyCSSValue(shorthand.properties()[0]);
220 RefPtr<CSSValue> verticalValue = getPropertyCSSValue(shorthand.properties()[1]);
299 String StyleProperties::get4Values(const StylePropertyShorthand& shorthand) const
302 int topValueIndex = findPropertyIndex(shorthand.properties()[0]);
303 int rightValueIndex = findPropertyIndex(shorthand.properties()[1]);
304 int bottomValueIndex = findPropertyIndex(shorthand.properties()[2]);
305 int leftValueIndex = findPropertyIndex(shorthand.properties()[3]);
353 String StyleProperties::getLayeredShorthandValue(const StylePropertyShorthand& shorthand) const
357 const unsigned size = shorthand.length();
363 values[i] = getPropertyCSSValue(shorthand.properties()[i]);
392 if (shorthand.properties()[j] == CSSPropertyBackgroundColor) {
403 if ((shorthand.properties()[j] == CSSPropertyBackgroundRepeatX && isPropertyImplicit(shorthand.properties()[j]))
404 || (shorthand.properties()[j] == CSSPropertyWebkitMaskRepeatX && isPropertyImplicit(shorthand.properties()[j]))) {
407 if ((j < size - 1 && shorthand.properties()[j + 1] == CSSPropertyBackgroundRepeatY && value)
408 || (j < size - 1 && shorthand.properties()[j + 1] == CSSPropertyWebkitMaskRepeatY && value)) {
441 && (shorthand.properties()[j] == CSSPropertyBackgroundSize || shorthand.properties()[j] == CSSPropertyWebkitMaskSize))
444 && (shorthand.properties()[j] == CSSPropertyBackgroundSize || shorthand.properties()[j] == CSSPropertyWebkitMaskSize))
460 if (shorthand.properties()[j] == CSSPropertyBackgroundPositionY
461 || shorthand.properties()[j] == CSSPropertyWebkitMaskPositionY) {
493 String StyleProperties::getShorthandValue(const StylePropertyShorthand& shorthand) const
497 for (unsigned i = 0; i < shorthand.length(); ++i) {
498 if (!isPropertyImplicit(shorthand.properties()[i])) {
499 RefPtr<CSSValue> value = getPropertyCSSValue(shorthand.properties()[i]);
523 String StyleProperties::getCommonValue(const StylePropertyShorthand& shorthand) const
527 for (unsigned i = 0; i < shorthand.length(); ++i) {
528 RefPtr<CSSValue> value = getPropertyCSSValue(shorthand.properties()[i]);
540 bool currentPropertyIsImportant = propertyIsImportant(shorthand.properties()[i]);
586 StylePropertyShorthand shorthand = shorthandForProperty(propertyID);
587 if (!shorthand.length())
590 bool ret = removePropertiesInSet(shorthand.properties(), shorthand.length());
603 // FIXME: Return an equivalent shorthand when possible.
642 StylePropertyShorthand shorthand = shorthandForProperty(propertyID);
643 if (!shorthand.length())
646 for (unsigned i = 0; i < shorthand.length(); ++i) {
647 if (!propertyIsImportant(shorthand.properties()[i]))
683 StylePropertyShorthand shorthand = shorthandForProperty(propertyID);
684 if (!shorthand.length()) {
689 removePropertiesInSet(shorthand.properties(), shorthand.length());
692 for (unsigned i = 0; i < shorthand.length(); ++i)
693 m_propertyVector.append(CSSProperty(shorthand.properties()[i], value, important));