Changeset 97454 in webkit
- Timestamp:
- Oct 14, 2011 2:28:45 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 81 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r97450 r97454 1 2011-10-14 Mihnea Ovidenie <mihnea@adobe.com> 2 3 [CSS Regions] Change -webkit-flow to -webkit-flow-into 4 https://bugs.webkit.org/show_bug.cgi?id=70014 5 6 Reviewed by David Hyatt. 7 8 1. -webkit-flow is renamed to -webkit-flow-into 9 2. -webkit-flow-into takes <ident> instead of strings 10 11 * fast/css/getComputedStyle/computed-style-expected.txt: 12 * fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: 13 * fast/regions/bottom-overflow-out-of-first-region.html: 14 * fast/regions/content-flowed-into-regions-no-scroll.html: 15 * fast/regions/float-pushed-width-change.html: 16 * fast/regions/floats-basic-in-variable-width-regions.html: 17 * fast/regions/flow-anonymous-children.html: 18 * fast/regions/flow-content-basic-vertical-rl.html: 19 * fast/regions/flow-content-basic-vertical.html: 20 * fast/regions/flow-content-basic.html: 21 * fast/regions/flows-dependency-dynamic-remove.html: 22 * fast/regions/flows-dependency-same-flow.html: 23 * fast/regions/hit-test-float.html: 24 * fast/regions/multiple-directionality-changes-in-variable-width-regions.html: 25 * fast/regions/no-split-line-box.html: 26 * fast/regions/outline-sides-in-region.html: 27 * fast/regions/overflow-in-uniform-regions-dynamic.html: 28 * fast/regions/overflow-in-uniform-regions.html: 29 * fast/regions/overflow-in-variable-width-regions.html: 30 * fast/regions/overflow-moving-below-floats-in-variable-width-regions.html: 31 * fast/regions/overflow-not-moving-below-floats-in-variable-width-regions.html: 32 * fast/regions/overflow-rtl-in-variable-width-regions.html: 33 * fast/regions/overflow-size-change-in-variable-width-regions.html: 34 * fast/regions/overflow-size-change-with-stacking-context-rtl.html: 35 * fast/regions/overflow-size-change-with-stacking-context.html: 36 * fast/regions/percentage-margins-mixed-ltr-dominant-regions.html: 37 * fast/regions/percentage-margins-mixed-rtl-dominant-regions.html: 38 * fast/regions/percentage-margins-rtl-variable-width-regions.html: 39 * fast/regions/percentage-margins-variable-width-regions.html: 40 * fast/regions/position-writing-modes-in-variable-width-regions.html: 41 * fast/regions/positioned-objects-block-static-in-regions.html: 42 * fast/regions/positioned-objects-block-static-in-rtl-regions.html: 43 * fast/regions/positioned-objects-block-static-spanning-regions-rtl.html: 44 * fast/regions/positioned-objects-block-static-spanning-regions.html: 45 * fast/regions/positioned-objects-in-regions.html: 46 * fast/regions/positioned-objects-in-rtl-regions.html: 47 * fast/regions/positioned-objects-inline-static-in-regions.html: 48 * fast/regions/positioned-objects-inline-static-in-rtl-regions.html: 49 * fast/regions/positioned-objects-inline-static-spanning-regions-rtl.html: 50 * fast/regions/positioned-objects-inline-static-spanning-regions.html: 51 * fast/regions/positioned-objects-perpendicular-flows-in-regions.html: 52 * fast/regions/positioned-objects-spanning-regions.html: 53 * fast/regions/region-overflow-auto-overflow-hidden.html: 54 * fast/regions/region-overflow-auto-overflow-visible.html: 55 * fast/regions/region-overflow-break.html: 56 * fast/regions/resources/region-style.css: 57 (.flowArticle): 58 * fast/regions/script-tests/webkit-flow-parsing.js: 59 (test): 60 (testComputedStyle): 61 (testNotInherited): 62 * fast/regions/text-region-breaks.html: 63 * fast/regions/text-region-split-after-resize.html: 64 * fast/regions/text-region-split-horizontal-bt.html: 65 * fast/regions/text-region-split-small-pagination.html: 66 * fast/regions/text-region-split-vertical-rl.html: 67 * fast/regions/text-region-split-vertical.html: 68 * fast/regions/text-region-split.html: 69 * fast/regions/top-overflow-out-of-second-region.html: 70 * fast/regions/webkit-flow-double-pagination-float-push.html: 71 * fast/regions/webkit-flow-float-pushed-to-last-region.html: 72 * fast/regions/webkit-flow-float-unable-to-push.html: 73 * fast/regions/webkit-flow-floats-inside-regions-bounds.html: 74 * fast/regions/webkit-flow-inlines-dynamic.html: 75 * fast/regions/webkit-flow-inlines-inside-regions-bounds-vertical-rl.html: 76 * fast/regions/webkit-flow-inlines-inside-regions-bounds-vertical.html: 77 * fast/regions/webkit-flow-inlines-inside-regions-bounds.html: 78 * fast/regions/webkit-flow-parsing-expected.txt: 79 * fast/regions/webkit-flow-renderer-layer.html: 80 * fast/regions/webkit-flow-renderer-nested.html: 81 * fast/regions/webkit-flow-renderer.html: 82 * fast/repaint/japanese-rl-selection-repaint-in-regions.html: 83 * fast/repaint/line-flow-with-floats-in-regions.html: 84 * fast/repaint/overflow-flipped-writing-mode-block-in-regions.html: 85 * fast/repaint/region-painting-via-layout.html: 86 * platform/chromium-win/fast/css/getComputedStyle/computed-style-expected.txt: 87 * platform/chromium-win/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: 88 * platform/chromium-win/svg/css/getComputedStyle-basic-expected.txt: 89 * svg/css/getComputedStyle-basic-expected.txt: 90 1 91 2011-10-13 Hans Wennborg <hans@chromium.org> 2 92 -
trunk/LayoutTests/fast/css/getComputedStyle/computed-style-expected.txt
r97308 r97454 198 198 -webkit-user-select: text; 199 199 -webkit-writing-mode: horizontal-tb; 200 -webkit-flow : auto;200 -webkit-flow-into: auto; 201 201 -webkit-region-overflow: auto; 202 202 -webkit-region-break-after: auto; -
trunk/LayoutTests/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt
r97308 r97454 197 197 -webkit-user-select: text 198 198 -webkit-writing-mode: horizontal-tb 199 -webkit-flow : auto199 -webkit-flow-into: auto 200 200 -webkit-region-overflow: auto 201 201 -webkit-region-break-after: auto -
trunk/LayoutTests/fast/regions/bottom-overflow-out-of-first-region.html
r96975 r97454 3 3 <style> 4 4 #content { 5 -webkit-flow : "flow1";5 -webkit-flow-into: flow1; 6 6 text-align: justify; 7 7 padding: 5px; -
trunk/LayoutTests/fast/regions/content-flowed-into-regions-no-scroll.html
r93428 r97454 13 13 14 14 #flow { 15 -webkit-flow : 'article';15 -webkit-flow-into: article; 16 16 } 17 17 -
trunk/LayoutTests/fast/regions/float-pushed-width-change.html
r97391 r97454 3 3 <style> 4 4 #content { 5 -webkit-flow : "flow1";5 -webkit-flow-into: flow1; 6 6 text-align: justify; 7 7 padding: 5px; -
trunk/LayoutTests/fast/regions/floats-basic-in-variable-width-regions.html
r96620 r97454 3 3 <style> 4 4 #content { 5 -webkit-flow : "flow1";5 -webkit-flow-into: flow1; 6 6 text-align: justify; 7 7 padding: 5px; -
trunk/LayoutTests/fast/regions/flow-anonymous-children.html
r93708 r97454 2 2 3 3 <style> 4 .flow { -webkit-flow : "flow"; }4 .flow { -webkit-flow-into: flow; } 5 5 #region { content: -webkit-from-flow("flow"); } 6 6 span { display: inline-block; } -
trunk/LayoutTests/fast/regions/flow-content-basic-vertical-rl.html
r92969 r97454 13 13 14 14 #source{ 15 -webkit-flow : "main-thread";15 -webkit-flow-into: main-thread; 16 16 } 17 17 -
trunk/LayoutTests/fast/regions/flow-content-basic-vertical.html
r92981 r97454 13 13 14 14 #source{ 15 -webkit-flow : "main-thread";15 -webkit-flow-into: main-thread; 16 16 } 17 17 -
trunk/LayoutTests/fast/regions/flow-content-basic.html
r92969 r97454 11 11 <style type="text/css"> 12 12 #source{ 13 -webkit-flow : "main-thread";13 -webkit-flow-into: main-thread; 14 14 } 15 15 -
trunk/LayoutTests/fast/regions/flows-dependency-dynamic-remove.html
r93307 r97454 2 2 3 3 <style> 4 .flowA { -webkit-flow : 'flowA'; }5 .flowB { -webkit-flow : 'flowB'; }6 .flowC { -webkit-flow : 'flowC'; }4 .flowA { -webkit-flow-into: flowA; } 5 .flowB { -webkit-flow-into: flowB; } 6 .flowC { -webkit-flow-into: flowC; } 7 7 8 8 .regionFlowA { content: -webkit-from-flow('flowA'); } 9 9 .regionFlowB { content: -webkit-from-flow('flowB'); } 10 10 .regionFlowC { content: -webkit-from-flow('flowC'); } 11 12 .index1 { -webkit-content-order: 1; }13 .index2 { -webkit-content-order: 2; }14 .index3 { -webkit-content-order: 3; }15 11 </style> 16 12 17 13 <div class="flowA"> 18 <div class="regionFlowB index1"></div>14 <div class="regionFlowB"></div> 19 15 </div> 20 16 21 17 <div class="flowB"> 22 <div class="regionFlowC index1"></div>18 <div class="regionFlowC"></div> 23 19 </div> 24 20 25 21 <div class="flowC"> 26 22 <!-- The following region will initially be invalid. Removing regionFlowC should make it valid again. --> 27 <div class="regionFlowA index1"></div>23 <div class="regionFlowA"></div> 28 24 </div> 29 25 30 26 <!-- Force the creation of the flows. In the future we might avoid creating flows if there are no reachable regions. --> 31 <div class="regionFlowA index2"></div>27 <div class="regionFlowA"></div> 32 28 33 29 <script> -
trunk/LayoutTests/fast/regions/flows-dependency-same-flow.html
r93307 r97454 2 2 3 3 <style> 4 .flowA { -webkit-flow : 'flowA'; }5 .flowB { -webkit-flow : 'flowB'; }6 .flowC { -webkit-flow : 'flowC'; }4 .flowA { -webkit-flow-into: flowA; } 5 .flowB { -webkit-flow-into: flowB; } 6 .flowC { -webkit-flow-into: flowC; } 7 7 8 8 .regionFlowA { content: -webkit-from-flow('flowA'); } 9 9 .regionFlowB { content: -webkit-from-flow('flowB'); } 10 10 .regionFlowC { content: -webkit-from-flow('flowC'); } 11 12 .index1 { -webkit-content-order: 1; }13 .index2 { -webkit-content-order: 2; }14 .index3 { -webkit-content-order: 3; }15 11 </style> 16 12 17 13 <div class="flowA"> 18 14 <!-- The following region should be ignored. Direct circular reference. --> 19 <div class="regionFlowA index1"></div>15 <div class="regionFlowA"></div> 20 16 </div> 21 17 22 18 <div class="flowB"> 23 <div class="regionFlowC index1"></div>19 <div class="regionFlowC"></div> 24 20 <!-- The following region should be ignored. Direct circular reference. --> 25 <div class="flowC regionFlowC index2"></div>21 <div class="flowC regionFlowC"></div> 26 22 </div> 27 23 … … 29 25 <!-- The following region should be invalid. Circular reference through flowB which already has created a link to this flow 30 26 through the "regionFlowC index1" region. --> 31 <div class="regionFlowB index1"></div>32 <div class="regionFlowA index2"></div>27 <div class="regionFlowB"></div> 28 <div class="regionFlowA"></div> 33 29 </div> 34 30 35 31 <!-- Force the creation of the flows. In the future we might avoid creating flows if there are no reachable regions. --> 36 <div class="regionFlowA index3"></div>37 <div class="regionFlowB index2"></div>38 <div class="regionFlowC index3"></div>32 <div class="regionFlowA"></div> 33 <div class="regionFlowB"></div> 34 <div class="regionFlowC"></div> -
trunk/LayoutTests/fast/regions/hit-test-float.html
r92993 r97454 8 8 <div style="position:absolute;left:0;top:0;content: -webkit-from-flow('flow'); width:150px;height:200px;"></div> 9 9 <div style="position:absolute;left:150px;top:0;content: -webkit-from-flow('flow'); width:150px;height:200px"></div> 10 <div style="-webkit-flow : 'flow'">10 <div style="-webkit-flow-into: flow"> 11 11 <div style="height: 250px; background-color: purple;"></div> 12 12 <div style="float: right; background-color: lightyellow; margin: 5px;"> -
trunk/LayoutTests/fast/regions/multiple-directionality-changes-in-variable-width-regions.html
r96431 r97454 4 4 <style> 5 5 #content { 6 -webkit-flow : "flow1";6 -webkit-flow-into: flow1; 7 7 text-align: justify; 8 8 padding: 5px; -
trunk/LayoutTests/fast/regions/no-split-line-box.html
r95571 r97454 7 7 <style type="text/css"> 8 8 .article{ 9 -webkit-flow : "thread";9 -webkit-flow-into: thread; 10 10 line-height:14px; 11 11 } -
trunk/LayoutTests/fast/regions/outline-sides-in-region.html
r96718 r97454 7 7 8 8 #source{ 9 -webkit-flow : "body";9 -webkit-flow-into: body; 10 10 } 11 11 -
trunk/LayoutTests/fast/regions/overflow-in-uniform-regions-dynamic.html
r96620 r97454 3 3 <style> 4 4 #content { 5 -webkit-flow : "flow1";5 -webkit-flow-into: flow1; 6 6 text-align: justify; 7 7 padding: 5px; -
trunk/LayoutTests/fast/regions/overflow-in-uniform-regions.html
r96620 r97454 3 3 <style> 4 4 #content { 5 -webkit-flow : "flow1";5 -webkit-flow-into: flow1; 6 6 text-align: justify; 7 7 padding: 5px; -
trunk/LayoutTests/fast/regions/overflow-in-variable-width-regions.html
r96620 r97454 3 3 <style> 4 4 #content { 5 -webkit-flow : "flow1";5 -webkit-flow-into: flow1; 6 6 text-align: justify; 7 7 padding: 5px; -
trunk/LayoutTests/fast/regions/overflow-moving-below-floats-in-variable-width-regions.html
r96620 r97454 3 3 <style> 4 4 #content { 5 -webkit-flow : "flow1";5 -webkit-flow-into: flow1; 6 6 text-align: justify; 7 7 padding: 5px; -
trunk/LayoutTests/fast/regions/overflow-not-moving-below-floats-in-variable-width-regions.html
r96620 r97454 3 3 <style> 4 4 #content { 5 -webkit-flow : "flow1";5 -webkit-flow-into: flow1; 6 6 text-align: justify; 7 7 padding: 5px; -
trunk/LayoutTests/fast/regions/overflow-rtl-in-variable-width-regions.html
r96620 r97454 4 4 <style> 5 5 #content { 6 -webkit-flow : "flow1";6 -webkit-flow-into: flow1; 7 7 text-align: justify; 8 8 padding: 5px; -
trunk/LayoutTests/fast/regions/overflow-size-change-in-variable-width-regions.html
r96620 r97454 3 3 <style> 4 4 #content { 5 -webkit-flow : "flow1";5 -webkit-flow-into: flow1; 6 6 text-align: justify; 7 7 padding: 5px; -
trunk/LayoutTests/fast/regions/overflow-size-change-with-stacking-context-rtl.html
r97282 r97454 4 4 <style> 5 5 #content { 6 -webkit-flow : "flow1";6 -webkit-flow-into: flow1; 7 7 text-align: justify; 8 8 padding: 5px; -
trunk/LayoutTests/fast/regions/overflow-size-change-with-stacking-context.html
r96620 r97454 3 3 <style> 4 4 #content { 5 -webkit-flow : "flow1";5 -webkit-flow-into: flow1; 6 6 text-align: justify; 7 7 padding: 5px; -
trunk/LayoutTests/fast/regions/percentage-margins-mixed-ltr-dominant-regions.html
r96423 r97454 4 4 <style> 5 5 #content { 6 -webkit-flow : "flow1";6 -webkit-flow-into: flow1; 7 7 text-align: justify; 8 8 padding: 5px; -
trunk/LayoutTests/fast/regions/percentage-margins-mixed-rtl-dominant-regions.html
r96423 r97454 4 4 <style> 5 5 #content { 6 -webkit-flow : "flow1";6 -webkit-flow-into: flow1; 7 7 text-align: justify; 8 8 padding: 5px; -
trunk/LayoutTests/fast/regions/percentage-margins-rtl-variable-width-regions.html
r96423 r97454 4 4 <style> 5 5 #content { 6 -webkit-flow : "flow1";6 -webkit-flow-into: flow1; 7 7 text-align: justify; 8 8 padding: 5px; -
trunk/LayoutTests/fast/regions/percentage-margins-variable-width-regions.html
r96408 r97454 3 3 <style> 4 4 #content { 5 -webkit-flow : "flow1";5 -webkit-flow-into: flow1; 6 6 text-align: justify; 7 7 padding: 5px; -
trunk/LayoutTests/fast/regions/position-writing-modes-in-variable-width-regions.html
r97282 r97454 4 4 <style> 5 5 #content { 6 -webkit-flow : "flow1";6 -webkit-flow-into: flow1; 7 7 } 8 8 -
trunk/LayoutTests/fast/regions/positioned-objects-block-static-in-regions.html
r96452 r97454 3 3 <style> 4 4 #content { 5 -webkit-flow : "flow1";5 -webkit-flow-into: flow1; 6 6 } 7 7 -
trunk/LayoutTests/fast/regions/positioned-objects-block-static-in-rtl-regions.html
r96452 r97454 4 4 <style> 5 5 #content { 6 -webkit-flow : "flow1";6 -webkit-flow-into: flow1; 7 7 } 8 8 -
trunk/LayoutTests/fast/regions/positioned-objects-block-static-spanning-regions-rtl.html
r97282 r97454 4 4 <style> 5 5 #content { 6 -webkit-flow : "flow1";6 -webkit-flow-into: flow1; 7 7 } 8 8 -
trunk/LayoutTests/fast/regions/positioned-objects-block-static-spanning-regions.html
r97282 r97454 3 3 <style> 4 4 #content { 5 -webkit-flow : "flow1";5 -webkit-flow-into: flow1; 6 6 } 7 7 -
trunk/LayoutTests/fast/regions/positioned-objects-in-regions.html
r96452 r97454 3 3 <style> 4 4 #content { 5 -webkit-flow : "flow1";5 -webkit-flow-into: flow1; 6 6 text-align: justify; 7 7 padding: 5px; -
trunk/LayoutTests/fast/regions/positioned-objects-in-rtl-regions.html
r96452 r97454 4 4 <style> 5 5 #content { 6 -webkit-flow : "flow1";6 -webkit-flow-into: flow1; 7 7 text-align: justify; 8 8 padding: 5px; -
trunk/LayoutTests/fast/regions/positioned-objects-inline-static-in-regions.html
r96452 r97454 3 3 <style> 4 4 #content { 5 -webkit-flow : "flow1";5 -webkit-flow-into: flow1; 6 6 } 7 7 -
trunk/LayoutTests/fast/regions/positioned-objects-inline-static-in-rtl-regions.html
r96452 r97454 4 4 <style> 5 5 #content { 6 -webkit-flow : "flow1";6 -webkit-flow-into: flow1; 7 7 } 8 8 -
trunk/LayoutTests/fast/regions/positioned-objects-inline-static-spanning-regions-rtl.html
r97282 r97454 4 4 <style> 5 5 #content { 6 -webkit-flow : "flow1";6 -webkit-flow-into: flow1; 7 7 } 8 8 -
trunk/LayoutTests/fast/regions/positioned-objects-inline-static-spanning-regions.html
r97282 r97454 3 3 <style> 4 4 #content { 5 -webkit-flow : "flow1";5 -webkit-flow-into: flow1; 6 6 } 7 7 -
trunk/LayoutTests/fast/regions/positioned-objects-perpendicular-flows-in-regions.html
r96452 r97454 4 4 <style> 5 5 #content { 6 -webkit-flow : "flow1";6 -webkit-flow-into: flow1; 7 7 text-align: justify; 8 8 padding: 5px; -
trunk/LayoutTests/fast/regions/positioned-objects-spanning-regions.html
r97282 r97454 3 3 <style> 4 4 #content { 5 -webkit-flow : "flow1";5 -webkit-flow-into: flow1; 6 6 text-align: justify; 7 7 padding: 5px; -
trunk/LayoutTests/fast/regions/region-overflow-auto-overflow-hidden.html
r96675 r97454 3 3 <style> 4 4 #article { 5 -webkit-flow : "article";5 -webkit-flow-into: article; 6 6 } 7 7 -
trunk/LayoutTests/fast/regions/region-overflow-auto-overflow-visible.html
r96675 r97454 3 3 <style> 4 4 #article { 5 -webkit-flow : "article";5 -webkit-flow-into: article; 6 6 } 7 7 -
trunk/LayoutTests/fast/regions/region-overflow-break.html
r96675 r97454 3 3 <style> 4 4 #article { 5 -webkit-flow : "article";5 -webkit-flow-into: article; 6 6 } 7 7 -
trunk/LayoutTests/fast/regions/resources/region-style.css
r92969 r97454 18 18 19 19 .flowArticle { 20 -webkit-flow : "article";20 -webkit-flow-into: article; 21 21 } 22 22 -
trunk/LayoutTests/fast/regions/script-tests/webkit-flow-parsing.js
r90541 r97454 1 description('Test parsing of the CSS webkit-flow property.');1 description('Test parsing of the CSS webkit-flow-into property.'); 2 2 3 3 function test(declaration) { 4 4 var div = document.createElement("div"); 5 5 div.setAttribute("style", declaration); 6 return div.style.webkitFlow ;6 return div.style.webkitFlowInto; 7 7 } 8 8 … … 10 10 var div = document.createElement("div"); 11 11 document.body.appendChild(div); 12 div.style.setProperty("-webkit-flow ", value);13 var webkitFlowComputedValue = getComputedStyle(div).getPropertyValue("-webkit-flow ");12 div.style.setProperty("-webkit-flow-into", value); 13 var webkitFlowComputedValue = getComputedStyle(div).getPropertyValue("-webkit-flow-into"); 14 14 document.body.removeChild(div); 15 15 return webkitFlowComputedValue; … … 19 19 var parentDiv = document.createElement("div"); 20 20 document.body.appendChild(parentDiv); 21 parentDiv.style.setProperty("-webkit-flow ", parentValue);21 parentDiv.style.setProperty("-webkit-flow-into", parentValue); 22 22 23 23 var childDiv = document.createElement("div"); 24 24 parentDiv.appendChild(childDiv); 25 childDiv.style.setProperty("-webkit-flow ", childValue);25 childDiv.style.setProperty("-webkit-flow-into", childValue); 26 26 27 var childWebKitFlowComputedValue = getComputedStyle(childDiv).getPropertyValue("-webkit-flow ");27 var childWebKitFlowComputedValue = getComputedStyle(childDiv).getPropertyValue("-webkit-flow-into"); 28 28 29 29 parentDiv.removeChild(childDiv); … … 33 33 } 34 34 35 shouldBeEqualToString('test("-webkit-flow: auto")', "auto"); 36 shouldBeEqualToString('test("-webkit-flow: initial")', "initial"); 37 shouldBeEqualToString('test("-webkit-flow: inherit")', "inherit"); 38 shouldBeEqualToString('test("-webkit-flow: \'first-flow\'")', "first-flow"); 39 shouldBeEqualToString('test("-webkit-flow: \'first flow\'")', "'first flow'"); 40 shouldBeEqualToString('test("-webkit-flow: \'auto\';")', "auto"); 41 shouldBeEqualToString('test("-webkit-flow: \'\'")', "auto"); 42 shouldBeEqualToString('test("-webkit-flow: ;")', ""); 43 shouldBeEqualToString('test("-webkit-flow: 1")', ""); 44 shouldBeEqualToString('test("-webkit-flow: 1.2")', ""); 45 shouldBeEqualToString('test("-webkit-flow: -1")', ""); 46 shouldBeEqualToString('test("-webkit-flow: 12px")', ""); 47 shouldBeEqualToString('test("-webkit-flow: first-flow;")', ""); 48 shouldBeEqualToString('test("-webkit-flow: first flow")', ""); 35 shouldBeEqualToString('test("-webkit-flow-into: auto")', "auto"); 36 shouldBeEqualToString('test("-webkit-flow-into: first-flow")', "first-flow"); 37 shouldBeEqualToString('test("-webkit-flow-into: \'first flow\'")', ""); 38 shouldBeEqualToString('test("-webkit-flow-into: ;")', ""); 39 shouldBeEqualToString('test("-webkit-flow-into: 1")', ""); 40 shouldBeEqualToString('test("-webkit-flow-into: 1.2")', ""); 41 shouldBeEqualToString('test("-webkit-flow-into: -1")', ""); 42 shouldBeEqualToString('test("-webkit-flow-into: 12px")', ""); 49 43 50 44 shouldBeEqualToString('testComputedStyle("auto")', "auto"); 51 45 shouldBeEqualToString('testComputedStyle("")', "auto"); 52 shouldBeEqualToString('testComputedStyle("\'auto\'")', "auto"); 53 shouldBeEqualToString('testComputedStyle("\'first-flow\'")', "first-flow"); 54 shouldBeEqualToString('testComputedStyle("first-flow")', "auto"); 55 shouldBeEqualToString('testComputedStyle("inherited")', "auto"); 56 shouldBeEqualToString('testComputedStyle("initial")', "auto"); 46 shouldBeEqualToString('testComputedStyle("\'first-flow\'")', "auto"); 47 shouldBeEqualToString('testComputedStyle("first-flow")', "first-flow"); 57 48 shouldBeEqualToString('testComputedStyle("12px")', "auto"); 58 49 59 50 shouldBeEqualToString('testNotInherited("auto", "auto")', "auto"); 60 shouldBeEqualToString('testNotInherited("auto", " \'child-flow\'")', "child-flow");61 shouldBeEqualToString('testNotInherited(" \'parent-flow\'", "auto")', "auto");62 shouldBeEqualToString('testNotInherited(" \'parent-flow\'", "\'child-flow\'")', "child-flow");51 shouldBeEqualToString('testNotInherited("auto", "child-flow")', "child-flow"); 52 shouldBeEqualToString('testNotInherited("parent-flow", "auto")', "auto"); 53 shouldBeEqualToString('testNotInherited("parent-flow", "child-flow")', "child-flow"); 63 54 64 55 successfullyParsed = true; -
trunk/LayoutTests/fast/regions/text-region-breaks.html
r95264 r97454 2 2 3 3 <style> 4 #content { -webkit-flow : 'flow'; }4 #content { -webkit-flow-into: flow; } 5 5 .region { content: -webkit-from-flow("flow"); } 6 6 .finished #content, .finished .region { display: none; } -
trunk/LayoutTests/fast/regions/text-region-split-after-resize.html
r95648 r97454 2 2 <head> 3 3 <style> 4 #content { -webkit-flow : 'flow'; }4 #content { -webkit-flow-into: flow; } 5 5 .region { content: -webkit-from-flow("flow"); border:2px solid black; margin:1em 0} 6 6 .finished #content, .finished .region { display: none; } -
trunk/LayoutTests/fast/regions/text-region-split-horizontal-bt.html
r95264 r97454 4 4 html { -webkit-writing-mode: horizontal-bt; } 5 5 6 #content { -webkit-flow : 'flow'; }6 #content { -webkit-flow-into: flow; } 7 7 .region { content: -webkit-from-flow("flow"); } 8 8 .finished #content, .finished .region { display: none; } -
trunk/LayoutTests/fast/regions/text-region-split-small-pagination.html
r95670 r97454 2 2 <head> 3 3 <style> 4 #content { -webkit-flow : 'flow'; }4 #content { -webkit-flow-into: flow; } 5 5 .region { content: -webkit-from-flow("flow"); border:2px solid black; margin:1em 0} 6 6 .finished #content, .finished .region { display: none; } -
trunk/LayoutTests/fast/regions/text-region-split-vertical-rl.html
r95264 r97454 4 4 html { -webkit-writing-mode: vertical-rl; } 5 5 6 #content { -webkit-flow : 'flow'; }6 #content { -webkit-flow-into: flow; } 7 7 .region { content: -webkit-from-flow("flow"); } 8 8 .finished #content, .finished .region { display: none; } -
trunk/LayoutTests/fast/regions/text-region-split-vertical.html
r95264 r97454 4 4 html { -webkit-writing-mode: vertical-lr; } 5 5 6 #content { -webkit-flow : 'flow'; }6 #content { -webkit-flow-into: flow; } 7 7 .region { content: -webkit-from-flow("flow"); } 8 8 .finished #content, .finished .region { display: none; } -
trunk/LayoutTests/fast/regions/text-region-split.html
r95264 r97454 2 2 3 3 <style> 4 #content { -webkit-flow : 'flow'; }4 #content { -webkit-flow-into: flow; } 5 5 .region { content: -webkit-from-flow("flow"); } 6 6 .finished #content, .finished .region { display: none; } -
trunk/LayoutTests/fast/regions/top-overflow-out-of-second-region.html
r96975 r97454 3 3 <style> 4 4 #content { 5 -webkit-flow : "flow1";5 -webkit-flow-into: flow1; 6 6 text-align: justify; 7 7 padding: 5px; -
trunk/LayoutTests/fast/regions/webkit-flow-double-pagination-float-push.html
r96149 r97454 3 3 <style> 4 4 #content { 5 -webkit-flow : "flow1";5 -webkit-flow-into: flow1; 6 6 text-align: justify; 7 7 padding: 5px; -
trunk/LayoutTests/fast/regions/webkit-flow-float-pushed-to-last-region.html
r96162 r97454 3 3 <style> 4 4 #content { 5 -webkit-flow : "flow1";5 -webkit-flow-into: flow1; 6 6 text-align: justify; 7 7 padding: 5px; -
trunk/LayoutTests/fast/regions/webkit-flow-float-unable-to-push.html
r95855 r97454 3 3 <style> 4 4 #content { 5 -webkit-flow : "flow1";5 -webkit-flow-into: flow1; 6 6 text-align: justify; 7 7 padding: 5px; -
trunk/LayoutTests/fast/regions/webkit-flow-floats-inside-regions-bounds.html
r93627 r97454 3 3 <style> 4 4 #content { 5 -webkit-flow : "flow1";5 -webkit-flow-into: flow1; 6 6 text-align: justify; 7 7 padding: 5px; -
trunk/LayoutTests/fast/regions/webkit-flow-inlines-dynamic.html
r95756 r97454 3 3 <style> 4 4 #content { 5 -webkit-flow : "flow1";5 -webkit-flow-into: flow1; 6 6 text-align: justify; 7 7 padding: 5px; -
trunk/LayoutTests/fast/regions/webkit-flow-inlines-inside-regions-bounds-vertical-rl.html
r93627 r97454 5 5 6 6 #content { 7 -webkit-flow : "flow1";7 -webkit-flow-into: flow1; 8 8 text-align: justify; 9 9 padding: 5px; -
trunk/LayoutTests/fast/regions/webkit-flow-inlines-inside-regions-bounds-vertical.html
r93627 r97454 5 5 6 6 #content { 7 -webkit-flow : "flow1";7 -webkit-flow-into: flow1; 8 8 text-align: justify; 9 9 padding: 5px; -
trunk/LayoutTests/fast/regions/webkit-flow-inlines-inside-regions-bounds.html
r93627 r97454 3 3 <style> 4 4 #content { 5 -webkit-flow : "flow1";5 -webkit-flow-into: flow1; 6 6 text-align: justify; 7 7 padding: 5px; -
trunk/LayoutTests/fast/regions/webkit-flow-parsing-expected.txt
r90541 r97454 1 Test parsing of the CSS webkit-flow property.1 Test parsing of the CSS webkit-flow-into property. 2 2 3 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". 4 4 5 5 6 PASS test("-webkit-flow: auto") is "auto" 7 PASS test("-webkit-flow: initial") is "initial" 8 PASS test("-webkit-flow: inherit") is "inherit" 9 PASS test("-webkit-flow: 'first-flow'") is "first-flow" 10 PASS test("-webkit-flow: 'first flow'") is "'first flow'" 11 PASS test("-webkit-flow: 'auto';") is "auto" 12 PASS test("-webkit-flow: ''") is "auto" 13 PASS test("-webkit-flow: ;") is "" 14 PASS test("-webkit-flow: 1") is "" 15 PASS test("-webkit-flow: 1.2") is "" 16 PASS test("-webkit-flow: -1") is "" 17 PASS test("-webkit-flow: 12px") is "" 18 PASS test("-webkit-flow: first-flow;") is "" 19 PASS test("-webkit-flow: first flow") is "" 6 PASS test("-webkit-flow-into: auto") is "auto" 7 PASS test("-webkit-flow-into: first-flow") is "first-flow" 8 PASS test("-webkit-flow-into: 'first flow'") is "" 9 PASS test("-webkit-flow-into: ;") is "" 10 PASS test("-webkit-flow-into: 1") is "" 11 PASS test("-webkit-flow-into: 1.2") is "" 12 PASS test("-webkit-flow-into: -1") is "" 13 PASS test("-webkit-flow-into: 12px") is "" 20 14 PASS testComputedStyle("auto") is "auto" 21 15 PASS testComputedStyle("") is "auto" 22 PASS testComputedStyle("'auto'") is "auto" 23 PASS testComputedStyle("'first-flow'") is "first-flow" 24 PASS testComputedStyle("first-flow") is "auto" 25 PASS testComputedStyle("inherited") is "auto" 26 PASS testComputedStyle("initial") is "auto" 16 PASS testComputedStyle("'first-flow'") is "auto" 17 PASS testComputedStyle("first-flow") is "first-flow" 27 18 PASS testComputedStyle("12px") is "auto" 28 19 PASS testNotInherited("auto", "auto") is "auto" 29 PASS testNotInherited("auto", " 'child-flow'") is "child-flow"30 PASS testNotInherited(" 'parent-flow'", "auto") is "auto"31 PASS testNotInherited(" 'parent-flow'", "'child-flow'") is "child-flow"20 PASS testNotInherited("auto", "child-flow") is "child-flow" 21 PASS testNotInherited("parent-flow", "auto") is "auto" 22 PASS testNotInherited("parent-flow", "child-flow") is "child-flow" 32 23 PASS successfullyParsed is true 33 24 -
trunk/LayoutTests/fast/regions/webkit-flow-renderer-layer.html
r92969 r97454 3 3 <style> 4 4 #DIV1 { 5 -webkit-flow : 'flowA';5 -webkit-flow-into: flowA; 6 6 /* force a RenderLayer */ 7 7 position: absolute; 8 8 } 9 9 #DIV2 { 10 -webkit-flow : 'flowB';10 -webkit-flow-into: flowB; 11 11 /* Force a composited RenderLayer. */ 12 12 -webkit-transform: scale3d(1, 1, 1); 13 13 } 14 14 15 #DIV3 { -webkit-flow : 'flowC'; }15 #DIV3 { -webkit-flow-into: flowC; } 16 16 17 17 #DIV5 { -
trunk/LayoutTests/fast/regions/webkit-flow-renderer-nested.html
r92969 r97454 2 2 3 3 <style> 4 #DIV1, #DIV3 { -webkit-flow :'flowA'; }5 #DIV2 { -webkit-flow :'flowB'; }4 #DIV1, #DIV3 { -webkit-flow-into:flowA; } 5 #DIV2 { -webkit-flow-into:flowB; } 6 6 7 7 #REGION1, #REGION2 { -
trunk/LayoutTests/fast/regions/webkit-flow-renderer.html
r92969 r97454 2 2 3 3 <style> 4 #DIV1 { -webkit-flow :'flowA'; }5 #SPAN2 { -webkit-flow : 'flowB'; }6 #DIV3 { -webkit-flow : 'flowC'; }4 #DIV1 { -webkit-flow-into:flowA; } 5 #SPAN2 { -webkit-flow-into: flowB; } 6 #DIV3 { -webkit-flow-into: flowC; } 7 7 8 8 #REGION1, #REGION2, #REGION3 { … … 28 28 var el = document.createElement("div"); 29 29 el.id = name; 30 el.setAttribute("style", "-webkit-flow :'"+ flow +"'");30 el.setAttribute("style", "-webkit-flow-into:"+ flow); 31 31 el.innerHTML = name + " - " + flow; 32 32 if (before) -
trunk/LayoutTests/fast/repaint/japanese-rl-selection-repaint-in-regions.html
r93144 r97454 25 25 </head> 26 26 <body style="border:5px solid black;" onload="runRepaintTest()"> 27 <div style="-webkit-flow :'thread'">27 <div style="-webkit-flow-into:thread"> 28 28 せっかく見つけたすばらしい記事がどこにあったか忘れてしまった経験はありますかならタイトルとアドレスだけでなく、訪問したウェブページのコンテンツからも検索することができます。せっかく見つけたすばらしい記事がどこにあったか忘れてしまった経験はありますか ならタイトルとアドレスだけでなく、訪問したウェブページのコンテンツからも検索することができます。訪問したウェブページのコンテンツからも検索することができます。せっかく見つけたすばらしい記事がどこにあったか忘れてしまった経験はありますか ならタイトルとアドレスだけでなく、訪問 29 29 </div> -
trunk/LayoutTests/fast/repaint/line-flow-with-floats-in-regions.html
r93144 r97454 7 7 } 8 8 </script> 9 <iframe onload="loaded()" id="iframe" src="resources/line-flow-with-floats.html" style="border: none; width: 500px; height: 600px; -webkit-flow :'thread'"></iframe>9 <iframe onload="loaded()" id="iframe" src="resources/line-flow-with-floats.html" style="border: none; width: 500px; height: 600px; -webkit-flow-into:thread"></iframe> 10 10 <div style="position:absolute;left:100px;top:0;width:500px;height:600px;content:-webkit-from-flow('thread')"></div> 11 11 </body> -
trunk/LayoutTests/fast/repaint/overflow-flipped-writing-mode-block-in-regions.html
r93144 r97454 8 8 } 9 9 </script> 10 <div style="-webkit-flow : 'thread'; height: 100px; width: 100px; background-color: red; -webkit-writing-mode: horizontal-bt;">10 <div style="-webkit-flow-into: thread; height: 100px; width: 100px; background-color: red; -webkit-writing-mode: horizontal-bt;"> 11 11 <div style="height: 25px;"> 12 12 <div style="height: 100px; background-color: green;"></div> 13 13 </div> 14 14 </div> 15 <div id="target" style="-webkit-flow : 'thread'; height: 50px; width: 100px; background-color: red; margin-top: -100px;"></div>15 <div id="target" style="-webkit-flow-into: thread; height: 50px; width: 100px; background-color: red; margin-top: -100px;"></div> 16 16 <div style="content:-webkit-from-flow('thread'); width:100px;height:400px; border:2px solid black; position:absolute; left:100px; top:100px"></div> -
trunk/LayoutTests/fast/repaint/region-painting-via-layout.html
r97370 r97454 4 4 <style type="text/css"> 5 5 #content { 6 -webkit-flow : "flow1";6 -webkit-flow-into: flow1; 7 7 position:relative; 8 8 padding-top:1000px; -
trunk/LayoutTests/platform/chromium-win/fast/css/getComputedStyle/computed-style-expected.txt
r97308 r97454 198 198 -webkit-user-select: text; 199 199 -webkit-writing-mode: horizontal-tb; 200 -webkit-flow : auto;200 -webkit-flow-into: auto; 201 201 -webkit-region-overflow: auto; 202 202 -webkit-region-break-after: auto; -
trunk/LayoutTests/platform/chromium-win/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt
r97308 r97454 197 197 -webkit-user-select: text 198 198 -webkit-writing-mode: horizontal-tb 199 -webkit-flow : auto199 -webkit-flow-into: auto 200 200 -webkit-region-overflow: auto 201 201 -webkit-region-break-after: auto -
trunk/LayoutTests/platform/chromium-win/svg/css/getComputedStyle-basic-expected.txt
r97308 r97454 393 393 rect: style.getPropertyValue(-webkit-writing-mode) : horizontal-tb 394 394 rect: style.getPropertyCSSValue(-webkit-writing-mode) : [object CSSPrimitiveValue] 395 rect: style.getPropertyValue(-webkit-flow ) : auto396 rect: style.getPropertyCSSValue(-webkit-flow ) : [object CSSPrimitiveValue]395 rect: style.getPropertyValue(-webkit-flow-into) : auto 396 rect: style.getPropertyCSSValue(-webkit-flow-into) : [object CSSPrimitiveValue] 397 397 rect: style.getPropertyValue(-webkit-region-overflow) : auto 398 398 rect: style.getPropertyCSSValue(-webkit-region-overflow) : [object CSSPrimitiveValue] … … 871 871 g: style.getPropertyValue(-webkit-writing-mode) : horizontal-tb 872 872 g: style.getPropertyCSSValue(-webkit-writing-mode) : [object CSSPrimitiveValue] 873 g: style.getPropertyValue(-webkit-flow ) : auto874 g: style.getPropertyCSSValue(-webkit-flow ) : [object CSSPrimitiveValue]873 g: style.getPropertyValue(-webkit-flow-into) : auto 874 g: style.getPropertyCSSValue(-webkit-flow-into) : [object CSSPrimitiveValue] 875 875 g: style.getPropertyValue(-webkit-region-overflow) : auto 876 876 g: style.getPropertyCSSValue(-webkit-region-overflow) : [object CSSPrimitiveValue] -
trunk/LayoutTests/svg/css/getComputedStyle-basic-expected.txt
r97308 r97454 393 393 rect: style.getPropertyValue(-webkit-writing-mode) : horizontal-tb 394 394 rect: style.getPropertyCSSValue(-webkit-writing-mode) : [object CSSPrimitiveValue] 395 rect: style.getPropertyValue(-webkit-flow ) : auto396 rect: style.getPropertyCSSValue(-webkit-flow ) : [object CSSPrimitiveValue]395 rect: style.getPropertyValue(-webkit-flow-into) : auto 396 rect: style.getPropertyCSSValue(-webkit-flow-into) : [object CSSPrimitiveValue] 397 397 rect: style.getPropertyValue(-webkit-region-overflow) : auto 398 398 rect: style.getPropertyCSSValue(-webkit-region-overflow) : [object CSSPrimitiveValue] … … 871 871 g: style.getPropertyValue(-webkit-writing-mode) : horizontal-tb 872 872 g: style.getPropertyCSSValue(-webkit-writing-mode) : [object CSSPrimitiveValue] 873 g: style.getPropertyValue(-webkit-flow ) : auto874 g: style.getPropertyCSSValue(-webkit-flow ) : [object CSSPrimitiveValue]873 g: style.getPropertyValue(-webkit-flow-into) : auto 874 g: style.getPropertyCSSValue(-webkit-flow-into) : [object CSSPrimitiveValue] 875 875 g: style.getPropertyValue(-webkit-region-overflow) : auto 876 876 g: style.getPropertyCSSValue(-webkit-region-overflow) : [object CSSPrimitiveValue] -
trunk/Source/WebCore/ChangeLog
r97453 r97454 1 2011-10-14 Mihnea Ovidenie <mihnea@adobe.com> 2 3 [CSS Regions] Change -webkit-flow to -webkit-flow-into 4 https://bugs.webkit.org/show_bug.cgi?id=70014 5 6 Reviewed by David Hyatt. 7 8 1. -webkit-flow is renamed to -webkit-flow-into 9 2. -webkit-flow-into takes <ident> instead of strings 10 11 * css/CSSComputedStyleDeclaration.cpp: 12 (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): 13 * css/CSSParser.cpp: 14 (WebCore::CSSParser::parseValue): 15 (WebCore::validFlowName): 16 (WebCore::CSSParser::parseFlowThread): 17 * css/CSSPropertyNames.in: 18 * css/CSSStyleSelector.cpp: 19 (WebCore::CSSStyleSelector::applyProperty): 20 1 21 2011-10-12 Hans Wennborg <hans@chromium.org> 2 22 -
trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp
r97308 r97454 275 275 CSSPropertyWebkitUserSelect, 276 276 CSSPropertyWebkitWritingMode, 277 CSSPropertyWebkitFlow ,277 CSSPropertyWebkitFlowInto, 278 278 CSSPropertyWebkitRegionOverflow, 279 279 CSSPropertyWebkitRegionBreakAfter, … … 1984 1984 case CSSPropertyCounterReset: 1985 1985 return counterToCSSValue(style.get(), propertyID, primitiveValueCache); 1986 case CSSPropertyWebkitFlow :1986 case CSSPropertyWebkitFlowInto: 1987 1987 if (style->flowThread().isNull()) 1988 1988 return primitiveValueCache->createIdentifierValue(CSSValueAuto); -
trunk/Source/WebCore/css/CSSParser.cpp
r97308 r97454 1641 1641 validPrimitive = validUnit(value, FTime | FInteger | FNonNeg, m_strict); 1642 1642 break; 1643 case CSSPropertyWebkitFlow :1643 case CSSPropertyWebkitFlowInto: 1644 1644 return parseFlowThread(propId, important); 1645 1645 case CSSPropertyWebkitRegionOverflow: … … 6508 6508 #endif 6509 6509 6510 // auto | <flow_name> 6510 static bool validFlowName(const String& flowName) 6511 { 6512 if (equalIgnoringCase(flowName, "auto") 6513 || equalIgnoringCase(flowName, "default") 6514 || equalIgnoringCase(flowName, "inherit") 6515 || equalIgnoringCase(flowName, "initial") 6516 || equalIgnoringCase(flowName, "none")) 6517 return false; 6518 return true; 6519 } 6520 6521 // auto | <ident> 6511 6522 bool CSSParser::parseFlowThread(int propId, bool important) 6512 6523 { 6513 ASSERT(propId == CSSPropertyWebkitFlow );6524 ASSERT(propId == CSSPropertyWebkitFlowInto); 6514 6525 6515 6526 if (m_valueList->size() != 1) … … 6518 6529 CSSParserValue* value = m_valueList->current(); 6519 6530 if (!value) 6531 return false; 6532 6533 if (value->unit != CSSPrimitiveValue::CSS_IDENT) 6520 6534 return false; 6521 6535 … … 6525 6539 } 6526 6540 6527 if (!value->id && value->unit == CSSPrimitiveValue::CSS_STRING) { 6528 String inputProperty = String(value->string); 6529 if (!inputProperty.isEmpty()) 6530 addProperty(propId, primitiveValueCache()->createValue(inputProperty, CSSPrimitiveValue::CSS_STRING), important); 6531 else 6532 addProperty(propId, primitiveValueCache()->createIdentifierValue(CSSValueAuto), important); 6533 return true; 6534 } 6535 6536 return false; 6541 String inputProperty = String(value->string); 6542 if (!inputProperty.isEmpty()) { 6543 if (!validFlowName(inputProperty)) 6544 return false; 6545 addProperty(propId, primitiveValueCache()->createValue(inputProperty, CSSPrimitiveValue::CSS_STRING), important); 6546 } else 6547 addProperty(propId, primitiveValueCache()->createIdentifierValue(CSSValueAuto), important); 6548 6549 return true; 6537 6550 } 6538 6551 -
trunk/Source/WebCore/css/CSSPropertyNames.in
r97308 r97454 349 349 -webkit-user-modify 350 350 -webkit-user-select 351 -webkit-flow 351 -webkit-flow-into 352 352 -webkit-region-overflow 353 353 -webkit-wrap-shape -
trunk/Source/WebCore/css/CSSStyleSelector.cpp
r97314 r97454 3416 3416 HANDLE_INHERIT_AND_INITIAL_AND_PRIMITIVE(marqueeBehavior, MarqueeBehavior) 3417 3417 return; 3418 case CSSPropertyWebkitFlow :3418 case CSSPropertyWebkitFlowInto: 3419 3419 if (isInitial) 3420 HANDLE_INITIAL_COND(CSSPropertyWebkitFlow , FlowThread);3420 HANDLE_INITIAL_COND(CSSPropertyWebkitFlowInto, FlowThread); 3421 3421 if (isInherit) { 3422 3422 m_style->setFlowThread(nullAtom);
Note: See TracChangeset
for help on using the changeset viewer.