Ignore:
Timestamp:
04/02/12 17:24:28 (2 years ago)
Author:
tony@chromium.org
Message:

add css parsing of -webkit-flex
https://bugs.webkit.org/show_bug.cgi?id=82927

Reviewed by Ojan Vafai.

Source/WebCore:

This is the new syntax for CSS3 flexbox:
http://dev.w3.org/csswg/css3-flexbox/#flexibility

Not hooked up to anything in the render tree yet so the old syntax is
still valid.

Test: css3/flexbox/flex-property-parsing.html

  • css/CSSComputedStyleDeclaration.cpp:

(WebCore):
(WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):

  • css/CSSParser.cpp:

(WebCore::CSSParser::parseValue):
(WebCore::CSSParser::parseFlex):

  • css/CSSParser.h:

(WebCore):

  • css/CSSProperty.cpp:

(WebCore::CSSProperty::isInheritedProperty):

  • css/CSSPropertyNames.in:
  • css/CSSStyleApplyProperty.cpp:

(ApplyPropertyFlex):
(WebCore::ApplyPropertyFlex::applyInheritValue):
(WebCore::ApplyPropertyFlex::applyInitialValue):
(WebCore::ApplyPropertyFlex::applyValue):
(WebCore::ApplyPropertyFlex::createHandler):
(WebCore::ApplyPropertyFlex::getFlexValue):
(WebCore):
(WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty):

  • css/CSSStyleSelector.cpp:

(WebCore::CSSStyleSelector::collectMatchingRulesForList):

  • rendering/style/RenderStyle.h:
  • rendering/style/StyleFlexibleBoxData.cpp:

(WebCore::StyleFlexibleBoxData::StyleFlexibleBoxData):
(WebCore::StyleFlexibleBoxData::operator==):

  • rendering/style/StyleFlexibleBoxData.h:

(StyleFlexibleBoxData):

LayoutTests:

  • css3/flexbox/flex-property-parsing-expected.txt: Added.
  • css3/flexbox/flex-property-parsing.html: Added.
  • css3/flexbox/script-tests/css-properties.js:
  • css3/flexbox/script-tests/flex-parsing.js:
  • css3/flexbox/script-tests/flex-property-parsing.js: Added.
  • fast/css/getComputedStyle/computed-style-expected.txt:
  • fast/css/getComputedStyle/computed-style-without-renderer-expected.txt:
  • platform/chromium-mac-snowleopard/svg/css/getComputedStyle-basic-expected.txt:
  • platform/chromium-mac/fast/css/getComputedStyle/computed-style-expected.txt:
  • platform/chromium-mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt:
  • platform/chromium-win/fast/css/getComputedStyle/computed-style-expected.txt:
  • platform/chromium-win/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt:
  • platform/chromium-win/svg/css/getComputedStyle-basic-expected.txt:
  • platform/efl/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt:
  • platform/gtk/svg/css/getComputedStyle-basic-expected.txt:
  • platform/mac/fast/css/getComputedStyle/computed-style-expected.txt:
  • platform/mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt:
  • platform/qt/svg/css/getComputedStyle-basic-expected.txt:
  • svg/css/getComputedStyle-basic-expected.txt:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r112954 r112968  
     12012-04-02  Tony Chang  <tony@chromium.org> 
     2 
     3        add css parsing of -webkit-flex 
     4        https://bugs.webkit.org/show_bug.cgi?id=82927 
     5 
     6        Reviewed by Ojan Vafai. 
     7 
     8        This is the new syntax for CSS3 flexbox: 
     9        http://dev.w3.org/csswg/css3-flexbox/#flexibility 
     10 
     11        Not hooked up to anything in the render tree yet so the old syntax is 
     12        still valid. 
     13 
     14        Test: css3/flexbox/flex-property-parsing.html 
     15 
     16        * css/CSSComputedStyleDeclaration.cpp: 
     17        (WebCore): 
     18        (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): 
     19        * css/CSSParser.cpp: 
     20        (WebCore::CSSParser::parseValue): 
     21        (WebCore::CSSParser::parseFlex): 
     22        * css/CSSParser.h: 
     23        (WebCore): 
     24        * css/CSSProperty.cpp: 
     25        (WebCore::CSSProperty::isInheritedProperty): 
     26        * css/CSSPropertyNames.in: 
     27        * css/CSSStyleApplyProperty.cpp: 
     28        (ApplyPropertyFlex): 
     29        (WebCore::ApplyPropertyFlex::applyInheritValue): 
     30        (WebCore::ApplyPropertyFlex::applyInitialValue): 
     31        (WebCore::ApplyPropertyFlex::applyValue): 
     32        (WebCore::ApplyPropertyFlex::createHandler): 
     33        (WebCore::ApplyPropertyFlex::getFlexValue): 
     34        (WebCore): 
     35        (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty): 
     36        * css/CSSStyleSelector.cpp: 
     37        (WebCore::CSSStyleSelector::collectMatchingRulesForList): 
     38        * rendering/style/RenderStyle.h: 
     39        * rendering/style/StyleFlexibleBoxData.cpp: 
     40        (WebCore::StyleFlexibleBoxData::StyleFlexibleBoxData): 
     41        (WebCore::StyleFlexibleBoxData::operator==): 
     42        * rendering/style/StyleFlexibleBoxData.h: 
     43        (StyleFlexibleBoxData): 
     44 
    1452012-04-02  Daniel Cheng  <dcheng@chromium.org> 
    246 
Note: See TracChangeset for help on using the changeset viewer.