Changeset 56414 in webkit
- Timestamp:
- Mar 23, 2010 1:52:50 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r56412 r56414 1 2010-03-23 David Hyatt <hyatt@apple.com> 2 3 Reviewed by Simon Fraser and Darin Adler. 4 5 https://bugs.webkit.org/show_bug.cgi?id=36272, make sure nth-child can work when the portion with "n" is omitted. 6 7 Added fast/css/nth-child-implied-step.html 8 9 * css/CSSGrammar.y: 10 * css/tokenizer.flex: 11 1 12 2010-03-23 Darin Adler <darin@apple.com> 2 13 -
trunk/WebCore/css/CSSGrammar.y
r56383 r56414 247 247 %type <integer> match 248 248 %type <integer> unary_operator 249 %type <integer> maybe_unary_operator 249 250 %type <character> operator 250 251 … … 767 768 | '>' maybe_space { $$ = CSSSelector::Child; } 768 769 ; 770 771 maybe_unary_operator: 772 unary_operator { $$ = $1; } 773 | { $$ = 1; } 774 ; 769 775 770 776 unary_operator: … … 1130 1136 } 1131 1137 // used by :nth-* 1132 | ':' FUNCTION maybe_space INTEGER maybe_space ')' {1138 | ':' FUNCTION maybe_space maybe_unary_operator INTEGER maybe_space ')' { 1133 1139 CSSParser *p = static_cast<CSSParser*>(parser); 1134 1140 $$ = p->createFloatingSelector(); 1135 1141 $$->m_match = CSSSelector::PseudoClass; 1136 $$->setArgument(String::number($4 ));1142 $$->setArgument(String::number($4 * $5)); 1137 1143 $$->m_value = $2; 1138 1144 CSSSelector::PseudoType type = $$->pseudoType(); -
trunk/WebCore/css/tokenizer.flex
r56405 r56414 25 25 nl \n|\r\n|\r|\f 26 26 range \?{1,6}|{h}(\?{0,5}|{h}(\?{0,4}|{h}(\?{0,3}|{h}(\?{0,2}|{h}(\??|{h}))))) 27 nth ([\+-]?[0-9]*n[\+-][0-9]+)|(-?[0-9]*n)27 nth [\+-]?{intnum}*n([\+-]{intnum})? 28 28 29 29 %%
Note: See TracChangeset
for help on using the changeset viewer.