Changeset 149740 in webkit


Ignore:
Timestamp:
May 8, 2013 8:19:15 AM (11 years ago)
Author:
sergio@webkit.org
Message:

Allow blank spaces before colon (:) on CSS variable definition
https://bugs.webkit.org/show_bug.cgi?id=115802

Reviewed by Darin Adler.

Source/WebCore:

Test: css3/css-variable-definition.html

Modified the grammar to allow blank spaces before the colon on CSS
variable definitions.

  • css/CSSGrammar.y.in:

LayoutTests:

New test to check that spaces are allowed before the color on CSS
variable definitions.

  • css3/css-variable-definition-expected.html: Added.
  • css3/css-variable-definition.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r149737 r149740  
     12013-05-08  Sergio Villar Senin  <svillar@igalia.com>
     2
     3        Allow blank spaces before colon (:) on CSS variable definition
     4        https://bugs.webkit.org/show_bug.cgi?id=115802
     5
     6        Reviewed by Darin Adler.
     7
     8        New test to check that spaces are allowed before the color on CSS
     9        variable definitions.
     10
     11        * css3/css-variable-definition-expected.html: Added.
     12        * css3/css-variable-definition.html: Added.
     13
    1142013-05-08  Zoltan Arvai  <zarvai@inf.u-szeged.hu>
    215
  • trunk/Source/WebCore/ChangeLog

    r149735 r149740  
     12013-05-08  Sergio Villar Senin  <svillar@igalia.com>
     2
     3        Allow blank spaces before colon (:) on CSS variable definition
     4        https://bugs.webkit.org/show_bug.cgi?id=115802
     5
     6        Reviewed by Darin Adler.
     7
     8        Test: css3/css-variable-definition.html
     9
     10        Modified the grammar to allow blank spaces before the colon on CSS
     11        variable definitions.
     12
     13        * css/CSSGrammar.y.in:
     14
    1152013-05-08  Gustavo Noronha Silva  <gustavo.noronha@collabora.com>
    216
  • trunk/Source/WebCore/css/CSSGrammar.y.in

    r149376 r149740  
    16161616
    16171617declaration:
    1618     VAR_DEFINITION ':' maybe_space expr prio {
     1618    VAR_DEFINITION maybe_space ':' maybe_space expr prio {
    16191619#if ENABLE_CSS_VARIABLES
    1620         parser->storeVariableDeclaration($1, parser->sinkFloatingValueList($4), $5);
     1620        parser->storeVariableDeclaration($1, parser->sinkFloatingValueList($5), $6);
    16211621        $$ = true;
    1622         parser->markPropertyEnd($5, true);
     1622        parser->markPropertyEnd($6, true);
    16231623#else
    16241624        $$ = false;
Note: See TracChangeset for help on using the changeset viewer.