Changeset 180815 in webkit
- Timestamp:
- Feb 27, 2015 10:21:05 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r180812 r180815 1 2015-02-27 Zalan Bujtas <zalan@apple.com> 2 3 Subpixel-layout: width: max-content; property might cause unnecessary scrollbar. 4 https://bugs.webkit.org/show_bug.cgi?id=142065 5 6 Reviewed by Simon Fraser. 7 8 Rebaseline. Scroll layer shrinks in certain cases. 9 10 * platform/mac-mavericks/editing/input/caret-at-the-edge-of-input-expected.txt: 11 * platform/mac-mavericks/fast/css/text-overflow-input-expected.txt: 12 * platform/mac-mavericks/fast/forms/basic-inputs-expected.txt: 13 * platform/mac-mavericks/fast/forms/control-restrict-line-height-expected.txt: 14 * platform/mac-mavericks/fast/forms/input-disabled-color-expected.txt: 15 * platform/mac-mavericks/fast/forms/search/search-size-with-decorations-expected.txt: 16 * platform/mac-mavericks/http/tests/navigation/javascriptlink-frames-expected.txt: 17 * platform/mac/TestExpectations: 18 * platform/mac/fast/forms/control-restrict-line-height-expected.txt: 19 * platform/mac/fast/forms/input-appearance-selection-expected.txt: 20 * platform/mac/fast/forms/input-text-scroll-left-on-blur-expected.txt: 21 * platform/mac/fast/forms/input-type-text-min-width-expected.txt: 22 * platform/mac/fast/forms/minWidthPercent-expected.txt: 23 * platform/mac/fast/forms/search/search-size-with-decorations-expected.txt: 24 * platform/mac/tables/mozilla/bugs/bug96334-expected.txt: 25 1 26 2015-02-27 David Kilzer <ddkilzer@apple.com> 2 27 -
trunk/LayoutTests/platform/mac-mavericks/editing/input/caret-at-the-edge-of-input-expected.txt
r177774 r180815 11 11 RenderText {#text} at (0,0) size 0x0 12 12 RenderText {#text} at (0,0) size 0x0 13 layer at (13,31) size 70x13 scrollX 36 scrollWidth 29 413 layer at (13,31) size 70x13 scrollX 36 scrollWidth 293 14 14 RenderBlock {DIV} at (3,3) size 70x13 15 15 RenderText {#text} at (0,0) size 293x13 -
trunk/LayoutTests/platform/mac-mavericks/fast/css/text-overflow-input-expected.txt
r180490 r180815 149 149 RenderText {#text} at (0,0) size 293x13 150 150 text run at (0,0) width 293: "Lorem ipsum dolor sit amet, consectetur adipiscing elit" 151 layer at (13,96) size 139x13 scrollWidth 34 1151 layer at (13,96) size 139x13 scrollWidth 340 152 152 RenderBlock {DIV} at (0,0) size 140x13 153 153 RenderText {#text} at (0,0) size 340x13 … … 197 197 RenderText {#text} at (0,0) size 293x13 198 198 text run at (0,0) width 293: "Lorem ipsum dolor sit amet, consectetur adipiscing elit" 199 layer at (13,222) size 139x13 scrollWidth 34 1199 layer at (13,222) size 139x13 scrollWidth 340 200 200 RenderBlock {DIV} at (0,0) size 140x13 201 201 RenderText {#text} at (0,0) size 340x13 -
trunk/LayoutTests/platform/mac-mavericks/fast/forms/basic-inputs-expected.txt
r180490 r180815 71 71 RenderText {#text} at (76,1) size 9x18 72 72 text run at (76,1) width 9: "b" 73 layer at (31,330) size 139x13 scrollWidth 16 573 layer at (31,330) size 139x13 scrollWidth 164 74 74 RenderBlock {DIV} at (3,3) size 140x13 75 75 RenderText {#text} at (0,0) size 164x13 -
trunk/LayoutTests/platform/mac-mavericks/fast/forms/control-restrict-line-height-expected.txt
r177774 r180815 27 27 RenderBlock {DIV} at (147,1) size 14x11 28 28 RenderText {#text} at (0,0) size 0x0 29 layer at (21,75) size 139x13 scrollWidth 27 729 layer at (21,75) size 139x13 scrollWidth 276 30 30 RenderBlock {DIV} at (0,0) size 140x13 31 31 RenderText {#text} at (0,0) size 276x13 -
trunk/LayoutTests/platform/mac-mavericks/fast/forms/input-disabled-color-expected.txt
r177774 r180815 76 76 RenderText {#text} at (0,0) size 351x13 77 77 text run at (0,0) width 351: "The text in this disabled field should displayed as dimmed or grey" 78 layer at (166,31) size 139x13 scrollWidth 15 578 layer at (166,31) size 139x13 scrollWidth 154 79 79 RenderBlock {DIV} at (3,3) size 140x13 80 80 RenderText {#text} at (0,0) size 154x13 … … 84 84 RenderText {#text} at (0,0) size 351x13 85 85 text run at (0,0) width 351: "The text in this disabled field should displayed as dimmed or grey" 86 layer at (166,54) size 139x13 scrollWidth 15 586 layer at (166,54) size 139x13 scrollWidth 154 87 87 RenderBlock {DIV} at (3,3) size 140x13 88 88 RenderText {#text} at (0,0) size 154x13 … … 92 92 RenderText {#text} at (0,0) size 351x13 93 93 text run at (0,0) width 351: "The text in this disabled field should displayed as dimmed or grey" 94 layer at (166,77) size 139x13 scrollWidth 15 594 layer at (166,77) size 139x13 scrollWidth 154 95 95 RenderBlock {DIV} at (3,3) size 140x13 96 96 RenderText {#text} at (0,0) size 154x13 … … 100 100 RenderText {#text} at (0,0) size 351x13 101 101 text run at (0,0) width 351: "The text in this disabled field should displayed as dimmed or grey" 102 layer at (166,100) size 139x13 scrollWidth 15 5102 layer at (166,100) size 139x13 scrollWidth 154 103 103 RenderBlock {DIV} at (3,3) size 140x13 104 104 RenderText {#text} at (0,0) size 154x13 … … 108 108 RenderText {#text} at (0,0) size 351x13 109 109 text run at (0,0) width 351: "The text in this disabled field should displayed as dimmed or grey" 110 layer at (166,123) size 139x13 scrollWidth 15 5110 layer at (166,123) size 139x13 scrollWidth 154 111 111 RenderBlock {DIV} at (3,3) size 140x13 112 112 RenderText {#text} at (0,0) size 154x13 … … 116 116 RenderText {#text} at (0,0) size 351x13 117 117 text run at (0,0) width 351: "The text in this disabled field should displayed as dimmed or grey" 118 layer at (166,146) size 139x13 scrollWidth 15 5118 layer at (166,146) size 139x13 scrollWidth 154 119 119 RenderBlock {DIV} at (3,3) size 140x13 120 120 RenderText {#text} at (0,0) size 154x13 … … 124 124 RenderText {#text} at (0,0) size 351x13 125 125 text run at (0,0) width 351: "The text in this disabled field should displayed as dimmed or grey" 126 layer at (166,169) size 139x13 scrollWidth 15 5126 layer at (166,169) size 139x13 scrollWidth 154 127 127 RenderBlock {DIV} at (3,3) size 140x13 128 128 RenderText {#text} at (0,0) size 154x13 … … 132 132 RenderText {#text} at (0,0) size 351x13 133 133 text run at (0,0) width 351: "The text in this disabled field should displayed as dimmed or grey" 134 layer at (166,192) size 139x13 scrollWidth 15 5134 layer at (166,192) size 139x13 scrollWidth 154 135 135 RenderBlock {DIV} at (3,3) size 140x13 136 136 RenderText {#text} at (0,0) size 154x13 … … 140 140 RenderText {#text} at (0,0) size 351x13 141 141 text run at (0,0) width 351: "The text in this disabled field should displayed as dimmed or grey" 142 layer at (166,215) size 139x13 scrollWidth 15 5142 layer at (166,215) size 139x13 scrollWidth 154 143 143 RenderBlock {DIV} at (3,3) size 140x13 144 144 RenderText {#text} at (0,0) size 154x13 … … 148 148 RenderText {#text} at (0,0) size 351x13 149 149 text run at (0,0) width 351: "The text in this disabled field should displayed as dimmed or grey" 150 layer at (166,238) size 139x13 scrollWidth 15 5150 layer at (166,238) size 139x13 scrollWidth 154 151 151 RenderBlock {DIV} at (3,3) size 140x13 152 152 RenderText {#text} at (0,0) size 154x13 … … 156 156 RenderText {#text} at (0,0) size 351x13 157 157 text run at (0,0) width 351: "The text in this disabled field should displayed as dimmed or grey" 158 layer at (166,261) size 139x13 scrollWidth 15 5158 layer at (166,261) size 139x13 scrollWidth 154 159 159 RenderBlock {DIV} at (3,3) size 140x13 160 160 RenderText {#text} at (0,0) size 154x13 … … 164 164 RenderText {#text} at (0,0) size 351x13 165 165 text run at (0,0) width 351: "The text in this disabled field should displayed as dimmed or grey" 166 layer at (166,284) size 139x13 scrollWidth 15 5166 layer at (166,284) size 139x13 scrollWidth 154 167 167 RenderBlock {DIV} at (3,3) size 140x13 168 168 RenderText {#text} at (0,0) size 154x13 … … 172 172 RenderText {#text} at (0,0) size 351x13 173 173 text run at (0,0) width 351: "The text in this disabled field should displayed as dimmed or grey" 174 layer at (166,307) size 139x13 scrollWidth 15 5174 layer at (166,307) size 139x13 scrollWidth 154 175 175 RenderBlock {DIV} at (3,3) size 140x13 176 176 RenderText {#text} at (0,0) size 154x13 -
trunk/LayoutTests/platform/mac-mavericks/fast/forms/search/search-size-with-decorations-expected.txt
r180441 r180815 60 60 layer at (21,13) size 139x13 61 61 RenderBlock {DIV} at (0,0) size 140x13 62 layer at (21,36) size 139x13 scrollWidth 14 162 layer at (21,36) size 139x13 scrollWidth 140 63 63 RenderBlock {DIV} at (0,0) size 140x13 64 64 RenderText {#text} at (0,0) size 140x13 … … 66 66 layer at (30,59) size 139x13 67 67 RenderBlock {DIV} at (0,0) size 140x13 68 layer at (30,82) size 139x13 scrollWidth 14 168 layer at (30,82) size 139x13 scrollWidth 140 69 69 RenderBlock {DIV} at (0,0) size 140x13 70 70 RenderText {#text} at (0,0) size 140x13 … … 72 72 layer at (35,105) size 139x13 73 73 RenderBlock {DIV} at (0,0) size 140x13 74 layer at (35,128) size 139x13 scrollWidth 14 174 layer at (35,128) size 139x13 scrollWidth 140 75 75 RenderBlock {DIV} at (0,0) size 140x13 76 76 RenderText {#text} at (0,0) size 140x13 77 77 text run at (0,0) width 140: "12345678901234567890" 78 layer at (35,151) size 278x13 scrollWidth 2 8078 layer at (35,151) size 278x13 scrollWidth 279 79 79 RenderBlock {DIV} at (0,0) size 279x13 80 80 RenderText {#text} at (0,0) size 279x13 -
trunk/LayoutTests/platform/mac-mavericks/http/tests/navigation/javascriptlink-frames-expected.txt
r177774 r180815 98 98 RenderText {#text} at (0,0) size 532x37 99 99 text run at (0,0) width 532: "This is an anchor point named \"anchor1\"." 100 layer at (390,363) size 139x13 scrollWidth 15 1100 layer at (390,363) size 139x13 scrollWidth 150 101 101 RenderBlock {DIV} at (3,3) size 140x13 102 102 RenderText {#text} at (0,0) size 150x13 -
trunk/LayoutTests/platform/mac/TestExpectations
r180796 r180815 1255 1255 webkit.org/b/140537 fast/css/ex-unit-with-no-x-height.html [ Failure ] 1256 1256 1257 # Subpixel bug about rounding1258 webkit.org/b/142065 fast/css-intrinsic-dimensions/width-avoid-floats.html [ ImageOnlyFailure ]1259 1260 1257 # Sometimes has an extra space at the end 1261 1258 fast/forms/focus-selection-textarea.html [ Pass Failure ] -
trunk/LayoutTests/platform/mac/fast/forms/control-restrict-line-height-expected.txt
r177774 r180815 27 27 RenderBlock {DIV} at (138,1) size 14x11 28 28 RenderText {#text} at (0,0) size 0x0 29 layer at (21,75) size 130x13 scrollWidth 27 329 layer at (21,75) size 130x13 scrollWidth 272 30 30 RenderBlock {DIV} at (0,0) size 131x13 31 31 RenderText {#text} at (0,0) size 272x13 -
trunk/LayoutTests/platform/mac/fast/forms/input-appearance-selection-expected.txt
r177774 r180815 75 75 RenderBR {BR} at (47,482) size 1x0 76 76 RenderBlock {P} at (0,575) size 784x0 77 layer at (13,47) size 130x13 scrollWidth 13 677 layer at (13,47) size 130x13 scrollWidth 135 78 78 RenderBlock {DIV} at (3,3) size 131x13 79 79 RenderText {#text} at (0,0) size 135x13 -
trunk/LayoutTests/platform/mac/fast/forms/input-text-scroll-left-on-blur-expected.txt
r177774 r180815 17 17 text run at (0,0) width 765: "Tests scrolling back to the beginning when a text field blurs. The first field should be scrolled to the left, the second and" 18 18 text run at (0,18) width 164: "third scrolled to the right." 19 layer at (13,13) size 130x13 scrollWidth 30 919 layer at (13,13) size 130x13 scrollWidth 308 20 20 RenderBlock {DIV} at (3,3) size 131x13 21 21 RenderText {#text} at (0,0) size 308x13 … … 25 25 RenderText {#text} at (-177,0) size 309x13 26 26 text run at (-177,0) width 308: "this text field has a lot of text in it so that it needs to scroll" 27 layer at (302,13) size 130x13 scrollX 17 9 scrollWidth 30927 layer at (302,13) size 130x13 scrollX 178 scrollWidth 308 28 28 RenderBlock {DIV} at (3,3) size 131x13 29 29 RenderText {#text} at (0,0) size 308x13 -
trunk/LayoutTests/platform/mac/fast/forms/input-type-text-min-width-expected.txt
r177774 r180815 10 10 RenderTextControl {INPUT} at (2,38) size 13x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 11 11 RenderText {#text} at (0,0) size 0x0 12 layer at (13,49) size 7x13 scrollWidth 4 112 layer at (13,49) size 7x13 scrollWidth 40 13 13 RenderBlock {DIV} at (3,3) size 7x13 14 14 RenderText {#text} at (0,0) size 40x13 -
trunk/LayoutTests/platform/mac/fast/forms/minWidthPercent-expected.txt
r174585 r180815 11 11 RenderTextControl {INPUT} at (1,3) size 113x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 12 12 RenderText {#text} at (0,0) size 0x0 13 layer at (14,16) size 107x13 scrollWidth 11 413 layer at (14,16) size 107x13 scrollWidth 113 14 14 RenderBlock {DIV} at (3,3) size 107x13 15 15 RenderText {#text} at (0,0) size 113x13 -
trunk/LayoutTests/platform/mac/fast/forms/search/search-size-with-decorations-expected.txt
r180441 r180815 60 60 layer at (21,13) size 130x13 61 61 RenderBlock {DIV} at (0,0) size 131x13 62 layer at (21,36) size 130x13 scrollWidth 13 262 layer at (21,36) size 130x13 scrollWidth 131 63 63 RenderBlock {DIV} at (0,0) size 131x13 64 64 RenderText {#text} at (0,0) size 131x13 … … 66 66 layer at (30,59) size 130x13 67 67 RenderBlock {DIV} at (0,0) size 131x13 68 layer at (30,82) size 130x13 scrollWidth 13 268 layer at (30,82) size 130x13 scrollWidth 131 69 69 RenderBlock {DIV} at (0,0) size 131x13 70 70 RenderText {#text} at (0,0) size 131x13 … … 72 72 layer at (35,105) size 130x13 73 73 RenderBlock {DIV} at (0,0) size 131x13 74 layer at (35,128) size 130x13 scrollWidth 13 274 layer at (35,128) size 130x13 scrollWidth 131 75 75 RenderBlock {DIV} at (0,0) size 131x13 76 76 RenderText {#text} at (0,0) size 131x13 -
trunk/LayoutTests/platform/mac/tables/mozilla/bugs/bug96334-expected.txt
r177774 r180815 40 40 text run at (2,2) width 752: "KEEPoTHEoTEXToHEREoASoLONGoASoPOSSIBLEooKEEPoTHEoTEXToHEREoASoLONGoASoPOSSIBLE" 41 41 text run at (2,20) width 602: "THIS SIMULATES THE PROBLEM ON THE WWW.MAPBLAST.COM/ \"CREATE MAP\"" 42 layer at (31,31) size 130x13 scrollWidth 13 842 layer at (31,31) size 130x13 scrollWidth 137 43 43 RenderBlock {DIV} at (3,3) size 131x13 44 44 RenderText {#text} at (0,0) size 137x13 -
trunk/Source/WebCore/ChangeLog
r180809 r180815 1 2015-02-27 Zalan Bujtas <zalan@apple.com> 2 3 Subpixel-layout: width: max-content; property might cause unnecessary scrollbar. 4 https://bugs.webkit.org/show_bug.cgi?id=142065 5 6 Reviewed by Simon Fraser. 7 8 We should not pixelsnap (ceil in this case) logical coordinates during layout. 9 Should this cause content to be partially cut off, we need to 10 find the broken piece in the computation logic. 11 12 Covered by the unskipped test. 13 14 * rendering/RootInlineBox.cpp: 15 (WebCore::RootInlineBox::paddedLayoutOverflowRect): 16 1 17 2015-02-27 Ryosuke Niwa <rniwa@webkit.org> 2 18 -
trunk/Source/WebCore/rendering/RootInlineBox.cpp
r180155 r180815 838 838 return lineLayoutOverflow; 839 839 840 // FIXME: Audit whether to use pixel snapped values when not using integers for layout: https://bugs.webkit.org/show_bug.cgi?id=63656841 840 if (isHorizontal()) { 842 841 if (isLeftToRightDirection()) 843 lineLayoutOverflow.shiftMaxXEdgeTo(std::max<LayoutUnit>(lineLayoutOverflow.maxX(), pixelSnappedLogicalRight() + endPadding));842 lineLayoutOverflow.shiftMaxXEdgeTo(std::max<LayoutUnit>(lineLayoutOverflow.maxX(), logicalRight() + endPadding)); 844 843 else 845 lineLayoutOverflow.shiftXEdgeTo(std::min<LayoutUnit>(lineLayoutOverflow.x(), pixelSnappedLogicalLeft() - endPadding));844 lineLayoutOverflow.shiftXEdgeTo(std::min<LayoutUnit>(lineLayoutOverflow.x(), logicalLeft() - endPadding)); 846 845 } else { 847 846 if (isLeftToRightDirection()) 848 lineLayoutOverflow.shiftMaxYEdgeTo(std::max<LayoutUnit>(lineLayoutOverflow.maxY(), pixelSnappedLogicalRight() + endPadding));847 lineLayoutOverflow.shiftMaxYEdgeTo(std::max<LayoutUnit>(lineLayoutOverflow.maxY(), logicalRight() + endPadding)); 849 848 else 850 lineLayoutOverflow.shiftYEdgeTo(std::min<LayoutUnit>(lineLayoutOverflow.y(), pixelSnappedLogicalLeft() - endPadding));849 lineLayoutOverflow.shiftYEdgeTo(std::min<LayoutUnit>(lineLayoutOverflow.y(), logicalLeft() - endPadding)); 851 850 } 852 851
Note: See TracChangeset
for help on using the changeset viewer.