Changeset 112341 in webkit
- Timestamp:
- Mar 27, 2012 5:27:27 PM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r112340 r112341 1 2012-03-27 Alexis Menard <alexis.menard@openbossa.org> 2 3 Simplify CSSPropertyBorderSpacing parsing. 4 https://bugs.webkit.org/show_bug.cgi?id=82397 5 6 Reviewed by Benjamin Poulain. 7 8 Remove the local array of longhand properties as it doesn't really 9 bring much in this simple parsing algorithm. 10 11 No new tests, no functionality change intended. 12 13 * css/CSSParser.cpp: 14 (WebCore::CSSParser::parseValue): 15 1 16 2012-03-27 Anders Carlsson <andersca@apple.com> 2 17 -
trunk/Source/WebCore/css/CSSParser.cpp
r112310 r112341 1539 1539 1540 1540 case CSSPropertyBorderSpacing: { 1541 const int properties[2] = { CSSPropertyWebkitBorderHorizontalSpacing,1542 CSSPropertyWebkitBorderVerticalSpacing };1543 1541 if (num == 1) { 1544 1542 ShorthandScope scope(this, CSSPropertyBorderSpacing); 1545 if (!parseValue( properties[0], important))1543 if (!parseValue(CSSPropertyWebkitBorderHorizontalSpacing, important)) 1546 1544 return false; 1547 1545 CSSValue* value = m_parsedProperties.last().value(); 1548 addProperty( properties[1], value, important);1546 addProperty(CSSPropertyWebkitBorderVerticalSpacing, value, important); 1549 1547 return true; 1550 1548 } 1551 1549 else if (num == 2) { 1552 1550 ShorthandScope scope(this, CSSPropertyBorderSpacing); 1553 if (!parseValue( properties[0], important) || !parseValue(properties[1], important))1551 if (!parseValue(CSSPropertyWebkitBorderHorizontalSpacing, important) || !parseValue(CSSPropertyWebkitBorderVerticalSpacing, important)) 1554 1552 return false; 1555 1553 return true;
Note: See TracChangeset
for help on using the changeset viewer.