Changeset 89826 in webkit
- Timestamp:
- Jun 27, 2011 9:55:38 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r89824 r89826 1 2011-06-27 Alexandru Chiculita <achicu@adobe.com> 2 3 Reviewed by Ojan Vafai. 4 5 css combinator "+" in combination with NAV tag is buggy 6 https://bugs.webkit.org/show_bug.cgi?id=47971 7 8 * fast/css/div_plus_nav_bug47971-expected.txt: Added. 9 * fast/css/div_plus_nav_bug47971.html: Added. 10 1 11 2011-06-27 Sheriff Bot <webkit.review.bot@gmail.com> 2 12 -
trunk/Source/WebCore/ChangeLog
r89824 r89826 1 2011-06-27 Alexandru Chiculita <achicu@adobe.com> 2 3 Reviewed by Ojan Vafai. 4 5 css combinator "+" in combination with NAV tag is buggy 6 https://bugs.webkit.org/show_bug.cgi?id=47971 7 8 Added a new state in css/tokenizer.flex for the "nth" rule. The state begins 9 at nth-*( functions and ends at the first ")". It avoids parsing selectors 10 like "#div+nav" as: "#div" "+n" "av". 11 12 Test: fast/css/div_plus_nav_bug47971.html 13 14 * css/maketokenizer: 15 * css/tokenizer.flex: 16 1 17 2011-06-27 Sheriff Bot <webkit.review.bot@gmail.com> 2 18 -
trunk/Source/WebCore/css/maketokenizer
r50583 r89826 50 50 #define mediaquery 1 51 51 #define forkeyword 2 52 #define nthchild 3 52 53 53 54 /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */ -
trunk/Source/WebCore/css/tokenizer.flex
r83415 r89826 5 5 %s mediaquery 6 6 %s forkeyword 7 %s nthchild 7 8 8 9 h [0-9a-fA-F] … … 24 25 range \?{1,6}|{h}(\?{0,5}|{h}(\?{0,4}|{h}(\?{0,3}|{h}(\?{0,2}|{h}(\??|{h}))))) 25 26 nth [\+-]?{intnum}*n([\t\r\n ]*[\+-][\t\r\n ]*{intnum})? 27 nthfunc "nth-"("child"|"of-type"|"last-child"|"last-of-type") 26 28 27 29 %% … … 44 46 {string} {yyTok = STRING; return yyTok;} 45 47 {ident} {yyTok = IDENT; return yyTok;} 46 {nth} {yyTok = NTH; return yyTok;} 48 <nthchild>{nth} {yyTok = NTH; return yyTok;} 49 <nthchild>")" {BEGIN(INITIAL); yyTok = *yytext; return yyTok;} 47 50 48 51 "#"{h}+ {yyTok = HEX; return yyTok;} … … 114 117 "-webkit-min(" {yyTok = MINFUNCTION; return yyTok;} 115 118 "-webkit-max(" {yyTok = MAXFUNCTION; return yyTok;} 119 {nthfunc}"(" {BEGIN(nthchild); yyTok = FUNCTION; return yyTok;} 116 120 {ident}"(" {yyTok = FUNCTION; return yyTok;} 117 121
Note: See TracChangeset
for help on using the changeset viewer.