Changeset 102690 in webkit


Ignore:
Timestamp:
Dec 13, 2011 10:34:11 AM (12 years ago)
Author:
robert@webkit.org
Message:

CSS 2.1 failure: eof-002.htm fails
https://bugs.webkit.org/show_bug.cgi?id=74309

Reviewed by Dean Jackson.

Source/WebCore:

Test: css2.1/20110323/eof-002-expected.html

  • css/CSSGrammar.y: Treat EOF during a function expression with an open parenthesis as a close parenthesis.

LayoutTests:

  • css2.1/20110323/eof-002-expected.html: Added.
  • css2.1/20110323/eof-002.htm: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r102682 r102690  
     12011-12-12  Robert Hogan  <robert@webkit.org>
     2
     3        CSS 2.1 failure: eof-002.htm fails
     4        https://bugs.webkit.org/show_bug.cgi?id=74309
     5
     6        Reviewed by Dean Jackson.
     7
     8        * css2.1/20110323/eof-002-expected.html: Added.
     9        * css2.1/20110323/eof-002.htm: Added.
     10
    1112011-12-13  Mike Reed  <reed@google.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r102688 r102690  
     12011-12-12  Robert Hogan  <robert@webkit.org>
     2
     3        CSS 2.1 failure: eof-002.htm fails
     4        https://bugs.webkit.org/show_bug.cgi?id=74309
     5
     6        Reviewed by Dean Jackson.
     7
     8        Test: css2.1/20110323/eof-002-expected.html
     9
     10        * css/CSSGrammar.y: Treat EOF during a function expression with an open parenthesis as a close parenthesis.
     11
    1122011-12-13  Adam Klein  <adamk@chromium.org>
    213
  • trunk/Source/WebCore/css/CSSGrammar.y

    r101899 r102690  
    14851485        $$.function = f;
    14861486    } |
     1487    FUNCTION maybe_space expr TOKEN_EOF {
     1488        CSSParser* p = static_cast<CSSParser*>(parser);
     1489        CSSParserFunction* f = p->createFloatingFunction();
     1490        f->name = $1;
     1491        f->args = adoptPtr(p->sinkFloatingValueList($3));
     1492        $$.id = 0;
     1493        $$.unit = CSSParserValue::Function;
     1494        $$.function = f;
     1495    } |
    14871496    FUNCTION maybe_space ')' maybe_space {
    14881497        CSSParser* p = static_cast<CSSParser*>(parser);
Note: See TracChangeset for help on using the changeset viewer.