Changeset 142893 in webkit
- Timestamp:
- Feb 14, 2013 11:09:41 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r142889 r142893 1 2013-02-14 Bear Travis <betravis@adobe.com> 2 3 Make outside-shape the default value for shape-inside 4 https://bugs.webkit.org/show_bug.cgi?id=109605 5 6 Reviewed by Levi Weintraub. 7 8 Updating tests to account for the new default value of shape-inside. 9 10 * fast/exclusions/css-exclusions-disabled-expected.txt: 11 * fast/exclusions/css-exclusions-disabled.html: 12 * fast/exclusions/parsing-wrap-shape-inside-expected.txt: 13 * fast/exclusions/parsing-wrap-shape-lengths-expected.txt: 14 * fast/exclusions/parsing-wrap-shape-lengths.html: 15 * fast/exclusions/script-tests/parsing-wrap-shape-inside.js: 16 (negative_test): 17 1 18 2013-02-14 Tony Chang <tony@chromium.org> 2 19 -
trunk/LayoutTests/fast/exclusions/css-exclusions-disabled-expected.txt
r134433 r142893 15 15 PASS testComputedStyle("-webkit-shape-outside", "circle(10px, 10px, 10px)") is "auto" 16 16 PASS testInlineStyle("-webkit-shape-inside", "circle(10px, 10px, 10px)") is null 17 PASS testComputedStyle("-webkit-shape-inside", "circle(10px, 10px, 10px)") is " auto"17 PASS testComputedStyle("-webkit-shape-inside", "circle(10px, 10px, 10px)") is "outside-shape" 18 18 PASS successfullyParsed is true 19 19 -
trunk/LayoutTests/fast/exclusions/css-exclusions-disabled.html
r134433 r142893 40 40 41 41 testStyle("-webkit-shape-outside", "circle(10px, 10px, 10px)", "auto"); 42 testStyle("-webkit-shape-inside", "circle(10px, 10px, 10px)", " auto");42 testStyle("-webkit-shape-inside", "circle(10px, 10px, 10px)", "outside-shape"); 43 43 44 44 </script> -
trunk/LayoutTests/fast/exclusions/parsing-wrap-shape-inside-expected.txt
r135314 r142893 26 26 PASS testNotInherited("auto", "rectangle(10px, 20px, 30px, 40px)") is "parent: auto, child: rectangle(10px, 20px, 30px, 40px)" 27 27 PASS testNotInherited("outside-shape", "rectangle(10px, 20px, 30px, 40px)") is "parent: outside-shape, child: rectangle(10px, 20px, 30px, 40px)" 28 PASS testNotInherited("rectangle(10px, 20px, 30px, 40px)", "initial") is "parent: rectangle(10px, 20px, 30px, 40px), child: auto"29 PASS testNotInherited("rectangle(10px, 20px, 30px, 40px)", "") is "parent: rectangle(10px, 20px, 30px, 40px), child: auto"28 PASS testNotInherited("rectangle(10px, 20px, 30px, 40px)", "initial") is "parent: rectangle(10px, 20px, 30px, 40px), child: outside-shape" 29 PASS testNotInherited("rectangle(10px, 20px, 30px, 40px)", "") is "parent: rectangle(10px, 20px, 30px, 40px), child: outside-shape" 30 30 PASS testNotInherited("rectangle(10px, 20px, 30px, 40px)", "inherit") is "parent: rectangle(10px, 20px, 30px, 40px), child: rectangle(10px, 20px, 30px, 40px)" 31 PASS testNotInherited("", "inherit") is "parent: auto, child: auto"31 PASS testNotInherited("", "inherit") is "parent: outside-shape, child: outside-shape" 32 32 PASS testNotInherited("auto", "inherit") is "parent: auto, child: auto" 33 33 PASS testCSSText("calc()") is "" 34 PASS testComputedStyle("calc()") is " auto"34 PASS testComputedStyle("calc()") is "outside-shape" 35 35 PASS testCSSText("none") is "" 36 PASS testComputedStyle("none") is " auto"36 PASS testComputedStyle("none") is "outside-shape" 37 37 PASS testCSSText("rectangle()") is "" 38 PASS testComputedStyle("rectangle()") is " auto"38 PASS testComputedStyle("rectangle()") is "outside-shape" 39 39 PASS testCSSText("rectangle(10px)") is "" 40 PASS testComputedStyle("rectangle(10px)") is " auto"40 PASS testComputedStyle("rectangle(10px)") is "outside-shape" 41 41 PASS testCSSText("rectangle(10px, 10px)") is "" 42 PASS testComputedStyle("rectangle(10px, 10px)") is " auto"42 PASS testComputedStyle("rectangle(10px, 10px)") is "outside-shape" 43 43 PASS testCSSText("rectangle(10px, 20px, 30px)") is "" 44 PASS testComputedStyle("rectangle(10px, 20px, 30px)") is " auto"44 PASS testComputedStyle("rectangle(10px, 20px, 30px)") is "outside-shape" 45 45 PASS testCSSText("rectangle(10px 20px 30px 40px)") is "" 46 PASS testComputedStyle("rectangle(10px 20px 30px 40px)") is " auto"46 PASS testComputedStyle("rectangle(10px 20px 30px 40px)") is "outside-shape" 47 47 PASS testCSSText("rectangle(10px, 20px, 30px, 40px, 50px, 60px, 70px)") is "" 48 PASS testComputedStyle("rectangle(10px, 20px, 30px, 40px, 50px, 60px, 70px)") is " auto"48 PASS testComputedStyle("rectangle(10px, 20px, 30px, 40px, 50px, 60px, 70px)") is "outside-shape" 49 49 PASS testCSSText("circle()") is "" 50 PASS testComputedStyle("circle()") is " auto"50 PASS testComputedStyle("circle()") is "outside-shape" 51 51 PASS testCSSText("circle(10px)") is "" 52 PASS testComputedStyle("circle(10px)") is " auto"52 PASS testComputedStyle("circle(10px)") is "outside-shape" 53 53 PASS testCSSText("circle(10px, 20px)") is "" 54 PASS testComputedStyle("circle(10px, 20px)") is " auto"54 PASS testComputedStyle("circle(10px, 20px)") is "outside-shape" 55 55 PASS testCSSText("circle(10px 20px 30px)") is "" 56 PASS testComputedStyle("circle(10px 20px 30px)") is " auto"56 PASS testComputedStyle("circle(10px 20px 30px)") is "outside-shape" 57 57 PASS testCSSText("circle(10px, 20px, 30px, 40px)") is "" 58 PASS testComputedStyle("circle(10px, 20px, 30px, 40px)") is " auto"58 PASS testComputedStyle("circle(10px, 20px, 30px, 40px)") is "outside-shape" 59 59 PASS testCSSText("ellipse()") is "" 60 PASS testComputedStyle("ellipse()") is " auto"60 PASS testComputedStyle("ellipse()") is "outside-shape" 61 61 PASS testCSSText("ellipse(10px)") is "" 62 PASS testComputedStyle("ellipse(10px)") is " auto"62 PASS testComputedStyle("ellipse(10px)") is "outside-shape" 63 63 PASS testCSSText("ellipse(10px, 20px)") is "" 64 PASS testComputedStyle("ellipse(10px, 20px)") is " auto"64 PASS testComputedStyle("ellipse(10px, 20px)") is "outside-shape" 65 65 PASS testCSSText("ellipse(10px, 20px, 30px)") is "" 66 PASS testComputedStyle("ellipse(10px, 20px, 30px)") is " auto"66 PASS testComputedStyle("ellipse(10px, 20px, 30px)") is "outside-shape" 67 67 PASS testCSSText("ellipse(10px 20px 30px 40px)") is "" 68 PASS testComputedStyle("ellipse(10px 20px 30px 40px)") is " auto"68 PASS testComputedStyle("ellipse(10px 20px 30px 40px)") is "outside-shape" 69 69 PASS testCSSText("polygon()") is "" 70 PASS testComputedStyle("polygon()") is " auto"70 PASS testComputedStyle("polygon()") is "outside-shape" 71 71 PASS testCSSText("polygon(evenodd 10px 20px, 30px 40px, 40px 50px)") is "" 72 PASS testComputedStyle("polygon(evenodd 10px 20px, 30px 40px, 40px 50px)") is " auto"72 PASS testComputedStyle("polygon(evenodd 10px 20px, 30px 40px, 40px 50px)") is "outside-shape" 73 73 PASS testCSSText("polygon(nonzero 10px 20px, 30px 40px, 40px 50px)") is "" 74 PASS testComputedStyle("polygon(nonzero 10px 20px, 30px 40px, 40px 50px)") is " auto"74 PASS testComputedStyle("polygon(nonzero 10px 20px, 30px 40px, 40px 50px)") is "outside-shape" 75 75 PASS testCSSText("polygon(nonzero)") is "" 76 PASS testComputedStyle("polygon(nonzero)") is " auto"76 PASS testComputedStyle("polygon(nonzero)") is "outside-shape" 77 77 PASS testCSSText("polygon(evenodd)") is "" 78 PASS testComputedStyle("polygon(evenodd)") is " auto"78 PASS testComputedStyle("polygon(evenodd)") is "outside-shape" 79 79 PASS testCSSText("polygon(10px)") is "" 80 PASS testComputedStyle("polygon(10px)") is " auto"80 PASS testComputedStyle("polygon(10px)") is "outside-shape" 81 81 PASS testCSSText("polygon(nonzero,10px)") is "" 82 PASS testComputedStyle("polygon(nonzero,10px)") is " auto"82 PASS testComputedStyle("polygon(nonzero,10px)") is "outside-shape" 83 83 PASS testCSSText("polygon(evenodd,12px)") is "" 84 PASS testComputedStyle("polygon(evenodd,12px)") is " auto"84 PASS testComputedStyle("polygon(evenodd,12px)") is "outside-shape" 85 85 PASS testCSSText("polygon(10px, 20px, 30px, 40px, 40px, 50px)") is "" 86 PASS testComputedStyle("polygon(10px, 20px, 30px, 40px, 40px, 50px)") is " auto"86 PASS testComputedStyle("polygon(10px, 20px, 30px, 40px, 40px, 50px)") is "outside-shape" 87 87 PASS successfullyParsed is true 88 88 -
trunk/LayoutTests/fast/exclusions/parsing-wrap-shape-lengths-expected.txt
r123405 r142893 31 31 PASS computedStyle("-webkit-shape-inside", "polygon(10% 20%, 30% 40%, 40% 50%)") is "polygon(nonzero, 10% 20%, 30% 40%, 40% 50%)" 32 32 PASS innerStyle("-webkit-shape-inside", "circle(1px, 1px, 1)") is null 33 PASS computedStyle("-webkit-shape-inside", "circle(1px, 1px, 1)") is " auto"33 PASS computedStyle("-webkit-shape-inside", "circle(1px, 1px, 1)") is "outside-shape" 34 34 PASS innerStyle("-webkit-shape-inside", "circle(1px, 1px, px)") is null 35 PASS computedStyle("-webkit-shape-inside", "circle(1px, 1px, px)") is " auto"35 PASS computedStyle("-webkit-shape-inside", "circle(1px, 1px, px)") is "outside-shape" 36 36 PASS innerStyle("-webkit-shape-inside", "circle(1px, 1px, 1p)") is null 37 PASS computedStyle("-webkit-shape-inside", "circle(1px, 1px, 1p)") is " auto"37 PASS computedStyle("-webkit-shape-inside", "circle(1px, 1px, 1p)") is "outside-shape" 38 38 PASS innerStyle("-webkit-shape-inside", "circle(1px, 1px, calc())") is null 39 PASS computedStyle("-webkit-shape-inside", "circle(1px, 1px, calc())") is " auto"39 PASS computedStyle("-webkit-shape-inside", "circle(1px, 1px, calc())") is "outside-shape" 40 40 PASS innerStyle("-webkit-shape-inside", "circle(-1.5px, +1.5px, -1.5px)") is null 41 PASS computedStyle("-webkit-shape-inside", "circle(-1.5px, +1.5px, -1.5px)") is " auto"41 PASS computedStyle("-webkit-shape-inside", "circle(-1.5px, +1.5px, -1.5px)") is "outside-shape" 42 42 PASS innerStyle("-webkit-shape-inside", "rectangle(1cm, 1mm, 1in, 1px, -1pt, 1pc)") is null 43 PASS computedStyle("-webkit-shape-inside", "rectangle(1cm, 1mm, 1in, 1px, -1pt, 1pc)") is " auto"43 PASS computedStyle("-webkit-shape-inside", "rectangle(1cm, 1mm, 1in, 1px, -1pt, 1pc)") is "outside-shape" 44 44 PASS innerStyle("-webkit-shape-inside", "rectangle(1cm, 1mm, 1in, 1px, 1pt, -1pc)") is null 45 PASS computedStyle("-webkit-shape-inside", "rectangle(1cm, 1mm, 1in, 1px, 1pt, -1pc)") is " auto"45 PASS computedStyle("-webkit-shape-inside", "rectangle(1cm, 1mm, 1in, 1px, 1pt, -1pc)") is "outside-shape" 46 46 PASS innerStyle("-webkit-shape-inside", "ellipse(1em, 1em, -1em, 1em)") is null 47 PASS computedStyle("-webkit-shape-inside", "ellipse(1em, 1em, -1em, 1em)") is " auto"47 PASS computedStyle("-webkit-shape-inside", "ellipse(1em, 1em, -1em, 1em)") is "outside-shape" 48 48 PASS innerStyle("-webkit-shape-inside", "ellipse(1em, 1em, 1em, -1em)") is null 49 PASS computedStyle("-webkit-shape-inside", "ellipse(1em, 1em, 1em, -1em)") is " auto"49 PASS computedStyle("-webkit-shape-inside", "ellipse(1em, 1em, 1em, -1em)") is "outside-shape" 50 50 PASS innerStyle("-webkit-shape-inside", "rectangle(1cm, 1mm, -1in, 1px, 1pt, 1pc)") is null 51 PASS computedStyle("-webkit-shape-inside", "rectangle(1cm, 1mm, -1in, 1px, 1pt, 1pc)") is " auto"51 PASS computedStyle("-webkit-shape-inside", "rectangle(1cm, 1mm, -1in, 1px, 1pt, 1pc)") is "outside-shape" 52 52 PASS innerStyle("-webkit-shape-inside", "rectangle(1cm, 1mm, 1in, -1px, 1pt, 1pc)") is null 53 PASS computedStyle("-webkit-shape-inside", "rectangle(1cm, 1mm, 1in, -1px, 1pt, 1pc)") is " auto"53 PASS computedStyle("-webkit-shape-inside", "rectangle(1cm, 1mm, 1in, -1px, 1pt, 1pc)") is "outside-shape" 54 54 PASS successfullyParsed is true 55 55 -
trunk/LayoutTests/fast/exclusions/parsing-wrap-shape-lengths.html
r123405 r142893 41 41 function negativeTest(property, value) { 42 42 testInner(property, value, null); 43 testComputed(property, value, ' auto');43 testComputed(property, value, 'outside-shape'); 44 44 } 45 45 -
trunk/LayoutTests/fast/exclusions/script-tests/parsing-wrap-shape-inside.js
r135314 r142893 53 53 var unevaledString = '"' + value.replace(/\\/g, "\\\\").replace(/"/g, "\"").replace(/\n/g, "\\n").replace(/\r/g, "\\r") + '"'; 54 54 shouldBeEqualToString('testCSSText(' + unevaledString + ')', ''); 55 shouldBeEqualToString('testComputedStyle(' + unevaledString + ')', ' auto');55 shouldBeEqualToString('testComputedStyle(' + unevaledString + ')', 'outside-shape'); 56 56 } 57 57 … … 74 74 shouldBeEqualToString('testNotInherited("auto", "rectangle(10px, 20px, 30px, 40px)")', "parent: auto, child: rectangle(10px, 20px, 30px, 40px)"); 75 75 shouldBeEqualToString('testNotInherited("outside-shape", "rectangle(10px, 20px, 30px, 40px)")', "parent: outside-shape, child: rectangle(10px, 20px, 30px, 40px)"); 76 shouldBeEqualToString('testNotInherited("rectangle(10px, 20px, 30px, 40px)", "initial")', "parent: rectangle(10px, 20px, 30px, 40px), child: auto");77 shouldBeEqualToString('testNotInherited("rectangle(10px, 20px, 30px, 40px)", "")', "parent: rectangle(10px, 20px, 30px, 40px), child: auto");76 shouldBeEqualToString('testNotInherited("rectangle(10px, 20px, 30px, 40px)", "initial")', "parent: rectangle(10px, 20px, 30px, 40px), child: outside-shape"); 77 shouldBeEqualToString('testNotInherited("rectangle(10px, 20px, 30px, 40px)", "")', "parent: rectangle(10px, 20px, 30px, 40px), child: outside-shape"); 78 78 shouldBeEqualToString('testNotInherited("rectangle(10px, 20px, 30px, 40px)", "inherit")', "parent: rectangle(10px, 20px, 30px, 40px), child: rectangle(10px, 20px, 30px, 40px)"); 79 shouldBeEqualToString('testNotInherited("", "inherit")', "parent: auto, child: auto");79 shouldBeEqualToString('testNotInherited("", "inherit")', "parent: outside-shape, child: outside-shape"); 80 80 shouldBeEqualToString('testNotInherited("auto", "inherit")', "parent: auto, child: auto"); 81 81 -
trunk/Source/WebCore/ChangeLog
r142891 r142893 1 2013-02-14 Bear Travis <betravis@adobe.com> 2 3 Make outside-shape the default value for shape-inside 4 https://bugs.webkit.org/show_bug.cgi?id=109605 5 6 Reviewed by Levi Weintraub. 7 8 Creating a single reference outside-shape value and setting it as the default 9 for shape-inside. 10 11 Existing tests cover the default value, just updating them to use outside-shape. 12 13 * rendering/style/RenderStyle.cpp: 14 (WebCore::RenderStyle::initialShapeInside): Define a local static outside-shape 15 value. 16 (WebCore): 17 * rendering/style/RenderStyle.h: Move the initialShapeInside method to the .cpp 18 file. 19 1 20 2013-02-14 Min Qin <qinmin@chromium.org> 2 21 -
trunk/Source/WebCore/rendering/style/RenderStyle.cpp
r142404 r142893 1635 1635 } 1636 1636 1637 ExclusionShapeValue* RenderStyle::initialShapeInside() 1638 { 1639 DEFINE_STATIC_LOCAL(RefPtr<ExclusionShapeValue>, sOutsideValue, (ExclusionShapeValue::createOutsideValue())); 1640 return sOutsideValue.get(); 1641 } 1642 1637 1643 void RenderStyle::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const 1638 1644 { -
trunk/Source/WebCore/rendering/style/RenderStyle.h
r142823 r142893 1429 1429 ExclusionShapeValue* shapeOutside() const { return rareNonInheritedData->m_shapeOutside.get(); } 1430 1430 1431 static ExclusionShapeValue* initialShapeInside() { return 0; }1431 static ExclusionShapeValue* initialShapeInside(); 1432 1432 static ExclusionShapeValue* initialShapeOutside() { return 0; } 1433 1433
Note: See TracChangeset
for help on using the changeset viewer.