Changeset 158184 in webkit
- Timestamp:
- Oct 29, 2013 1:23:57 AM (10 years ago)
- Location:
- trunk
- Files:
-
- 5 added
- 23 deleted
- 16 edited
- 2 copied
- 4 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r158177 r158184 1 2013-10-29 Mihnea Ovidenie <mihnea@adobe.com> 2 3 [CSSRegions] Display anonymous regions in DRT 4 https://bugs.webkit.org/show_bug.cgi?id=122963 5 6 Reviewed by Alexandru Chiculita. 7 8 After https://bugs.webkit.org/show_bug.cgi?id=119135, css regions are modelled using an anonymous 9 RenderNamedFlowFragment object inside the block having a valid -webkit-flow-from. 10 This patch changes the way elements | pseudo-elements with -webkit-flow-from are displayed 11 in test dumps. 12 13 Changed expected files for mac port, removed expectations for gtk | efl and added [Missing] 14 in TestExpectations for these platforms. Results need to be generated again for the [Missing] lines. 15 16 * fast/regions/auto-size/autoheight-regions-mark-expected.txt: Removed. 17 * fast/regions/flows-dependency-dynamic-remove-expected.txt: Removed. 18 * fast/regions/flows-dependency-same-flow-expected.txt: Removed. 19 * platform/efl/TestExpectations: 20 * platform/efl/fast/regions/multiple-directionality-changes-in-variable-width-regions-expected.txt: Removed. 21 * platform/efl/fast/regions/region-dynamic-after-before-expected.txt: Removed. 22 * platform/efl/fast/regions/region-generated-content-before-after-expected.txt: Removed. 23 * platform/efl/fast/regions/text-region-split-small-pagination-expected.txt: Removed. 24 * platform/efl/fast/regions/top-overflow-out-of-second-region-expected.txt: Removed. 25 * platform/efl/fast/repaint/japanese-rl-selection-repaint-in-regions-expected.txt: Removed. 26 * platform/efl/fast/repaint/line-flow-with-floats-in-regions-expected.png: Removed. 27 * platform/efl/fast/repaint/line-flow-with-floats-in-regions-expected.txt: Removed. 28 * platform/efl/fast/repaint/overflow-flipped-writing-mode-block-in-regions-expected.png: Removed. 29 * platform/efl/fast/repaint/region-painting-invalidation-expected.txt: Removed. 30 * platform/gtk/TestExpectations: 31 * platform/gtk/fast/regions/flows-dependency-same-flow-expected.png: Removed. 32 * platform/gtk/fast/regions/multiple-directionality-changes-in-variable-width-regions-expected.txt: Removed. 33 * platform/gtk/fast/regions/region-dynamic-after-before-expected.txt: Removed. 34 * platform/gtk/fast/regions/region-generated-content-before-after-expected.txt: Removed. 35 * platform/gtk/fast/regions/text-region-split-small-pagination-expected.txt: Removed. 36 * platform/gtk/fast/regions/top-overflow-out-of-second-region-expected.txt: Removed. 37 * platform/gtk/fast/repaint/line-flow-with-floats-in-regions-expected.png: Removed. 38 * platform/gtk/fast/repaint/line-flow-with-floats-in-regions-expected.txt: Removed. 39 * platform/gtk/fast/repaint/overflow-flipped-writing-mode-block-in-regions-expected.png: Removed. 40 * platform/mac/fast/regions/auto-size/autoheight-regions-mark-expected.png: Copied from LayoutTests/fast/regions/flows-dependency-same-flow-expected.png. 41 * platform/mac/fast/regions/auto-size/autoheight-regions-mark-expected.txt: Added. 42 * platform/mac/fast/regions/autoheight-regions-mark-expected.png: Removed. 43 * platform/mac/fast/regions/flows-dependency-dynamic-remove-expected.txt: Added. 44 * platform/mac/fast/regions/flows-dependency-same-flow-expected.png: Copied from LayoutTests/fast/regions/flows-dependency-same-flow-expected.png. 45 * platform/mac/fast/regions/flows-dependency-same-flow-expected.txt: Added. 46 * platform/mac/fast/regions/iframe-html-collected-expected.png: Renamed from LayoutTests/fast/regions/flows-dependency-same-flow-expected.png. 47 * platform/mac/fast/regions/iframe-html-collected-expected.txt: Renamed from LayoutTests/fast/regions/iframe-html-collected-expected.txt. 48 * platform/mac/fast/regions/multiple-directionality-changes-in-variable-width-regions-expected.txt: 49 * platform/mac/fast/regions/region-dynamic-after-before-expected.txt: 50 * platform/mac/fast/regions/region-generated-content-before-after-expected.txt: 51 * platform/mac/fast/regions/text-region-split-small-pagination-expected.txt: 52 * platform/mac/fast/regions/top-overflow-out-of-second-region-expected.txt: 53 * platform/mac/fast/repaint/japanese-rl-selection-repaint-in-regions-expected.png: Added. 54 * platform/mac/fast/repaint/japanese-rl-selection-repaint-in-regions-expected.txt: 55 * platform/mac/fast/repaint/line-flow-with-floats-in-regions-expected.txt: 56 * platform/mac/fast/repaint/overflow-flipped-writing-mode-block-in-regions-expected.txt: Renamed from LayoutTests/fast/repaint/overflow-flipped-writing-mode-block-in-regions-expected.txt. 57 * platform/mac/fast/repaint/region-painting-invalidation-expected.txt: 58 * platform/mac/fast/repaint/region-painting-via-layout-expected.txt: Renamed from LayoutTests/fast/repaint/region-painting-via-layout-expected.txt. 59 1 60 2013-10-28 Simon Fraser <simon.fraser@apple.com> 2 61 -
trunk/LayoutTests/platform/efl/TestExpectations
r158106 r158184 1567 1567 webkit.org/b/106405 http/tests/xmlhttprequest/failed-auth.html [ Failure ] 1568 1568 webkit.org/b/106405 http/tests/xmlhttprequest/remember-bad-password.html [ Failure ] 1569 1570 webkit.org/b/122963 fast/regions/auto-size/autoheight-regions-mark.html [ Missing ] 1571 webkit.org/b/122963 fast/regions/flows-dependency-dynamic-remove.html [ Missing ] 1572 webkit.org/b/122963 fast/regions/flows-dependency-same-flow.html [ Missing ] 1573 webkit.org/b/122963 fast/regions/multiple-directionality-changes-in-variable-width-regions.html [ Missing ] 1574 webkit.org/b/122963 fast/regions/region-dynamic-after-before.html [ Missing ] 1575 webkit.org/b/122963 fast/regions/region-generated-content-before-after.html [ Missing ] 1576 webkit.org/b/122963 fast/regions/text-region-split-small-pagination.html [ Missing ] 1577 webkit.org/b/122963 fast/regions/top-overflow-out-of-second-region.html [ Missing ] 1578 1579 webkit.org/b/122963 fast/repaint/japanese-rl-selection-repaint-in-regions.html [ Missing ] 1580 webkit.org/b/122963 fast/repaint/line-flow-with-floats-in-regions.html [ Missing ] 1581 webkit.org/b/122963 fast/repaint/overflow-flipped-writing-mode-block-in-regions.html [ Missing ] 1582 webkit.org/b/122963 fast/repaint/region-painting-invalidation.html [ Missing ] 1583 webkit.org/b/122963 fast/repaint/region-painting-via-layout.html [ Missing ] -
trunk/LayoutTests/platform/gtk/TestExpectations
r158104 r158184 43 43 44 44 # Tests need new generated expected results 45 webkit.org/b/121828 fast/repaint/japanese-rl-selection-repaint-in-regions.html [ Missing ] 46 webkit.org/b/121828 fast/repaint/region-painting-invalidation.html [ Missing ] 47 webkit.org/b/121828 fast/repaint/region-painting-via-layout.html [ Missing ] 45 webkit.org/b/122963 fast/regions/auto-size/autoheight-regions-mark.html [ Missing ] 46 webkit.org/b/122963 fast/regions/flows-dependency-dynamic-remove.html [ Missing ] 47 webkit.org/b/122963 fast/regions/flows-dependency-same-flow.html [ Missing ] 48 webkit.org/b/122963 fast/regions/multiple-directionality-changes-in-variable-width-regions.html [ Missing ] 49 webkit.org/b/122963 fast/regions/region-dynamic-after-before.html [ Missing ] 50 webkit.org/b/122963 fast/regions/region-generated-content-before-after.html [ Missing ] 51 webkit.org/b/122963 fast/regions/text-region-split-small-pagination.html [ Missing ] 52 webkit.org/b/122963 fast/regions/top-overflow-out-of-second-region.html [ Missing ] 53 54 webkit.org/b/122963 fast/repaint/japanese-rl-selection-repaint-in-regions.html [ Missing ] 55 webkit.org/b/122963 fast/repaint/line-flow-with-floats-in-regions.html [ Missing ] 56 webkit.org/b/122963 fast/repaint/overflow-flipped-writing-mode-block-in-regions.html [ Missing ] 57 webkit.org/b/122963 fast/repaint/region-painting-invalidation.html [ Missing ] 58 webkit.org/b/122963 fast/repaint/region-painting-via-layout.html [ Missing ] 48 59 49 60 #//////////////////////////////////////////////////////////////////////////////////////// -
trunk/LayoutTests/platform/mac/fast/regions/iframe-html-collected-expected.png
-
Property
svn:mime-type
set to
image/png
-
Property
svn:mime-type
set to
-
trunk/LayoutTests/platform/mac/fast/regions/iframe-html-collected-expected.txt
r158183 r158184 1 1 layer at (0,0) size 800x600 2 2 RenderView at (0,0) size 800x600 3 Flow Threads4 Thread with flow-name'flow'3 Named flows 4 Named flow 'flow' 5 5 layer at (0,0) size 0x600 6 6 RenderBlock {HTML} at (0,0) size 0x600 -
trunk/LayoutTests/platform/mac/fast/regions/multiple-directionality-changes-in-variable-width-regions-expected.txt
r156767 r158184 6 6 RenderBlock {DIV} at (0,0) size 784x406 7 7 layer at (8,8) size 402x102 8 RenderRegion {DIV} at (0,0) size 402x102 [border: (1px solid #000000)] 8 RenderBlock {DIV} at (0,0) size 402x102 [border: (1px solid #000000)] 9 RenderNamedFlowFragment at (1,1) size 400x100 9 10 layer at (8,110) size 502x182 10 RenderRegion {DIV} at (0,102) size 502x182 [border: (1px solid #000000)] 11 RenderBlock {DIV} at (0,102) size 502x182 [border: (1px solid #000000)] 12 RenderNamedFlowFragment at (1,1) size 500x180 11 13 layer at (8,292) size 202x122 12 RenderRegion {DIV} at (0,284) size 202x122 [border: (1px solid #000000)] 13 Flow Threads 14 Thread with flow-name 'flow1' 14 RenderBlock {DIV} at (0,284) size 202x122 [border: (1px solid #000000)] 15 RenderNamedFlowFragment at (1,1) size 200x120 16 Named flows 17 Named flow 'flow1' 15 18 layer at (0,0) size 500x400 16 19 RenderNamedFlowThread at (0,0) size 500x400 … … 34 37 RenderText {#text} at (0,0) size 304x18 35 38 text run at (0,0) width 304: "This line of text should not get out of the region." 36 Regions forflow 'flow1'37 RenderRegion {DIV} #region138 RenderRegion {DIV} #region239 RenderRegion {DIV} #region339 Regions for named flow 'flow1' 40 RenderNamedFlowFragment (anonymous child of {DIV} #region1) 41 RenderNamedFlowFragment (anonymous child of {DIV} #region2) 42 RenderNamedFlowFragment (anonymous child of {DIV} #region3) -
trunk/LayoutTests/platform/mac/fast/regions/region-dynamic-after-before-expected.txt
r156767 r158184 5 5 RenderBody {BODY} at (8,8) size 784x112 6 6 layer at (8,8) size 80x112 7 RenderRegion {DIV} at (0,0) size 80x112 [bgcolor=#D3D3D3] 7 RenderBlock (relative positioned) {DIV} at (0,0) size 80x112 [bgcolor=#D3D3D3] 8 RenderNamedFlowFragment at (0,16) size 80x96 8 9 layer at (8,8) size 67x18 9 10 RenderBlock (positioned) at (0,0) size 67x18 … … 14 15 RenderText at (0,0) size 56x18 15 16 text run at (0,0) width 56: "AFTER" 16 Flow Threads17 Thread with flow-name'namedFlow'17 Named flows 18 Named flow 'namedFlow' 18 19 layer at (0,0) size 80x96 19 20 RenderNamedFlowThread at (0,0) size 80x96 … … 22 23 text run at (0,0) width 76: "some text to" 23 24 text run at (0,18) width 29: "flow" 24 Regions forflow 'namedFlow'25 RenderRegion {DIV} #region25 Regions for named flow 'namedFlow' 26 RenderNamedFlowFragment (anonymous child of {DIV} #region) -
trunk/LayoutTests/platform/mac/fast/regions/region-generated-content-before-after-expected.txt
r156767 r158184 5 5 RenderBody {BODY} at (8,8) size 784x112 6 6 layer at (8,8) size 80x112 7 RenderRegion {DIV} at (0,0) size 80x112 [bgcolor=#D3D3D3] 7 RenderBlock (relative positioned) {DIV} at (0,0) size 80x112 [bgcolor=#D3D3D3] 8 RenderNamedFlowFragment at (0,16) size 80x96 8 9 layer at (8,8) size 67x18 9 10 RenderBlock (positioned) at (0,0) size 67x18 … … 14 15 RenderText at (0,0) size 56x18 15 16 text run at (0,0) width 56: "AFTER" 16 Flow Threads17 Thread with flow-name'namedFlow'17 Named flows 18 Named flow 'namedFlow' 18 19 layer at (0,0) size 80x96 19 20 RenderNamedFlowThread at (0,0) size 80x96 … … 22 23 text run at (0,0) width 76: "some text to" 23 24 text run at (0,18) width 29: "flow" 24 Regions forflow 'namedFlow'25 RenderRegion {DIV} #region25 Regions for named flow 'namedFlow' 26 RenderNamedFlowFragment (anonymous child of {DIV} #region) -
trunk/LayoutTests/platform/mac/fast/regions/text-region-split-small-pagination-expected.txt
r156767 r158184 5 5 RenderBody {BODY} at (8,16) size 784x244 6 6 layer at (8,16) size 204x34 7 RenderRegion {DIV} at (0,0) size 204x34 [border: (2px solid #000000)] 7 RenderBlock {DIV} at (0,0) size 204x34 [border: (2px solid #000000)] 8 RenderNamedFlowFragment at (2,2) size 200x30 8 9 layer at (8,66) size 204x54 9 RenderRegion {DIV} at (0,50) size 204x54 [border: (2px solid #000000)] 10 RenderBlock {DIV} at (0,50) size 204x54 [border: (2px solid #000000)] 11 RenderNamedFlowFragment at (2,2) size 200x50 10 12 layer at (8,136) size 204x54 11 RenderRegion {DIV} at (0,120) size 204x54 [border: (2px solid #000000)] 13 RenderBlock {DIV} at (0,120) size 204x54 [border: (2px solid #000000)] 14 RenderNamedFlowFragment at (2,2) size 200x50 12 15 layer at (8,206) size 204x54 13 RenderRegion {DIV} at (0,190) size 204x54 [border: (2px solid #000000)] 14 Flow Threads 15 Thread with flow-name 'flow' 16 RenderBlock {DIV} at (0,190) size 204x54 [border: (2px solid #000000)] 17 RenderNamedFlowFragment at (2,2) size 200x50 18 Named flows 19 Named flow 'flow' 16 20 layer at (0,0) size 200x180 17 21 RenderNamedFlowThread at (0,0) size 200x180 … … 35 39 text run at (0,68) width 166: "should be nothing in this" 36 40 text run at (0,100) width 139: "region after this line." 37 Regions forflow 'flow'38 RenderRegion {DIV} #region139 RenderRegion {DIV} #region240 RenderRegion {DIV} #region341 RenderRegion {DIV} #region441 Regions for named flow 'flow' 42 RenderNamedFlowFragment (anonymous child of {DIV} #region1) 43 RenderNamedFlowFragment (anonymous child of {DIV} #region2) 44 RenderNamedFlowFragment (anonymous child of {DIV} #region3) 45 RenderNamedFlowFragment (anonymous child of {DIV} #region4) -
trunk/LayoutTests/platform/mac/fast/regions/top-overflow-out-of-second-region-expected.txt
r156767 r158184 12 12 RenderBlock {DIV} at (0,88) size 784x306 13 13 layer at (8,104) size 302x102 14 RenderRegion {DIV} at (0,0) size 302x102 [border: (1px solid #000000)] 14 RenderBlock {DIV} at (0,0) size 302x102 [border: (1px solid #000000)] 15 RenderNamedFlowFragment at (1,1) size 300x100 15 16 layer at (8,206) size 402x202 16 RenderRegion {DIV} at (0,102) size 402x202 [border: (1px solid #000000)] 17 RenderBlock {DIV} at (0,102) size 402x202 [border: (1px solid #000000)] 18 RenderNamedFlowFragment at (1,1) size 400x200 17 19 layer at (8,408) size 2x2 18 RenderRegion {DIV} at (0,304) size 2x2 [border: (1px solid #000000)] 19 Flow Threads 20 Thread with flow-name 'flow1' 20 RenderBlock {DIV} at (0,304) size 2x2 [border: (1px solid #000000)] 21 RenderNamedFlowFragment at (1,1) size 0x0 22 Named flows 23 Named flow 'flow1' 21 24 layer at (0,0) size 400x300 22 25 RenderNamedFlowThread at (0,0) size 400x300 … … 36 39 text run at (0,36) width 112: "top of the second " 37 40 text run at (112,36) width 44: "region." 38 Regions forflow 'flow1'39 RenderRegion {DIV} #region140 RenderRegion {DIV} #region241 RenderRegion {DIV} #region341 Regions for named flow 'flow1' 42 RenderNamedFlowFragment (anonymous child of {DIV} #region1) 43 RenderNamedFlowFragment (anonymous child of {DIV} #region2) 44 RenderNamedFlowFragment (anonymous child of {DIV} #region3) -
trunk/LayoutTests/platform/mac/fast/repaint/japanese-rl-selection-repaint-in-regions-expected.txt
r156767 r158184 5 5 RenderBody {BODY} at (18,18) size 10x564 [border: (5px solid #000000)] 6 6 layer at (296,100) size 404x404 7 RenderRegion {DIV} at (100,100) size 404x404 [border: (2px solid #000000)] 8 Flow Threads 9 Thread with flow-name 'thread' 7 RenderBlock (positioned) {DIV} at (100,100) size 404x404 [border: (2px solid #000000)] 8 RenderNamedFlowFragment at (2,2) size 400x400 9 Named flows 10 Named flow 'thread' 10 11 layer at (400,0) size 400x400 11 12 RenderNamedFlowThread at (0,0) size 400x400 … … 26 27 text run at (302,0) width 367: "\x{307E}\x{3059}\x{304B} \x{306A}\x{3089}\x{30BF}\x{30A4}\x{30C8}\x{30EB}\x{3068}\x{30A2}\x{30C9}\x{30EC}\x{30B9}\x{3060}\x{3051}\x{3067}\x{306A}" 27 28 text run at (327,0) width 80: "\x{304F}\x{3001}\x{8A2A}\x{554F}" 28 Regions forflow 'thread'29 RenderRegion {DIV}29 Regions for named flow 'thread' 30 RenderNamedFlowFragment (anonymous child of {DIV}) 30 31 selection start: position 70 of child 0 {#text} of child 1 {DIV} of body 31 32 selection end: position 230 of child 0 {#text} of child 1 {DIV} of body -
trunk/LayoutTests/platform/mac/fast/repaint/line-flow-with-floats-in-regions-expected.txt
r156767 r158184 5 5 RenderBody {BODY} at (0,0) size 800x600 6 6 layer at (100,0) size 500x600 7 RenderRegion {DIV} at (100,0) size 500x600 8 Flow Threads 9 Thread with flow-name 'thread' 7 RenderBlock (positioned) {DIV} at (100,0) size 500x600 8 RenderNamedFlowFragment at (0,0) size 500x600 9 Named flows 10 Named flow 'thread' 10 11 layer at (0,0) size 500x600 11 12 RenderNamedFlowThread at (0,0) size 500x600 … … 85 86 text run at (6,474) width 93: "here; the great " 86 87 text run at (99,474) width 261: "wonder is, that there\x{2018}s any one left alive!\x{2019}" 87 Regions forflow 'thread'88 RenderRegion {DIV}88 Regions for named flow 'thread' 89 RenderNamedFlowFragment (anonymous child of {DIV}) -
trunk/LayoutTests/platform/mac/fast/repaint/overflow-flipped-writing-mode-block-in-regions-expected.txt
r158183 r158184 5 5 RenderBody {BODY} at (8,8) size 784x584 6 6 layer at (100,100) size 104x404 7 RenderRegion {DIV} at (100,100) size 104x404 [border: (2px solid #000000)] 8 Flow Threads 9 Thread with flow-name 'thread' 7 RenderBlock (positioned) {DIV} at (100,100) size 104x404 [border: (2px solid #000000)] 8 RenderNamedFlowFragment at (2,2) size 100x400 9 Named flows 10 Named flow 'thread' 10 11 layer at (0,0) size 100x400 11 12 RenderNamedFlowThread at (0,0) size 100x400 … … 14 15 RenderBlock {DIV} at (0,0) size 100x100 [bgcolor=#008000] 15 16 RenderBlock {DIV} at (0,0) size 100x50 [bgcolor=#FF0000] 16 Regions forflow 'thread'17 RenderRegion {DIV}17 Regions for named flow 'thread' 18 RenderNamedFlowFragment (anonymous child of {DIV}) -
trunk/LayoutTests/platform/mac/fast/repaint/region-painting-invalidation-expected.txt
r156767 r158184 7 7 RenderBR {BR} at (0,0) size 0x18 8 8 layer at (8,8) size 302x152 9 RenderRegion {DIV} at (0,0) size 302x152 [bgcolor=#FF0000] [border: (1px solid #000000)] 9 RenderBlock {DIV} at (0,0) size 302x152 [bgcolor=#FF0000] [border: (1px solid #000000)] 10 RenderNamedFlowFragment at (1,1) size 300x150 10 11 layer at (8,178) size 302x202 11 RenderRegion {DIV} at (0,170) size 302x202 [bgcolor=#FF0000] [border: (1px solid #000000)] 12 Flow Threads 13 Thread with flow-name 'flow1' 12 RenderBlock {DIV} at (0,170) size 302x202 [bgcolor=#FF0000] [border: (1px solid #000000)] 13 RenderNamedFlowFragment at (1,1) size 300x200 14 Named flows 15 Named flow 'flow1' 14 16 layer at (0,0) size 300x350 15 17 RenderNamedFlowThread at (0,0) size 300x350 16 18 RenderBlock {DIV} at (0,0) size 300x350 17 19 RenderBlock {DIV} at (0,0) size 300x350 [bgcolor=#008000] 18 Regions forflow 'flow1'19 RenderRegion {DIV} #region120 RenderRegion {DIV} #region220 Regions for named flow 'flow1' 21 RenderNamedFlowFragment (anonymous child of {DIV} #region1) 22 RenderNamedFlowFragment (anonymous child of {DIV} #region2) -
trunk/LayoutTests/platform/mac/fast/repaint/region-painting-via-layout-expected.txt
r158183 r158184 5 5 RenderBody {BODY} at (8,8) size 784x584 6 6 layer at (8,8) size 786x182 7 RenderRegion {DIV} at (0,0) size 786x182 [bgcolor=#FF0000] [border: (1px solid #000000)] 8 Flow Threads 9 Thread with flow-name 'flow1' 7 RenderBlock {DIV} at (0,0) size 786x182 [bgcolor=#FF0000] [border: (1px solid #000000)] 8 RenderNamedFlowFragment at (1,1) size 784x180 9 Named flows 10 Named flow 'flow1' 10 11 layer at (0,0) size 784x1180 backgroundClip at (0,0) size 800x600 clip at (0,0) size 800x600 outlineClip at (0,0) size 800x600 11 12 RenderNamedFlowThread at (0,0) size 784x1180 … … 14 15 RenderBlock {DIV} at (0,1000) size 784x200 15 16 RenderBlock {DIV} at (0,0) size 784x200 [bgcolor=#008000] 16 Regions forflow 'flow1'17 RenderRegion {DIV} #region118 RenderRegion {DIV} #region217 Regions for named flow 'flow1' 18 RenderNamedFlowFragment (anonymous child of {DIV} #region1) 19 RenderNamedFlowFragment (anonymous child of {DIV} #region2) -
trunk/Source/WebCore/ChangeLog
r158183 r158184 1 2013-10-29 Mihnea Ovidenie <mihnea@adobe.com> 2 3 [CSSRegions] Display anonymous regions in DRT 4 https://bugs.webkit.org/show_bug.cgi?id=122963 5 6 Reviewed by Alexandru Chiculita. 7 8 After https://bugs.webkit.org/show_bug.cgi?id=119135, css regions are modelled using an anonymous 9 RenderNamedFlowFragment object inside the block having a valid -webkit-flow-from. 10 This patch changes the way elements | pseudo-elements with -webkit-flow-from are displayed 11 in test dumps. 12 13 Before: 14 RenderRegion {DIV} at (200,200) size 52x52 [border: (1px solid #000000)] 15 After: 16 RenderBlock (positioned) {DIV} at (200,200) size 52x52 [border: (1px solid #000000)] 17 RenderNamedFlowFragment at (1,1) size 50x50 18 19 Before: 20 Flow Threads 21 Thread with flow-name 'article' 22 Regions for flow 'article' 23 RenderRegion {DIV} #region_1 24 RenderRegion {DIV} #region_2 25 After: 26 Named flows 27 Named flow 'article' 28 Regions for named flow 'article' 29 RenderNamedFlowFragment (anonymous child of {DIV::before} #region_1) 30 RenderNamedFlowFragment (anonymous child of {DIV} #region_2) 31 32 Changed existing tests based on the new dumps. 33 34 * rendering/RenderBlock.cpp: 35 (WebCore::RenderBlock::renderName): 36 * rendering/RenderNamedFlowFragment.h: Add a comment explaining the purpose of the class. 37 * rendering/RenderRegion.h: 38 * rendering/RenderTreeAsText.cpp: 39 (WebCore::write): 40 (WebCore::writeRenderRegionList): Adjust function to display info for anonymous regions too. 41 (WebCore::writeRenderNamedFlowThreads): Separate dump of valid and invalid regions for a named flow. 42 1 43 2013-10-29 Zan Dobersek <zdobersek@igalia.com> 2 44 -
trunk/Source/WebCore/rendering/RenderBlock.cpp
r158163 r158184 5256 5256 return "RenderBody"; // FIXME: Temporary hack until we know that the regression tests pass. 5257 5257 5258 if (isRenderNamedFlowFragmentContainer())5259 return "RenderRegion";5260 5258 if (isFloating()) 5261 5259 return "RenderBlock (floating)"; -
trunk/Source/WebCore/rendering/RenderNamedFlowFragment.h
r158097 r158184 38 38 class RenderStyle; 39 39 40 // RenderNamedFlowFragment represents a region that is responsible for the fragmentation of 41 // the RenderNamedFlowThread content. 42 // 43 // A RenderNamedFlowFragment object is created as an anonymous child for a RenderBlockFlow object 44 // that has a valid -webkit-flow-from property. 45 // 46 // This allows a non-replaced block to behave like a region if needed, following the CSSRegions specification: 47 // http://dev.w3.org/csswg/css-regions/#the-flow-from-property. 48 // list-item, table-caption, table-cell can become regions in addition to block | inline-block. 49 40 50 class RenderNamedFlowFragment FINAL : public RenderRegion { 41 51 public: -
trunk/Source/WebCore/rendering/RenderRegion.h
r158097 r158184 36 36 namespace WebCore { 37 37 38 class Element;39 38 struct LayerFragment; 40 39 typedef Vector<LayerFragment, 1> LayerFragments; 40 41 class Element; 41 42 class RenderBox; 42 43 class RenderBoxRegionInfo; -
trunk/Source/WebCore/rendering/RenderTreeAsText.cpp
r158183 r158184 567 567 568 568 } else { 569 if (!toRenderElement(o).isRenderNamedFlowFragmentContainer()) { 570 for (RenderObject* child = toRenderElement(o).firstChild(); child; child = child->nextSibling()) { 571 if (child->hasLayer()) 572 continue; 573 write(ts, *child, indent + 1, behavior); 574 } 569 for (RenderObject* child = toRenderElement(o).firstChild(); child; child = child->nextSibling()) { 570 if (child->hasLayer()) 571 continue; 572 write(ts, *child, indent + 1, behavior); 575 573 } 576 574 } … … 658 656 { 659 657 for (RenderRegionList::const_iterator itRR = flowThreadRegionList.begin(); itRR != flowThreadRegionList.end(); ++itRR) { 660 RenderRegion* renderRegion = *itRR; 661 writeIndent(ts, indent + 2); 662 ts << "RenderRegion"; 663 if (renderRegion->generatingElement()) { 664 String tagName = getTagName(renderRegion->generatingElement()); 665 if (!tagName.isEmpty()) 666 ts << " {" << tagName << "}"; 667 if (renderRegion->generatingElement()->hasID()) 668 ts << " #" << renderRegion->generatingElement()->idForStyleResolution(); 658 RenderRegion* renderRegion = (*itRR); 659 660 writeIndent(ts, indent); 661 ts << static_cast<const RenderObject*>(renderRegion)->renderName(); 662 663 Element* generatingElement = renderRegion->generatingElement(); 664 if (generatingElement) { 669 665 if (renderRegion->hasCustomRegionStyle()) 670 666 ts << " region style: 1"; 671 667 if (renderRegion->hasAutoLogicalHeight()) 672 668 ts << " hasAutoLogicalHeight"; 673 } 674 if (!renderRegion->isValid()) 675 ts << " invalid"; 669 670 bool isRenderNamedFlowFragment = renderRegion->isRenderNamedFlowFragment(); 671 if (isRenderNamedFlowFragment) 672 ts << " (anonymous child of"; 673 674 StringBuilder tagName; 675 tagName.append(generatingElement->nodeName()); 676 677 RenderElement* renderElementForRegion = isRenderNamedFlowFragment ? renderRegion->parent() : renderRegion; 678 if (renderElementForRegion->isPseudoElement()) { 679 if (renderElementForRegion->element()->isBeforePseudoElement()) 680 tagName.append("::before"); 681 else if (renderElementForRegion->element()->isAfterPseudoElement()) 682 tagName.append("::after"); 683 } 684 685 ts << " {" << tagName.toString() << "}"; 686 687 if (generatingElement->hasID()) 688 ts << " #" << generatingElement->idForStyleResolution(); 689 690 if (isRenderNamedFlowFragment) 691 ts << ")"; 692 } 693 676 694 ts << "\n"; 677 695 } … … 679 697 680 698 static void writeRenderNamedFlowThreads(TextStream& ts, RenderView& renderView, const RenderLayer* rootLayer, 681 699 const LayoutRect& paintRect, int indent, RenderAsTextBehavior behavior) 682 700 { 683 701 if (!renderView.hasRenderNamedFlowThreads()) … … 687 705 688 706 writeIndent(ts, indent); 689 ts << " Flow Threads\n";707 ts << "Named flows\n"; 690 708 691 709 for (RenderNamedFlowThreadList::const_iterator iter = list->begin(); iter != list->end(); ++iter) { … … 693 711 694 712 writeIndent(ts, indent + 1); 695 ts << " Thread with flow-name'" << renderFlowThread->flowThreadName() << "'\n";713 ts << "Named flow '" << renderFlowThread->flowThreadName() << "'\n"; 696 714 697 715 RenderLayer* layer = renderFlowThread->layer(); … … 701 719 const RenderRegionList& validRegionsList = renderFlowThread->renderRegionList(); 702 720 const RenderRegionList& invalidRegionsList = renderFlowThread->invalidRenderRegionList(); 703 if (!validRegionsList.isEmpty() || !invalidRegionsList.isEmpty()) { 704 writeIndent(ts, indent + 1); 705 ts << "Regions for flow '"<< renderFlowThread->flowThreadName() << "'\n"; 706 writeRenderRegionList(validRegionsList, ts, indent); 707 writeRenderRegionList(invalidRegionsList, ts, indent); 721 if (!validRegionsList.isEmpty()) { 722 writeIndent(ts, indent + 2); 723 ts << "Regions for named flow '" << renderFlowThread->flowThreadName() << "'\n"; 724 writeRenderRegionList(validRegionsList, ts, indent + 3); 725 } 726 if (!invalidRegionsList.isEmpty()) { 727 writeIndent(ts, indent + 2); 728 ts << "Invalid regions for named flow '" << renderFlowThread->flowThreadName() << "'\n"; 729 writeRenderRegionList(invalidRegionsList, ts, indent + 3); 708 730 } 709 731 }
Note: See TracChangeset
for help on using the changeset viewer.