Unreviewed, rolling out r121380.
authortony@chromium.org <tony@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 28 Jun 2012 00:04:32 +0000 (00:04 +0000)
committertony@chromium.org <tony@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 28 Jun 2012 00:04:32 +0000 (00:04 +0000)
http://trac.webkit.org/changeset/121380
https://bugs.webkit.org/show_bug.cgi?id=86525

Hits an ASSERT in debug.

Source/WebCore:

* css/CSSComputedStyleDeclaration.cpp:
(WebCore):
(WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
* css/CSSParser.cpp:
(WebCore::isValidKeywordPropertyAndValue):
(WebCore::CSSParser::parseValue):
(WebCore::CSSParser::parseFlex):
* css/CSSParser.h:
* css/CSSProperty.cpp:
(WebCore::CSSProperty::isInheritedProperty):
* css/CSSPropertyNames.in:
* css/StyleBuilder.cpp:
(ApplyPropertyFlex):
(WebCore::ApplyPropertyFlex::applyInheritValue):
(WebCore::ApplyPropertyFlex::applyInitialValue):
(WebCore::ApplyPropertyFlex::applyValue):
(WebCore::ApplyPropertyFlex::createHandler):
(WebCore::ApplyPropertyFlex::getFlexValue):
(WebCore):
(WebCore::StyleBuilder::StyleBuilder):
* css/StylePropertySet.cpp:
(WebCore::StylePropertySet::getPropertyValue):
(WebCore::StylePropertySet::asText):
* css/StylePropertyShorthand.cpp:
(WebCore::webkitFlexFlowShorthand):
(WebCore::shorthandForProperty):
* css/StylePropertyShorthand.h:
(WebCore):
* css/StyleResolver.cpp:
(WebCore::StyleResolver::collectMatchingRulesForList):

LayoutTests:

* css3/flexbox/flex-longhand-parsing-expected.txt: Removed.
* css3/flexbox/flex-longhand-parsing.html: Removed.
* css3/flexbox/flex-property-parsing-expected.txt:
* css3/flexbox/flex-property-parsing.html:
* fast/css/getComputedStyle/computed-style-expected.txt:
* fast/css/getComputedStyle/computed-style-without-renderer-expected.txt:
* fast/css/getComputedStyle/resources/property-names.js:
* svg/css/getComputedStyle-basic-expected.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@121387 268f45cc-cd09-0410-ab3c-d52691b4dbfc

20 files changed:
LayoutTests/ChangeLog
LayoutTests/css3/flexbox/flex-longhand-parsing-expected.txt [deleted file]
LayoutTests/css3/flexbox/flex-longhand-parsing.html [deleted file]
LayoutTests/css3/flexbox/flex-property-parsing-expected.txt
LayoutTests/css3/flexbox/flex-property-parsing.html
LayoutTests/fast/css/getComputedStyle/computed-style-expected.txt
LayoutTests/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt
LayoutTests/fast/css/getComputedStyle/resources/property-names.js
LayoutTests/svg/css/getComputedStyle-basic-expected.txt
Source/WebCore/ChangeLog
Source/WebCore/css/CSSComputedStyleDeclaration.cpp
Source/WebCore/css/CSSParser.cpp
Source/WebCore/css/CSSParser.h
Source/WebCore/css/CSSProperty.cpp
Source/WebCore/css/CSSPropertyNames.in
Source/WebCore/css/StyleBuilder.cpp
Source/WebCore/css/StylePropertySet.cpp
Source/WebCore/css/StylePropertyShorthand.cpp
Source/WebCore/css/StylePropertyShorthand.h
Source/WebCore/css/StyleResolver.cpp

index e8486fe..1bbb8a4 100644 (file)
@@ -1,3 +1,20 @@
+2012-06-27  Tony Chang  <tony@chromium.org>
+
+        Unreviewed, rolling out r121380.
+        http://trac.webkit.org/changeset/121380
+        https://bugs.webkit.org/show_bug.cgi?id=86525
+
+        Hits an ASSERT in debug.
+
+        * css3/flexbox/flex-longhand-parsing-expected.txt: Removed.
+        * css3/flexbox/flex-longhand-parsing.html: Removed.
+        * css3/flexbox/flex-property-parsing-expected.txt:
+        * css3/flexbox/flex-property-parsing.html:
+        * fast/css/getComputedStyle/computed-style-expected.txt:
+        * fast/css/getComputedStyle/computed-style-without-renderer-expected.txt:
+        * fast/css/getComputedStyle/resources/property-names.js:
+        * svg/css/getComputedStyle-basic-expected.txt:
+
 2012-06-27  Jeffrey Pfau  <jpfau@apple.com>
 
         [Mac] Fix test expectation introduced in r121299
diff --git a/LayoutTests/css3/flexbox/flex-longhand-parsing-expected.txt b/LayoutTests/css3/flexbox/flex-longhand-parsing-expected.txt
deleted file mode 100644 (file)
index da9c6a0..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-Tests the interaction between the -webkit-flex shorthand propery and the -webkit-flex-grow, -webkit-flex-shrink, and -webkit-flex-basis longhand properties.
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-
-PASS flexitem.style.webkitFlex is ""
-PASS getComputedStyle(flexitem).webkitFlex is "0 1 auto"
-PASS flexitem.style.webkitFlexGrow is "2"
-PASS getComputedStyle(flexitem).webkitFlexGrow is "2"
-PASS getComputedStyle(flexitem).webkitFlex is "2 1 auto"
-PASS flexitem.style.webkitFlexShrink is "3"
-PASS getComputedStyle(flexitem).webkitFlexShrink is "3"
-PASS getComputedStyle(flexitem).webkitFlex is "2 3 auto"
-PASS flexitem.style.webkitFlexBasis is "0px"
-PASS getComputedStyle(flexitem).webkitFlexBasis is "0px"
-PASS getComputedStyle(flexitem).webkitFlex is "2 3 0px"
-PASS flexitem.style.webkitFlexShrink is "0"
-PASS getComputedStyle(flexitem).webkitFlex is "2 0 0px"
-PASS flexitem.style.webkitFlexBasis is "50%"
-PASS getComputedStyle(flexitem).webkitFlexBasis is "50%"
-PASS getComputedStyle(flexitem).webkitFlex is "2 0 50%"
-PASS flexitem.style.webkitFlexBasis is "auto"
-PASS getComputedStyle(flexitem).webkitFlex is "2 0 auto"
-PASS flexitem.style.webkitFlex is "0 0 auto"
-PASS flexitem.style.webkitFlexGrow is "0"
-PASS flexitem.style.webkitFlexShrink is "0"
-PASS flexitem.style.webkitFlexBasis is "auto"
-PASS getComputedStyle(flexitem).webkitFlex is "0 0 auto"
-PASS flexitem.style.webkitFlex is "1.5 0 auto"
-PASS getComputedStyle(flexitem).webkitFlex is "1.5 0 auto"
-PASS flexitem.style.webkitFlex is "3 1 0px"
-PASS flexitem.style.webkitFlexGrow is "3"
-PASS flexitem.style.webkitFlexShrink is "1"
-PASS flexitem.style.webkitFlexBasis is "0px"
-PASS getComputedStyle(flexitem).webkitFlex is "3 1 0px"
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
diff --git a/LayoutTests/css3/flexbox/flex-longhand-parsing.html b/LayoutTests/css3/flexbox/flex-longhand-parsing.html
deleted file mode 100644 (file)
index 31bb43d..0000000
+++ /dev/null
@@ -1,68 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script src="../../fast/js/resources/js-test-pre.js"></script>
-</head>
-<body>
-<div id="flexbox">
-    <div id="flexitem"></div>
-</div>
-<script>
-description('Tests the interaction between the -webkit-flex shorthand propery and the -webkit-flex-grow, -webkit-flex-shrink, and -webkit-flex-basis longhand properties.');
-
-var flexitem = document.getElementById("flexitem");
-
-// Test default value.
-shouldBeEqualToString('flexitem.style.webkitFlex', '');
-shouldBeEqualToString('getComputedStyle(flexitem).webkitFlex', '0 1 auto');
-
-flexitem.style.webkitFlexGrow = 2;
-shouldBeEqualToString('flexitem.style.webkitFlexGrow', '2');
-shouldBeEqualToString('getComputedStyle(flexitem).webkitFlexGrow', '2');
-shouldBeEqualToString('getComputedStyle(flexitem).webkitFlex', '2 1 auto');
-
-flexitem.style.webkitFlexShrink = 3;
-shouldBeEqualToString('flexitem.style.webkitFlexShrink', '3');
-shouldBeEqualToString('getComputedStyle(flexitem).webkitFlexShrink', '3');
-shouldBeEqualToString('getComputedStyle(flexitem).webkitFlex', '2 3 auto');
-
-flexitem.style.webkitFlexBasis = 0;
-shouldBeEqualToString('flexitem.style.webkitFlexBasis', '0px');
-shouldBeEqualToString('getComputedStyle(flexitem).webkitFlexBasis', '0px');
-shouldBeEqualToString('getComputedStyle(flexitem).webkitFlex', '2 3 0px');
-
-flexitem.style.webkitFlexShrink = 0;
-shouldBeEqualToString('flexitem.style.webkitFlexShrink', '0');
-shouldBeEqualToString('getComputedStyle(flexitem).webkitFlex', '2 0 0px');
-
-flexitem.style.webkitFlexBasis = '50%';
-shouldBeEqualToString('flexitem.style.webkitFlexBasis', '50%');
-shouldBeEqualToString('getComputedStyle(flexitem).webkitFlexBasis', '50%');
-shouldBeEqualToString('getComputedStyle(flexitem).webkitFlex', '2 0 50%');
-
-flexitem.style.webkitFlexBasis = 'auto';
-shouldBeEqualToString('flexitem.style.webkitFlexBasis', 'auto');
-shouldBeEqualToString('getComputedStyle(flexitem).webkitFlex', '2 0 auto');
-
-flexitem.style.webkitFlex = 'none';
-shouldBeEqualToString('flexitem.style.webkitFlex', '0 0 auto');
-shouldBeEqualToString('flexitem.style.webkitFlexGrow', '0');
-shouldBeEqualToString('flexitem.style.webkitFlexShrink', '0');
-shouldBeEqualToString('flexitem.style.webkitFlexBasis', 'auto');
-shouldBeEqualToString('getComputedStyle(flexitem).webkitFlex', '0 0 auto');
-
-flexitem.style.webkitFlexGrow = 1.5;
-shouldBeEqualToString('flexitem.style.webkitFlex', '1.5 0 auto');
-shouldBeEqualToString('getComputedStyle(flexitem).webkitFlex', '1.5 0 auto');
-
-flexitem.style.webkitFlex = 3;
-shouldBeEqualToString('flexitem.style.webkitFlex', '3 1 0px');
-shouldBeEqualToString('flexitem.style.webkitFlexGrow', '3');
-shouldBeEqualToString('flexitem.style.webkitFlexShrink', '1');
-shouldBeEqualToString('flexitem.style.webkitFlexBasis', '0px');
-shouldBeEqualToString('getComputedStyle(flexitem).webkitFlex', '3 1 0px');
-
-</script>
-<script src="../../fast/js/resources/js-test-post.js"></script>
-</body>
-</html>
index 63c8b80..4a6d882 100644 (file)
@@ -23,7 +23,7 @@ PASS flexitem.style.webkitFlex is "0 1 2em"
 PASS getComputedStyle(flexitem).webkitFlex is "0 1 32px"
 PASS flexitem.style.webkitFlex is "0 1 0px"
 PASS getComputedStyle(flexitem).webkitFlex is "0 1 0px"
-PASS flexitem.style.webkitFlex is "0 0 auto"
+PASS flexitem.style.webkitFlex is "none"
 PASS getComputedStyle(flexitem).webkitFlex is "0 0 auto"
 PASS flexitem.style.webkitFlex is "0 0 0px"
 PASS getComputedStyle(flexitem).webkitFlex is "0 0 0px"
@@ -43,17 +43,17 @@ PASS flexitem.style.webkitFlex is "4 1 0px"
 PASS getComputedStyle(flexitem).webkitFlex is "4 1 0px"
 PASS flexitem.style.webkitFlex is "0 1 0px"
 PASS getComputedStyle(flexitem).webkitFlex is "0 1 0px"
-PASS flexitem.style.webkitFlex is "0 0 auto"
+PASS flexitem.style.webkitFlex is "none"
 PASS getComputedStyle(flexitem).webkitFlex is "0 0 auto"
-PASS flexitem.style.webkitFlex is "0 0 auto"
+PASS flexitem.style.webkitFlex is "none"
 PASS getComputedStyle(flexitem).webkitFlex is "0 0 auto"
-PASS flexitem.style.webkitFlex is "0 0 auto"
+PASS flexitem.style.webkitFlex is "none"
 PASS getComputedStyle(flexitem).webkitFlex is "0 0 auto"
-PASS flexitem.style.webkitFlex is "0 0 auto"
+PASS flexitem.style.webkitFlex is "none"
 PASS getComputedStyle(flexitem).webkitFlex is "0 0 auto"
-PASS flexitem.style.webkitFlex is "0 0 auto"
+PASS flexitem.style.webkitFlex is "none"
 PASS getComputedStyle(flexitem).webkitFlex is "0 0 auto"
-PASS flexitem.style.webkitFlex is "0 0 auto"
+PASS flexitem.style.webkitFlex is "none"
 PASS getComputedStyle(flexitem).webkitFlex is "0 0 auto"
 PASS flexitem.style.webkitFlex is "1 2 0px"
 PASS getComputedStyle(flexitem).webkitFlex is "1 2 0px"
@@ -77,37 +77,37 @@ PASS flexitem.style.webkitFlex is "0 1 0px"
 PASS getComputedStyle(flexitem).webkitFlex is "0 1 0px"
 PASS flexitem.style.webkitFlex is "0 0 0px"
 PASS getComputedStyle(flexitem).webkitFlex is "0 0 0px"
-PASS flexitem.style.webkitFlex is "0 0 auto"
+PASS flexitem.style.webkitFlex is "none"
 PASS getComputedStyle(flexitem).webkitFlex is "0 0 auto"
-PASS flexitem.style.webkitFlex is "0 0 auto"
+PASS flexitem.style.webkitFlex is "none"
 PASS getComputedStyle(flexitem).webkitFlex is "0 0 auto"
-PASS flexitem.style.webkitFlex is "0 0 auto"
+PASS flexitem.style.webkitFlex is "none"
 PASS getComputedStyle(flexitem).webkitFlex is "0 0 auto"
-PASS flexitem.style.webkitFlex is "0 0 auto"
+PASS flexitem.style.webkitFlex is "none"
 PASS getComputedStyle(flexitem).webkitFlex is "0 0 auto"
-PASS flexitem.style.webkitFlex is "0 0 auto"
+PASS flexitem.style.webkitFlex is "none"
 PASS getComputedStyle(flexitem).webkitFlex is "0 0 auto"
-PASS flexitem.style.webkitFlex is "0 0 auto"
+PASS flexitem.style.webkitFlex is "none"
 PASS getComputedStyle(flexitem).webkitFlex is "0 0 auto"
-PASS flexitem.style.webkitFlex is "0 0 auto"
+PASS flexitem.style.webkitFlex is "none"
 PASS getComputedStyle(flexitem).webkitFlex is "0 0 auto"
-PASS flexitem.style.webkitFlex is "0 0 auto"
+PASS flexitem.style.webkitFlex is "none"
 PASS getComputedStyle(flexitem).webkitFlex is "0 0 auto"
-PASS flexitem.style.webkitFlex is "0 0 auto"
+PASS flexitem.style.webkitFlex is "none"
 PASS getComputedStyle(flexitem).webkitFlex is "0 0 auto"
-PASS flexitem.style.webkitFlex is "0 0 auto"
+PASS flexitem.style.webkitFlex is "none"
 PASS getComputedStyle(flexitem).webkitFlex is "0 0 auto"
-PASS flexitem.style.webkitFlex is "0 0 auto"
+PASS flexitem.style.webkitFlex is "none"
 PASS getComputedStyle(flexitem).webkitFlex is "0 0 auto"
-PASS flexitem.style.webkitFlex is "0 0 auto"
+PASS flexitem.style.webkitFlex is "none"
 PASS getComputedStyle(flexitem).webkitFlex is "0 0 auto"
-PASS flexitem.style.webkitFlex is "0 0 auto"
+PASS flexitem.style.webkitFlex is "none"
 PASS getComputedStyle(flexitem).webkitFlex is "0 0 auto"
-PASS flexitem.style.webkitFlex is "0 0 auto"
+PASS flexitem.style.webkitFlex is "none"
 PASS getComputedStyle(flexitem).webkitFlex is "0 0 auto"
 PASS flexitem.style.webkitFlex is "initial"
 PASS getComputedStyle(flexitem).webkitFlex is "0 1 auto"
-FAIL flexitem.style.webkitFlex should be 0 0 auto. Was initial.
+PASS flexitem.style.webkitFlex is "none"
 PASS getComputedStyle(flexitem).webkitFlex is "0 0 auto"
 PASS successfullyParsed is true
 
index 3f301dd..638e56a 100644 (file)
@@ -57,7 +57,7 @@ shouldBeEqualToString('getComputedStyle(flexitem).webkitFlex', '0 1 0px');
 
 flexitem.style.webkitFlex = 'none';
 flexitem.style.webkitFlex = '-2'; // Invalid, return previous value.
-shouldBeEqualToString('flexitem.style.webkitFlex', '0 0 auto');
+shouldBeEqualToString('flexitem.style.webkitFlex', 'none');
 shouldBeEqualToString('getComputedStyle(flexitem).webkitFlex', '0 0 auto');
 
 flexitem.style.webkitFlex = '0 0';
@@ -98,27 +98,27 @@ shouldBeEqualToString('getComputedStyle(flexitem).webkitFlex', '0 1 0px');
 
 flexitem.style.webkitFlex = 'none';
 flexitem.style.webkitFlex = '-1 5'; // Invalid, return previous value.
-shouldBeEqualToString('flexitem.style.webkitFlex', '0 0 auto');
+shouldBeEqualToString('flexitem.style.webkitFlex', 'none');
 shouldBeEqualToString('getComputedStyle(flexitem).webkitFlex', '0 0 auto');
 
 flexitem.style.webkitFlex = '1 -1'; // Invalid, return previous value.
-shouldBeEqualToString('flexitem.style.webkitFlex', '0 0 auto');
+shouldBeEqualToString('flexitem.style.webkitFlex', 'none');
 shouldBeEqualToString('getComputedStyle(flexitem).webkitFlex', '0 0 auto');
 
 flexitem.style.webkitFlex = '-1 -1'; // Invalid, return previous value.
-shouldBeEqualToString('flexitem.style.webkitFlex', '0 0 auto');
+shouldBeEqualToString('flexitem.style.webkitFlex', 'none');
 shouldBeEqualToString('getComputedStyle(flexitem).webkitFlex', '0 0 auto');
 
 flexitem.style.webkitFlex = 'auto 2em'; // Invalid, return previous value.
-shouldBeEqualToString('flexitem.style.webkitFlex', '0 0 auto');
+shouldBeEqualToString('flexitem.style.webkitFlex', 'none');
 shouldBeEqualToString('getComputedStyle(flexitem).webkitFlex', '0 0 auto');
 
 flexitem.style.webkitFlex = '2px 4px'; // Invalid, return previous value.
-shouldBeEqualToString('flexitem.style.webkitFlex', '0 0 auto');
+shouldBeEqualToString('flexitem.style.webkitFlex', 'none');
 shouldBeEqualToString('getComputedStyle(flexitem).webkitFlex', '0 0 auto');
 
 flexitem.style.webkitFlex = '0px 0px'; // Invalid, return previous value.
-shouldBeEqualToString('flexitem.style.webkitFlex', '0 0 auto');
+shouldBeEqualToString('flexitem.style.webkitFlex', 'none');
 shouldBeEqualToString('getComputedStyle(flexitem).webkitFlex', '0 0 auto');
 
 flexitem.style.webkitFlex = '1 2 0';
@@ -167,59 +167,59 @@ shouldBeEqualToString('getComputedStyle(flexitem).webkitFlex', '0 0 0px');
 
 flexitem.style.webkitFlex = 'none';
 flexitem.style.webkitFlex = '1 2 3'; // Invalid, return previous value.
-shouldBeEqualToString('flexitem.style.webkitFlex', '0 0 auto');
+shouldBeEqualToString('flexitem.style.webkitFlex', 'none');
 shouldBeEqualToString('getComputedStyle(flexitem).webkitFlex', '0 0 auto');
 
 flexitem.style.webkitFlex = '0 2 3'; // Invalid, return previous value.
-shouldBeEqualToString('flexitem.style.webkitFlex', '0 0 auto');
+shouldBeEqualToString('flexitem.style.webkitFlex', 'none');
 shouldBeEqualToString('getComputedStyle(flexitem).webkitFlex', '0 0 auto');
 
 flexitem.style.webkitFlex = '1 0 3'; // Invalid, return previous value.
-shouldBeEqualToString('flexitem.style.webkitFlex', '0 0 auto');
+shouldBeEqualToString('flexitem.style.webkitFlex', 'none');
 shouldBeEqualToString('getComputedStyle(flexitem).webkitFlex', '0 0 auto');
 
 flexitem.style.webkitFlex = '0 0 1';  // Invalid, return previous value.
-shouldBeEqualToString('flexitem.style.webkitFlex', '0 0 auto');
+shouldBeEqualToString('flexitem.style.webkitFlex', 'none');
 shouldBeEqualToString('getComputedStyle(flexitem).webkitFlex', '0 0 auto');
 
 flexitem.style.webkitFlex = '1 -2 3px';  // Invalid, return previous value.
-shouldBeEqualToString('flexitem.style.webkitFlex', '0 0 auto');
+shouldBeEqualToString('flexitem.style.webkitFlex', 'none');
 shouldBeEqualToString('getComputedStyle(flexitem).webkitFlex', '0 0 auto');
 
 flexitem.style.webkitFlex = '1 2px 3px';  // Invalid, return previous value.
-shouldBeEqualToString('flexitem.style.webkitFlex', '0 0 auto');
+shouldBeEqualToString('flexitem.style.webkitFlex', 'none');
 shouldBeEqualToString('getComputedStyle(flexitem).webkitFlex', '0 0 auto');
 
 flexitem.style.webkitFlex = '1 2px auto';  // Invalid, return previous value.
-shouldBeEqualToString('flexitem.style.webkitFlex', '0 0 auto');
+shouldBeEqualToString('flexitem.style.webkitFlex', 'none');
 shouldBeEqualToString('getComputedStyle(flexitem).webkitFlex', '0 0 auto');
 
 flexitem.style.webkitFlex = '0px 0px 0';  // Invalid, return previous value.
-shouldBeEqualToString('flexitem.style.webkitFlex', '0 0 auto');
+shouldBeEqualToString('flexitem.style.webkitFlex', 'none');
 shouldBeEqualToString('getComputedStyle(flexitem).webkitFlex', '0 0 auto');
 
 flexitem.style.webkitFlex = '0 0 0 0';  // Invalid, return previous value.
-shouldBeEqualToString('flexitem.style.webkitFlex', '0 0 auto');
+shouldBeEqualToString('flexitem.style.webkitFlex', 'none');
 shouldBeEqualToString('getComputedStyle(flexitem).webkitFlex', '0 0 auto');
 
 flexitem.style.webkitFlex = '0 0 0px 0';  // Invalid, return previous value.
-shouldBeEqualToString('flexitem.style.webkitFlex', '0 0 auto');
+shouldBeEqualToString('flexitem.style.webkitFlex', 'none');
 shouldBeEqualToString('getComputedStyle(flexitem).webkitFlex', '0 0 auto');
 
 flexitem.style.webkitFlex = '0 0 0px 0px';  // Invalid, return previous value.
-shouldBeEqualToString('flexitem.style.webkitFlex', '0 0 auto');
+shouldBeEqualToString('flexitem.style.webkitFlex', 'none');
 shouldBeEqualToString('getComputedStyle(flexitem).webkitFlex', '0 0 auto');
 
 flexitem.style.webkitFlex = '0 0 0px 0';  // Invalid, return previous value.
-shouldBeEqualToString('flexitem.style.webkitFlex', '0 0 auto');
+shouldBeEqualToString('flexitem.style.webkitFlex', 'none');
 shouldBeEqualToString('getComputedStyle(flexitem).webkitFlex', '0 0 auto');
 
 flexitem.style.webkitFlex = '1, 2, 3px';  // Invalid, return previous value.
-shouldBeEqualToString('flexitem.style.webkitFlex', '0 0 auto');
+shouldBeEqualToString('flexitem.style.webkitFlex', 'none');
 shouldBeEqualToString('getComputedStyle(flexitem).webkitFlex', '0 0 auto');
 
 flexitem.style.webkitFlex = '1,';  // Invalid, return previous value.
-shouldBeEqualToString('flexitem.style.webkitFlex', '0 0 auto');
+shouldBeEqualToString('flexitem.style.webkitFlex', 'none');
 shouldBeEqualToString('getComputedStyle(flexitem).webkitFlex', '0 0 auto');
 
 flexitem.style.webkitFlex = 'initial';
@@ -227,8 +227,7 @@ shouldBeEqualToString('flexitem.style.webkitFlex', 'initial');
 shouldBeEqualToString('getComputedStyle(flexitem).webkitFlex', '0 1 auto');
 
 flexitem.style.webkitFlex = 'none';
-// FIXME: This test case is failing. https://bugs.webkit.org/show_bug.cgi?id=90020
-shouldBeEqualToString('flexitem.style.webkitFlex', '0 0 auto');
+shouldBeEqualToString('flexitem.style.webkitFlex', 'none');
 shouldBeEqualToString('getComputedStyle(flexitem).webkitFlex', '0 0 auto');
 </script>
 <script src="../../fast/js/resources/js-test-post.js"></script>
index 59e3829..8119ff8 100644 (file)
@@ -146,6 +146,7 @@ zoom: 1;
 -webkit-align-content: stretch;
 -webkit-align-items: stretch;
 -webkit-align-self: stretch;
+-webkit-flex: 0 1 auto;
 -webkit-flex-direction: row;
 -webkit-flex-wrap: none;
 -webkit-justify-content: flex-start;
index fb13fc3..9a6d65b 100644 (file)
@@ -145,6 +145,7 @@ zoom: 1
 -webkit-align-content: stretch
 -webkit-align-items: stretch
 -webkit-align-self: stretch
+-webkit-flex: 0 1 auto
 -webkit-flex-direction: row
 -webkit-flex-wrap: none
 -webkit-justify-content: flex-start
index 5098bdc..05dbc98 100644 (file)
@@ -44,6 +44,7 @@ var propertiesToTest = {
     "-webkit-column-rule-width": true,
     "-webkit-column-span": true,
     "-webkit-column-width": true,
+    "-webkit-flex": true,
     "-webkit-flex-direction": true,
     "-webkit-flex-wrap": true,
     "-webkit-font-kerning": true,
index 2e1900a..ff9b317 100644 (file)
@@ -290,6 +290,8 @@ rect: style.getPropertyValue(-webkit-align-items) : stretch
 rect: style.getPropertyCSSValue(-webkit-align-items) : [object CSSPrimitiveValue]
 rect: style.getPropertyValue(-webkit-align-self) : stretch
 rect: style.getPropertyCSSValue(-webkit-align-self) : [object CSSPrimitiveValue]
+rect: style.getPropertyValue(-webkit-flex) : 0 1 auto
+rect: style.getPropertyCSSValue(-webkit-flex) : [object CSSValueList]
 rect: style.getPropertyValue(-webkit-flex-direction) : row
 rect: style.getPropertyCSSValue(-webkit-flex-direction) : [object CSSPrimitiveValue]
 rect: style.getPropertyValue(-webkit-flex-wrap) : none
@@ -792,6 +794,8 @@ g: style.getPropertyValue(-webkit-align-items) : stretch
 g: style.getPropertyCSSValue(-webkit-align-items) : [object CSSPrimitiveValue]
 g: style.getPropertyValue(-webkit-align-self) : stretch
 g: style.getPropertyCSSValue(-webkit-align-self) : [object CSSPrimitiveValue]
+g: style.getPropertyValue(-webkit-flex) : 0 1 auto
+g: style.getPropertyCSSValue(-webkit-flex) : [object CSSValueList]
 g: style.getPropertyValue(-webkit-flex-direction) : row
 g: style.getPropertyCSSValue(-webkit-flex-direction) : [object CSSPrimitiveValue]
 g: style.getPropertyValue(-webkit-flex-wrap) : none
index 66e4aad..2c57397 100755 (executable)
@@ -1,3 +1,42 @@
+2012-06-27  Tony Chang  <tony@chromium.org>
+
+        Unreviewed, rolling out r121380.
+        http://trac.webkit.org/changeset/121380
+        https://bugs.webkit.org/show_bug.cgi?id=86525
+
+        Hits an ASSERT in debug.
+
+        * css/CSSComputedStyleDeclaration.cpp:
+        (WebCore):
+        (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
+        * css/CSSParser.cpp:
+        (WebCore::isValidKeywordPropertyAndValue):
+        (WebCore::CSSParser::parseValue):
+        (WebCore::CSSParser::parseFlex):
+        * css/CSSParser.h:
+        * css/CSSProperty.cpp:
+        (WebCore::CSSProperty::isInheritedProperty):
+        * css/CSSPropertyNames.in:
+        * css/StyleBuilder.cpp:
+        (ApplyPropertyFlex):
+        (WebCore::ApplyPropertyFlex::applyInheritValue):
+        (WebCore::ApplyPropertyFlex::applyInitialValue):
+        (WebCore::ApplyPropertyFlex::applyValue):
+        (WebCore::ApplyPropertyFlex::createHandler):
+        (WebCore::ApplyPropertyFlex::getFlexValue):
+        (WebCore):
+        (WebCore::StyleBuilder::StyleBuilder):
+        * css/StylePropertySet.cpp:
+        (WebCore::StylePropertySet::getPropertyValue):
+        (WebCore::StylePropertySet::asText):
+        * css/StylePropertyShorthand.cpp:
+        (WebCore::webkitFlexFlowShorthand):
+        (WebCore::shorthandForProperty):
+        * css/StylePropertyShorthand.h:
+        (WebCore):
+        * css/StyleResolver.cpp:
+        (WebCore::StyleResolver::collectMatchingRulesForList):
+
 2012-06-27  Rakesh KN  <rakesh.kn@motorola.com>
 
         HTMLFieldSetElement::m_documentVersion is not initialized
index d19e554..870dee4 100644 (file)
@@ -237,9 +237,7 @@ static const CSSPropertyID computedProperties[] = {
     CSSPropertyWebkitAlignContent,
     CSSPropertyWebkitAlignItems,
     CSSPropertyWebkitAlignSelf,
-    CSSPropertyWebkitFlexBasis,
-    CSSPropertyWebkitFlexGrow,
-    CSSPropertyWebkitFlexShrink,
+    CSSPropertyWebkitFlex,
     CSSPropertyWebkitFlexDirection,
     CSSPropertyWebkitFlexWrap,
     CSSPropertyWebkitJustifyContent,
@@ -1652,8 +1650,25 @@ PassRefPtr<CSSValue> CSSComputedStyleDeclaration::getPropertyCSSValue(CSSPropert
         case CSSPropertyEmptyCells:
             return cssValuePool().createValue(style->emptyCells());
 #if ENABLE(CSS3_FLEXBOX)
-        case CSSPropertyWebkitAlignContent:
-            return cssValuePool().createValue(style->alignContent());
+        case CSSPropertyWebkitFlex: {
+            RefPtr<CSSValueList> list = CSSValueList::createSpaceSeparated();
+            list->append(cssValuePool().createValue(style->flexGrow()));
+            list->append(cssValuePool().createValue(style->flexShrink()));
+
+            Length flexBasis = style->flexBasis();
+            if (flexBasis.isAuto())
+                list->append(cssValuePool().createIdentifierValue(CSSValueAuto));
+            else if (flexBasis.isPercent())
+                list->append(cssValuePool().createValue(flexBasis.value(), CSSPrimitiveValue::CSS_PERCENTAGE));
+            else
+                list->append(cssValuePool().createValue(flexBasis.value(), CSSPrimitiveValue::CSS_PX));
+
+            return list.release();
+        }
+        case CSSPropertyWebkitOrder:
+            return cssValuePool().createValue(style->order());
+        case CSSPropertyWebkitJustifyContent:
+            return cssValuePool().createValue(style->justifyContent());
         case CSSPropertyWebkitAlignItems:
             return cssValuePool().createValue(style->alignItems());
         case CSSPropertyWebkitAlignSelf:
@@ -1663,24 +1678,18 @@ PassRefPtr<CSSValue> CSSComputedStyleDeclaration::getPropertyCSSValue(CSSPropert
                 return cssValuePool().createValue(AlignStretch);
             }
             return cssValuePool().createValue(style->alignSelf());
-        case CSSPropertyWebkitFlex:
-            return getCSSPropertyValuesForShorthandProperties(webkitFlexShorthand());
-        case CSSPropertyWebkitFlexBasis:
-            return cssValuePool().createValue(style->flexBasis());
         case CSSPropertyWebkitFlexDirection:
             return cssValuePool().createValue(style->flexDirection());
-        case CSSPropertyWebkitFlexFlow:
-            return getCSSPropertyValuesForShorthandProperties(webkitFlexFlowShorthand());
-        case CSSPropertyWebkitFlexGrow:
-            return cssValuePool().createValue(style->flexGrow());
-        case CSSPropertyWebkitFlexShrink:
-            return cssValuePool().createValue(style->flexShrink());
         case CSSPropertyWebkitFlexWrap:
             return cssValuePool().createValue(style->flexWrap());
-        case CSSPropertyWebkitJustifyContent:
-            return cssValuePool().createValue(style->justifyContent());
-        case CSSPropertyWebkitOrder:
-            return cssValuePool().createValue(style->order());
+        case CSSPropertyWebkitAlignContent:
+            return cssValuePool().createValue(style->alignContent());
+        case CSSPropertyWebkitFlexFlow: {
+            RefPtr<CSSValueList> list = CSSValueList::createSpaceSeparated();
+            list->append(cssValuePool().createValue(style->flexDirection()));
+            list->append(cssValuePool().createValue(style->flexWrap()));
+            return list.release();
+        }
 #endif
         case CSSPropertyFloat:
             return cssValuePool().createValue(style->floating());
index c386891..cc96a2d 100644 (file)
@@ -716,7 +716,7 @@ static inline bool isValidKeywordPropertyAndValue(CSSPropertyID propertyId, int
         break;
     case CSSPropertyWebkitFlexDirection:
         if (valueID == CSSValueRow || valueID == CSSValueRowReverse || valueID == CSSValueColumn || valueID == CSSValueColumnReverse)
-            return true;
+                return true;
         break;
     case CSSPropertyWebkitFlexWrap:
         if (valueID == CSSValueNone || valueID == CSSValueWrap || valueID == CSSValueWrapReverse)
@@ -2275,26 +2275,11 @@ bool CSSParser::parseValue(CSSPropertyID propId, bool important)
         break;
 #endif
 #if ENABLE(CSS3_FLEXBOX)
-    case CSSPropertyWebkitFlex: {
-        ShorthandScope scope(this, propId);
-        if (id == CSSValueNone) {
-            addProperty(CSSPropertyWebkitFlexGrow, cssValuePool().createValue(0, CSSPrimitiveValue::CSS_NUMBER), important);
-            addProperty(CSSPropertyWebkitFlexShrink, cssValuePool().createValue(0, CSSPrimitiveValue::CSS_NUMBER), important);
-            addProperty(CSSPropertyWebkitFlexBasis, cssValuePool().createIdentifierValue(CSSValueAuto), important);
-            return true;
-        }
-        return parseFlex(m_valueList.get(), important);
-    }
-    case CSSPropertyWebkitFlexBasis:
-        // FIXME: Support intrinsic dimensions too.
-        if (id == CSSValueAuto)
+    case CSSPropertyWebkitFlex:
+        if (id == CSSValueNone)
             validPrimitive = true;
         else
-            validPrimitive = (!id && validUnit(value, FLength | FPercent | FNonNeg));
-        break;
-    case CSSPropertyWebkitFlexGrow:
-    case CSSPropertyWebkitFlexShrink:
-        validPrimitive = validUnit(value, FNumber | FNonNeg);
+            parsedValue = parseFlex(m_valueList.get());
         break;
     case CSSPropertyWebkitOrder:
         validPrimitive = validUnit(value, FNumber);
@@ -5795,48 +5780,49 @@ bool CSSParser::parseReflect(CSSPropertyID propId, bool important)
 
 #if ENABLE(CSS3_FLEXBOX)
 
-bool CSSParser::parseFlex(CSSParserValueList* args, bool important)
+PassRefPtr<CSSValue> CSSParser::parseFlex(CSSParserValueList* args)
 {
     if (!args || !args->size() || args->size() > 3)
-        return false;
+        return 0;
     static const double unsetValue = -1;
-    double flexGrow = unsetValue;
-    double flexShrink = unsetValue;
-    RefPtr<CSSPrimitiveValue> flexBasis;
+    double positiveFlex = unsetValue;
+    double negativeFlex = unsetValue;
+    RefPtr<CSSPrimitiveValue> preferredSize;
 
     while (CSSParserValue* arg = args->current()) {
         if (validUnit(arg, FNumber | FNonNeg)) {
-            if (flexGrow == unsetValue)
-                flexGrow = arg->fValue;
-            else if (flexShrink == unsetValue)
-                flexShrink = arg->fValue;
+            if (positiveFlex == unsetValue)
+                positiveFlex = arg->fValue;
+            else if (negativeFlex == unsetValue)
+                negativeFlex = arg->fValue;
             else if (!arg->fValue) {
-                // flex only allows a basis of 0 (sans units) if flex-grow and flex-shrink values have already been set.
-                flexBasis = cssValuePool().createValue(0, CSSPrimitiveValue::CSS_PX);
+                // flex() only allows a preferred size of 0 (sans units) if the positive and negative flex values have already been set.
+                preferredSize = cssValuePool().createValue(0, CSSPrimitiveValue::CSS_PX);
             } else {
-                // We only allow 3 numbers without units if the last value is 0. E.g., flex:1 1 1 is invalid.
-                return false;
+                // We only allow 3 numbers without units if the last value is 0. E.g., flex(1 1 1) is invalid.
+                return 0;
             }
-        } else if (!flexBasis && (arg->id == CSSValueAuto || validUnit(arg, FLength | FPercent | FNonNeg)))
-            flexBasis = parseValidPrimitive(arg->id, arg);
+        } else if (!preferredSize && (arg->id == CSSValueAuto || validUnit(arg, FLength | FPercent | FNonNeg)))
+            preferredSize = parseValidPrimitive(arg->id, arg);
         else {
-            // Not a valid arg for flex.
-            return false;
+            // Not a valid arg for flex().
+            return 0;
         }
         args->next();
     }
 
-    if (flexGrow == unsetValue)
-        flexGrow = 0;
-    if (flexShrink == unsetValue)
-        flexShrink = 1;
-    if (!flexBasis)
-        flexBasis = cssValuePool().createValue(0, CSSPrimitiveValue::CSS_PX);
+    if (positiveFlex == unsetValue)
+        positiveFlex = 0;
+    if (negativeFlex == unsetValue)
+        negativeFlex = 1;
+    if (!preferredSize)
+        preferredSize = cssValuePool().createValue(0, CSSPrimitiveValue::CSS_PX);
 
-    addProperty(CSSPropertyWebkitFlexGrow, cssValuePool().createValue(clampToFloat(flexGrow), CSSPrimitiveValue::CSS_NUMBER), important);
-    addProperty(CSSPropertyWebkitFlexShrink, cssValuePool().createValue(clampToFloat(flexShrink), CSSPrimitiveValue::CSS_NUMBER), important);
-    addProperty(CSSPropertyWebkitFlexBasis, flexBasis, important);
-    return true;
+    RefPtr<CSSValueList> flex = CSSValueList::createSpaceSeparated();
+    flex->append(cssValuePool().createValue(clampToFloat(positiveFlex), CSSPrimitiveValue::CSS_NUMBER));
+    flex->append(cssValuePool().createValue(clampToFloat(negativeFlex), CSSPrimitiveValue::CSS_NUMBER));
+    flex->append(preferredSize);
+    return flex;
 }
 
 #endif
index 785793f..625e1e0 100644 (file)
@@ -189,7 +189,7 @@ public:
 
     bool parseReflect(CSSPropertyID, bool important);
 
-    bool parseFlex(CSSParserValueList* args, bool important);
+    PassRefPtr<CSSValue> parseFlex(CSSParserValueList* args);
 
     // Image generators
     bool parseCanvas(CSSParserValueList*, RefPtr<CSSValue>&);
index 01519f3..7a3d715 100644 (file)
@@ -552,11 +552,8 @@ bool CSSProperty::isInheritedProperty(CSSPropertyID propertyID)
     case CSSPropertyWebkitAlignItems:
     case CSSPropertyWebkitAlignSelf:
     case CSSPropertyWebkitFlex:
-    case CSSPropertyWebkitFlexBasis:
     case CSSPropertyWebkitFlexDirection:
     case CSSPropertyWebkitFlexFlow:
-    case CSSPropertyWebkitFlexGrow:
-    case CSSPropertyWebkitFlexShrink:
     case CSSPropertyWebkitFlexWrap:
     case CSSPropertyWebkitJustifyContent:
     case CSSPropertyWebkitOrder:
index 1af3925..caaaf0e 100644 (file)
@@ -268,11 +268,8 @@ z-index
 -webkit-align-items
 -webkit-align-self
 -webkit-flex
--webkit-flex-basis
 -webkit-flex-direction
 -webkit-flex-flow
--webkit-flex-grow
--webkit-flex-shrink
 -webkit-flex-wrap
 -webkit-justify-content
 #endif
index 670322d..c2b1240 100644 (file)
@@ -1716,6 +1716,70 @@ public:
     }
 };
 
+class ApplyPropertyFlex {
+public:
+    static void applyInheritValue(StyleResolver* styleResolver)
+    {
+        ApplyPropertyDefaultBase<float, &RenderStyle::flexGrow, float, &RenderStyle::setFlexGrow, float, &RenderStyle::initialFlexGrow>::applyInheritValue(styleResolver);
+        ApplyPropertyDefaultBase<float, &RenderStyle::flexShrink, float, &RenderStyle::setFlexShrink, float, &RenderStyle::initialFlexShrink>::applyInheritValue(styleResolver);
+        ApplyPropertyDefaultBase<Length, &RenderStyle::flexBasis, Length, &RenderStyle::setFlexBasis, Length, &RenderStyle::initialFlexBasis>::applyInheritValue(styleResolver);
+    }
+
+    static void applyInitialValue(StyleResolver* styleResolver)
+    {
+        styleResolver->style()->setFlexGrow(RenderStyle::initialFlexGrow());
+        styleResolver->style()->setFlexShrink(RenderStyle::initialFlexShrink());
+        styleResolver->style()->setFlexBasis(RenderStyle::initialFlexBasis());
+    }
+
+    static void applyValue(StyleResolver* styleResolver, CSSValue* value)
+    {
+        if (value->isPrimitiveValue()) {
+            CSSPrimitiveValue* primitiveValue = static_cast<CSSPrimitiveValue*>(value);
+            if (primitiveValue->getIdent() == CSSValueNone) {
+                styleResolver->style()->setFlexGrow(0);
+                styleResolver->style()->setFlexShrink(0);
+                styleResolver->style()->setFlexBasis(Length(Auto));
+            }
+            return;
+        }
+
+        if (!value->isValueList())
+            return;
+        CSSValueList* valueList = static_cast<CSSValueList*>(value);
+        if (valueList->length() != 3)
+            return;
+
+        float flexValue = 0;
+        if (!getFlexValue(valueList->itemWithoutBoundsCheck(0), flexValue))
+            return;
+        styleResolver->style()->setFlexGrow(flexValue);
+
+        if (!getFlexValue(valueList->itemWithoutBoundsCheck(1), flexValue))
+            return;
+        styleResolver->style()->setFlexShrink(flexValue);
+
+        ApplyPropertyLength<&RenderStyle::flexBasis, &RenderStyle::setFlexBasis, &RenderStyle::initialFlexBasis, AutoEnabled>::applyValue(styleResolver, valueList->itemWithoutBoundsCheck(2));
+    }
+
+    static PropertyHandler createHandler()
+    {
+        return PropertyHandler(&applyInheritValue, &applyInitialValue, &applyValue);
+    }
+private:
+    static bool getFlexValue(CSSValue* value, float& flexValue)
+    {
+        if (!value->isPrimitiveValue())
+            return false;
+        CSSPrimitiveValue* primitiveValue = static_cast<CSSPrimitiveValue*>(value);
+        if (!primitiveValue->isNumber())
+            return false;
+        flexValue = primitiveValue->getFloatValue();
+        return true;
+    }
+
+};
+
 #if ENABLE(CSS_EXCLUSIONS)
 template <CSSWrapShape* (RenderStyle::*getterFunction)() const, void (RenderStyle::*setterFunction)(PassRefPtr<CSSWrapShape>), CSSWrapShape* (*initialFunction)()>
 class ApplyPropertyWrapShape {
@@ -1966,10 +2030,9 @@ StyleBuilder::StyleBuilder()
     setPropertyHandler(CSSPropertyWebkitAlignContent, ApplyPropertyDefault<EAlignContent, &RenderStyle::alignContent, EAlignContent, &RenderStyle::setAlignContent, EAlignContent, &RenderStyle::initialAlignContent>::createHandler());
     setPropertyHandler(CSSPropertyWebkitAlignItems, ApplyPropertyDefault<EAlignItems, &RenderStyle::alignItems, EAlignItems, &RenderStyle::setAlignItems, EAlignItems, &RenderStyle::initialAlignItems>::createHandler());
     setPropertyHandler(CSSPropertyWebkitAlignSelf, ApplyPropertyDefault<EAlignItems, &RenderStyle::alignSelf, EAlignItems, &RenderStyle::setAlignSelf, EAlignItems, &RenderStyle::initialAlignSelf>::createHandler());
-    setPropertyHandler(CSSPropertyWebkitFlexBasis, ApplyPropertyLength<&RenderStyle::flexBasis, &RenderStyle::setFlexBasis, &RenderStyle::initialFlexBasis, AutoEnabled>::createHandler());
+    setPropertyHandler(CSSPropertyWebkitFlex, ApplyPropertyFlex::createHandler());
     setPropertyHandler(CSSPropertyWebkitFlexDirection, ApplyPropertyDefault<EFlexDirection, &RenderStyle::flexDirection, EFlexDirection, &RenderStyle::setFlexDirection, EFlexDirection, &RenderStyle::initialFlexDirection>::createHandler());
-    setPropertyHandler(CSSPropertyWebkitFlexGrow, ApplyPropertyDefault<float, &RenderStyle::flexGrow, float, &RenderStyle::setFlexGrow, float, &RenderStyle::initialFlexGrow>::createHandler());
-    setPropertyHandler(CSSPropertyWebkitFlexShrink, ApplyPropertyDefault<float, &RenderStyle::flexShrink, float, &RenderStyle::setFlexShrink, float, &RenderStyle::initialFlexShrink>::createHandler());
+    setPropertyHandler(CSSPropertyWebkitFlexFlow, ApplyPropertyExpanding<SuppressValue, CSSPropertyWebkitFlexDirection, CSSPropertyWebkitFlexWrap>::createHandler());
     setPropertyHandler(CSSPropertyWebkitFlexWrap, ApplyPropertyDefault<EFlexWrap, &RenderStyle::flexWrap, EFlexWrap, &RenderStyle::setFlexWrap, EFlexWrap, &RenderStyle::initialFlexWrap>::createHandler());
     setPropertyHandler(CSSPropertyWebkitJustifyContent, ApplyPropertyDefault<EJustifyContent, &RenderStyle::justifyContent, EJustifyContent, &RenderStyle::setJustifyContent, EJustifyContent, &RenderStyle::initialJustifyContent>::createHandler());
     setPropertyHandler(CSSPropertyWebkitOrder, ApplyPropertyDefault<float, &RenderStyle::order, float, &RenderStyle::setOrder, float, &RenderStyle::initialOrder>::createHandler());
index 7fc836f..60afd5e 100644 (file)
@@ -162,8 +162,6 @@ String StylePropertySet::getPropertyValue(CSSPropertyID propertyID) const
     case CSSPropertyBorderStyle:
         return get4Values(borderStyleShorthand());
 #if ENABLE(CSS3_FLEXBOX)
-    case CSSPropertyWebkitFlex:
-        return getShorthandValue(webkitFlexShorthand());
     case CSSPropertyWebkitFlexFlow:
         return getShorthandValue(webkitFlexFlowShorthand());
 #endif
@@ -757,11 +755,6 @@ String StylePropertySet::asText() const
         case CSSPropertyWebkitFlexWrap:
             shorthandPropertyID = CSSPropertyWebkitFlexFlow;
             break;
-        case CSSPropertyWebkitFlexBasis:
-        case CSSPropertyWebkitFlexGrow:
-        case CSSPropertyWebkitFlexShrink:
-            shorthandPropertyID = CSSPropertyWebkitFlex;
-            break;
 #endif
         case CSSPropertyWebkitMaskPositionX:
         case CSSPropertyWebkitMaskPositionY:
index 045bd24..2265248 100644 (file)
@@ -314,13 +314,6 @@ const StylePropertyShorthand& webkitFlexFlowShorthand()
     DEFINE_STATIC_LOCAL(StylePropertyShorthand, webkitFlexFlowLonghands, (flexFlowProperties, WTF_ARRAY_LENGTH(flexFlowProperties)));
     return webkitFlexFlowLonghands;
 }
-
-const StylePropertyShorthand& webkitFlexShorthand()
-{
-    static const CSSPropertyID flexProperties[] = { CSSPropertyWebkitFlexGrow, CSSPropertyWebkitFlexShrink, CSSPropertyWebkitFlexBasis };
-    DEFINE_STATIC_LOCAL(StylePropertyShorthand, webkitFlexLonghands, (flexProperties, WTF_ARRAY_LENGTH(flexProperties)));
-    return webkitFlexLonghands;
-}
 #endif
 
 const StylePropertyShorthand& webkitMarginCollapseShorthand()
@@ -487,8 +480,6 @@ const StylePropertyShorthand& shorthandForProperty(CSSPropertyID propertyID)
     case CSSPropertyWebkitColumnRule:
         return webkitColumnRuleShorthand();
 #if ENABLE(CSS3_FLEXBOX)
-    case CSSPropertyWebkitFlex:
-        return webkitFlexShorthand();
     case CSSPropertyWebkitFlexFlow:
         return webkitFlexFlowShorthand();
 #endif
index ee331c7..a058538 100644 (file)
@@ -88,7 +88,6 @@ const StylePropertyShorthand& webkitColumnsShorthand();
 const StylePropertyShorthand& webkitColumnRuleShorthand();
 #if ENABLE(CSS3_FLEXBOX)
 const StylePropertyShorthand& webkitFlexFlowShorthand();
-const StylePropertyShorthand& webkitFlexShorthand();
 #endif
 const StylePropertyShorthand& webkitMarginCollapseShorthand();
 const StylePropertyShorthand& webkitMarqueeShorthand();
index 865c4ad..7e857ad 100644 (file)
@@ -4313,11 +4313,8 @@ void StyleResolver::applyProperty(CSSPropertyID id, CSSValue* value)
     case CSSPropertyWebkitAlignItems:
     case CSSPropertyWebkitAlignSelf:
     case CSSPropertyWebkitFlex:
-    case CSSPropertyWebkitFlexBasis:
     case CSSPropertyWebkitFlexDirection:
     case CSSPropertyWebkitFlexFlow:
-    case CSSPropertyWebkitFlexGrow:
-    case CSSPropertyWebkitFlexShrink:
     case CSSPropertyWebkitFlexWrap:
     case CSSPropertyWebkitJustifyContent:
     case CSSPropertyWebkitOrder: