Changeset 53004 in webkit


Ignore:
Timestamp:
Jan 8, 2010 1:31:31 PM (14 years ago)
Author:
eric@webkit.org
Message:

2010-01-08 Yuzo Fujishima <yuzo@google.com>

Reviewed by Darin Adler.

Skip invalid blocks in CSS property declarations.
https://bugs.webkit.org/show_bug.cgi?id=31231
https://bugs.webkit.org/show_bug.cgi?id=26619

This patch makes the CSS parser skip property declarations containing invalid blocks.

  • fast/css/parsing-error-recovery-expected.txt: Added.
  • fast/css/parsing-error-recovery.html: Added.

2010-01-08 Yuzo Fujishima <yuzo@google.com>

Reviewed by Darin Adler.

Skip invalid blocks in CSS property declarations.
https://bugs.webkit.org/show_bug.cgi?id=31231
https://bugs.webkit.org/show_bug.cgi?id=26619

This patch makes the CSS parser skip property declarations containing invalid blocks.

Test: fast/css/parsing-error-recovery.html

  • css/CSSGrammar.y:
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r53003 r53004  
     12010-01-08  Yuzo Fujishima  <yuzo@google.com>
     2
     3        Reviewed by Darin Adler.
     4
     5        Skip invalid blocks in CSS property declarations.
     6        https://bugs.webkit.org/show_bug.cgi?id=31231
     7        https://bugs.webkit.org/show_bug.cgi?id=26619
     8
     9        This patch makes the CSS parser skip property declarations containing invalid blocks.
     10
     11        * fast/css/parsing-error-recovery-expected.txt: Added.
     12        * fast/css/parsing-error-recovery.html: Added.
     13
    1142010-01-08  Chris Marrin  <cmarrin@apple.com>
    215
  • trunk/WebCore/ChangeLog

    r53000 r53004  
     12010-01-08  Yuzo Fujishima  <yuzo@google.com>
     2
     3        Reviewed by Darin Adler.
     4
     5        Skip invalid blocks in CSS property declarations.
     6        https://bugs.webkit.org/show_bug.cgi?id=31231
     7        https://bugs.webkit.org/show_bug.cgi?id=26619
     8
     9        This patch makes the CSS parser skip property declarations containing invalid blocks.
     10
     11        Test: fast/css/parsing-error-recovery.html
     12
     13        * css/CSSGrammar.y:
     14
    1152010-01-08  Chris Fleizach  <cfleizach@apple.com>
    216
  • trunk/WebCore/css/CSSGrammar.y

    r52943 r53004  
    9898%}
    9999
    100 %expect 48
     100%expect 53
    101101
    102102%nonassoc LOWEST_PREC
     
    12091209        $$ = $1;
    12101210    }
     1211    | declaration invalid_block_list maybe_space {
     1212        $$ = false;
     1213    }
    12111214    | declaration invalid_block_list ';' maybe_space {
    12121215        $$ = false;
     
    13251328            $$->addValue(p->sinkFloatingValue($3));
    13261329        }
     1330    }
     1331    | expr invalid_block_list {
     1332        $$ = 0;
    13271333    }
    13281334    | expr error {
Note: See TracChangeset for help on using the changeset viewer.