Changeset 52943 in webkit
- Timestamp:
- Jan 7, 2010 12:58:14 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r52941 r52943 1 2010-01-07 Yuzo Fujishima <yuzo@google.com> 2 3 Reviewed by Darin Adler. 4 5 Allow leading/trailing space for CSS nth-*() and lang(). 6 https://bugs.webkit.org/show_bug.cgi?id=17248 7 8 For pseudo-classes :nth-*() and :lang(), space must be allowed after '(' and before ')'. 9 See the bug comments for why we don't allow space at other places. 10 11 * fast/css/css3-space-in-nth-and-lang.html: Added. 12 * platform/mac/fast/css/css3-space-in-nth-and-lang-expected.txt: Added. 13 1 14 2010-01-07 Chris Fleizach <cfleizach@apple.com> 2 15 -
trunk/WebCore/ChangeLog
r52941 r52943 1 2010-01-07 Yuzo Fujishima <yuzo@google.com> 2 3 Reviewed by Darin Adler. 4 5 Allow leading/trailing space for CSS nth-*() and lang(). 6 https://bugs.webkit.org/show_bug.cgi?id=17248 7 8 For pseudo-classes :nth-*() and :lang(), space must be allowed after '(' and before ')'. 9 See the bug comments for why we don't allow space at other places. 10 11 * css/CSSGrammar.y: 12 1 13 2010-01-07 Chris Fleizach <cfleizach@apple.com> 2 14 -
trunk/WebCore/css/CSSGrammar.y
r52784 r52943 1110 1110 } 1111 1111 // used by :nth-*(ax+b) 1112 | ':' FUNCTION NTH')' {1112 | ':' FUNCTION maybe_space NTH maybe_space ')' { 1113 1113 CSSParser *p = static_cast<CSSParser*>(parser); 1114 1114 $$ = p->createFloatingSelector(); 1115 1115 $$->m_match = CSSSelector::PseudoClass; 1116 $$->setArgument($ 3);1116 $$->setArgument($4); 1117 1117 $$->m_value = $2; 1118 1118 CSSSelector::PseudoType type = $$->pseudoType(); … … 1128 1128 } 1129 1129 // used by :nth-* 1130 | ':' FUNCTION INTEGER')' {1130 | ':' FUNCTION maybe_space INTEGER maybe_space ')' { 1131 1131 CSSParser *p = static_cast<CSSParser*>(parser); 1132 1132 $$ = p->createFloatingSelector(); 1133 1133 $$->m_match = CSSSelector::PseudoClass; 1134 $$->setArgument(String::number($ 3));1134 $$->setArgument(String::number($4)); 1135 1135 $$->m_value = $2; 1136 1136 CSSSelector::PseudoType type = $$->pseudoType(); … … 1146 1146 } 1147 1147 // used by :nth-*(odd/even) and :lang 1148 | ':' FUNCTION IDENT')' {1148 | ':' FUNCTION maybe_space IDENT maybe_space ')' { 1149 1149 CSSParser *p = static_cast<CSSParser*>(parser); 1150 1150 $$ = p->createFloatingSelector(); 1151 1151 $$->m_match = CSSSelector::PseudoClass; 1152 $$->setArgument($ 3);1152 $$->setArgument($4); 1153 1153 $2.lower(); 1154 1154 $$->m_value = $2;
Note: See TracChangeset
for help on using the changeset viewer.