Changeset 119456 in webkit
- Timestamp:
- Jun 4, 2012, 9:42:55 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 6 added
- 31 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/dom/elementFromPoint-relative-to-viewport.html (modified) (2 diffs)
-
LayoutTests/fast/events/offsetX-offsetY.html (modified) (4 diffs)
-
LayoutTests/fast/sub-pixel/float-containing-block-with-margin-expected.html (added)
-
LayoutTests/fast/sub-pixel/float-containing-block-with-margin.html (added)
-
LayoutTests/fast/sub-pixel/float-with-right-margin-zoom-expected.txt (added)
-
LayoutTests/fast/sub-pixel/float-with-right-margin-zoom.html (added)
-
LayoutTests/fast/sub-pixel/inline-block-with-padding-expected.txt (added)
-
LayoutTests/fast/sub-pixel/inline-block-with-padding.html (added)
-
LayoutTests/platform/chromium-linux/css2.1/t100801-c544-valgn-03-d-agi-expected.png (modified) ( previous)
-
LayoutTests/platform/chromium-linux/css2.1/t100801-c544-valgn-03-d-agi-expected.txt (modified) (1 diff)
-
LayoutTests/platform/chromium-linux/fast/line-grid/line-align-left-edges-expected.png (modified) ( previous)
-
LayoutTests/platform/chromium-linux/fast/line-grid/line-grid-contains-value-expected.png (modified) ( previous)
-
LayoutTests/platform/chromium-linux/fast/multicol/float-multicol-expected.png (modified) ( previous)
-
LayoutTests/platform/chromium-win/fast/events/offsetX-offsetY-expected.txt (modified) (1 diff)
-
LayoutTests/platform/chromium-win/fast/line-grid/line-grid-contains-value-expected.txt (modified) (1 diff)
-
LayoutTests/platform/chromium-win/fast/multicol/float-multicol-expected.txt (modified) (3 diffs)
-
LayoutTests/platform/chromium/TestExpectations (modified) (1 diff)
-
LayoutTests/platform/chromium/fast/dom/elementFromPoint-relative-to-viewport-expected.txt (modified) (1 diff)
-
LayoutTests/platform/chromium/fast/line-grid/line-align-left-edges-expected.txt (modified) (2 diffs)
-
LayoutTests/platform/efl/Skipped (modified) (1 diff)
-
LayoutTests/platform/gtk-wk2/Skipped (modified) (1 diff)
-
LayoutTests/platform/mac-lion/Skipped (modified) (1 diff)
-
LayoutTests/platform/mac-snowleopard/Skipped (modified) (1 diff)
-
LayoutTests/platform/mac-wk2/Skipped (modified) (1 diff)
-
LayoutTests/platform/mac/Skipped (modified) (1 diff)
-
LayoutTests/platform/qt-4.8/Skipped (modified) (1 diff)
-
LayoutTests/platform/qt/Skipped (modified) (1 diff)
-
LayoutTests/platform/win-wk2/Skipped (modified) (1 diff)
-
LayoutTests/platform/win-xp/Skipped (modified) (1 diff)
-
LayoutTests/platform/win/Skipped (modified) (1 diff)
-
LayoutTests/platform/wincairo/Skipped (modified) (1 diff)
-
LayoutTests/platform/wk2/Skipped (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/platform/FractionalLayoutUnit.h (modified) (1 diff)
-
Source/WebCore/rendering/RenderBlockLineLayout.cpp (modified) (3 diffs)
-
Source/WebCore/rendering/RenderFlexibleBox.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r119455 r119456 1 2012-06-04 Emil A Eklund <eae@chromium.org> and Levi Weintraub <leviw@chromium.org> 2 3 Add missing FractionalLayoutUnit += operator and move LineWidth to use all floats 4 https://bugs.webkit.org/show_bug.cgi?id=88259 5 6 Reviewed by Ryosuke Niwa. 7 8 * fast/dom/elementFromPoint-relative-to-viewport.html: 9 * fast/events/offsetX-offsetY.html: 10 Remove special casing for subpixel layout as it is no longer needed. 11 12 * fast/sub-pixel/float-containing-block-with-margin-expected.html: Added. 13 * fast/sub-pixel/float-containing-block-with-margin.html: Added. 14 * fast/sub-pixel/float-with-right-margin-zoom-expected.txt: Added. 15 * fast/sub-pixel/float-with-right-margin-zoom.html: Added. 16 * fast/sub-pixel/inline-block-with-padding-expected.txt: Added. 17 * fast/sub-pixel/inline-block-with-padding.html: Added. 18 New tests for wrapping logic. 19 20 * platform/chromium-linux/css2.1/t100801-c544-valgn-03-d-agi-expected.png: 21 * platform/chromium-linux/css2.1/t100801-c544-valgn-03-d-agi-expected.txt: 22 * platform/chromium-linux/fast/line-grid/line-align-left-edges-expected.png: 23 * platform/chromium-linux/fast/line-grid/line-grid-contains-value-expected.png: 24 * platform/chromium-linux/fast/multicol/float-multicol-expected.png: 25 * platform/chromium-win/fast/events/offsetX-offsetY-expected.txt: 26 * platform/chromium-win/fast/line-grid/line-grid-contains-value-expected.txt: 27 * platform/chromium-win/fast/multicol/float-multicol-expected.txt: 28 Update expectations to match pre-subpixel rendering. 29 30 * platform/chromium/TestExpectations: 31 Mark updated tests as failing on mac and windows temporarily. 32 33 * platform/chromium/fast/dom/elementFromPoint-relative-to-viewport-expected.txt: 34 Remove special casing for subpixel layout as it is no longer needed. 35 36 * platform/chromium/fast/line-grid/line-align-left-edges-expected.txt: 37 Update expectations to match pre-subpixel rendering. 38 39 * platform/efl/Skipped: 40 * platform/gtk-wk2/Skipped: 41 * platform/mac-lion/Skipped: 42 * platform/mac-snowleopard/Skipped: 43 * platform/mac-wk2/Skipped: 44 * platform/mac/Skipped: 45 * platform/qt-4.8/Skipped: 46 * platform/qt/Skipped: 47 * platform/win-wk2/Skipped: 48 * platform/win-xp/Skipped: 49 * platform/win/Skipped: 50 * platform/wincairo/Skipped: 51 * platform/wk2/Skipped: 52 Skip new sub-pixel tests on platforms that does not enable sub-pixel layout. 53 1 54 2012-06-04 Tony Chang <tony@chromium.org> 2 55 -
trunk/LayoutTests/fast/dom/elementFromPoint-relative-to-viewport.html
r117815 r119456 29 29 <div id="test-offscreen" class="test"></div> 30 30 <div class="pusher">This box is here to create even more scrollbars!</div> 31 <div id="subpixel-test"></div>32 31 </div> 33 32 <p id="description"></p> 34 33 <div id="console"></div> 35 34 <script> 36 var r = document.getElementById('subpixel-test').getBoundingClientRect();37 var hasSubpixelSupport = r.right - r.left == 4.5;38 39 35 window.onclick = function(e) 40 36 { … … 88 84 89 85 shouldBe(unscrolledBox, "'0'"); 90 shouldBe(scrolledDownBox, hasSubpixelSupport && hasZoom ? "'4'" :"'5'");86 shouldBe(scrolledDownBox, "'5'"); 91 87 shouldBe(scrolledRightBox, "'3'"); 92 shouldBe(scrolledDownAndRightBox, hasSubpixelSupport && hasZoom ? "'7'" :"'8'");88 shouldBe(scrolledDownAndRightBox, "'8'"); 93 89 } 94 90 -
trunk/LayoutTests/fast/events/offsetX-offsetY.html
r117815 r119456 24 24 function test() 25 25 { 26 var r = document.getElementById('subpixel-test').getBoundingClientRect();27 var hasSubpixelSupport = r.right - r.left == 4.5;28 29 26 // Scroll so that frame view offsets are non-zero 30 27 window.scrollTo(20, 100); … … 41 38 dispatchEvent(410, 30, 'fixed-box', 10, 10); 42 39 dispatchEvent(36, 272, 'with-bordertopextra', 4, 4); 43 dispatchEvent(639, 207, 'in-columns', hasSubpixelSupport ? 34 :35, 5);40 dispatchEvent(639, 207, 'in-columns', 35, 5); 44 41 dispatchEvent(563, 410, 'inside-overflow', 7, 6); 45 42 dispatchEvent(112, 369, 'transformed', 11, 16); … … 185 182 /* -webkit-transform: rotate(10deg);*/ 186 183 } 187 188 #subpixel-test {189 width: 4.5px;190 }191 184 </style> 192 185 </head> … … 230 223 <div id="results"></div> 231 224 <div id="mousepos"></div> 232 <div id="subpixel-test"></div>233 225 234 226 </body> -
trunk/LayoutTests/platform/chromium-linux/css2.1/t100801-c544-valgn-03-d-agi-expected.txt
r117821 r119456 70 70 text run at (641,105) width 15: " " 71 71 RenderImage {IMG} at (656,104) size 15x15 72 RenderText {#text} at (671,105) size 15x16 73 text run at (671,105) width 15: " " 74 RenderInline {BIG} at (0,0) size 60x21 [color=#C0C0C0] 75 RenderText {#text} at (686,101) size 60x21 76 text run at (686,101) width 60: "xxx" 72 77 RenderText {#text} at (0,0) size 0x0 73 RenderInline {BIG} at (0,0) size 60x21 [color=#C0C0C0] 74 RenderText {#text} at (9,171) size 60x21 75 text run at (9,171) width 60: "xxx" 76 RenderText {#text} at (69,175) size 15x16 77 text run at (69,175) width 15: " " 78 RenderImage {IMG} at (84,136) size 90x91 79 RenderText {#text} at (174,175) size 60x16 80 text run at (174,175) width 15: " " 81 text run at (189,175) width 45: "\x{C9}\x{C9}\x{C9}" 78 RenderImage {IMG} at (9,136) size 90x91 79 RenderText {#text} at (99,175) size 60x16 80 text run at (99,175) width 15: " " 81 text run at (114,175) width 45: "\x{C9}\x{C9}\x{C9}" -
trunk/LayoutTests/platform/chromium-win/fast/events/offsetX-offsetY-expected.txt
r117821 r119456 19 19 PASS: event at (410, 30) hit fixed-box at offset (10, 10) 20 20 FAIL: event at (36, 272) expected to hit with-bordertopextra at (4, 4) but hit filler at (56, 372) 21 PASS: event at (639, 207) hit in-columns at offset (34, 5)21 FAIL: event at (639, 207) expected to hit in-columns at (35, 5) but hit in-columns at (34, 5) 22 22 FAIL: event at (563, 410) expected to hit inside-overflow at (7, 6) but hit overflow-contents at (163, 112) 23 23 FAIL: event at (112, 369) expected to hit transformed at (11, 16) but hit transformed at (7, 2) -
trunk/LayoutTests/platform/chromium-win/fast/line-grid/line-grid-contains-value-expected.txt
r107109 r119456 35 35 text run at (0,15) width 587: "This header should be centered" 36 36 text run at (0,101) width 303: "in the grid lines." 37 RenderBlock {DIV} at (10,16 7) size 600x13837 RenderBlock {DIV} at (10,166) size 600x139 38 38 RenderText {#text} at (0,36) size 104x15 39 39 text run at (0,36) width 104: "This text should snap" -
trunk/LayoutTests/platform/chromium-win/fast/multicol/float-multicol-expected.txt
r117821 r119456 137 137 text run at (526,80) width 44: "please " 138 138 text run at (570,80) width 60: "turn it on" 139 RenderText {#text} at (432,100) size 21 9x159139 RenderText {#text} at (432,100) size 214x159 140 140 text run at (432,100) width 214: "when it asks. Talkback reports give" 141 141 text run at (432,120) width 136: "us really valuable data " … … 144 144 text run at (432,160) width 30: "how " 145 145 text run at (462,160) width 178: "often people are encountering" 146 text run at (432,180) width 219: "them. And all you have to do is click"147 text run at (432,200) width 42: "\"OK\". "148 text run at ( 474,200) width 151: "If you find something you"149 text run at (432,220) width 2 17: "think is a bug, check to see if it's not"150 text run at (432,240) width 48: "already "146 text run at (432,180) width 187: "them. And all you have to do is" 147 text run at (432,200) width 74: "click \"OK\". " 148 text run at (506,200) width 125: "If you find something" 149 text run at (432,220) width 200: "you think is a bug, check to see if" 150 text run at (432,240) width 91: "it's not already " 151 151 RenderInline {A} at (0,0) size 79x19 [color=#0000EE] 152 RenderText {#text} at ( 480,240) size 79x19153 text run at ( 480,240) width 79: "known about"154 RenderText {#text} at ( 559,240) size 186x39155 text run at ( 559,240) width 59: ", and then"156 text run at (432,260) width 42: "please "157 text run at ( 474,260) width 63: "follow the "152 RenderText {#text} at (523,240) size 79x19 153 text run at (523,240) width 79: "known about" 154 RenderText {#text} at (602,240) size 200x39 155 text run at (602,240) width 30: ", and" 156 text run at (432,260) width 71: "then please " 157 text run at (503,260) width 63: "follow the " 158 158 RenderInline {A} at (0,0) size 157x19 [color=#0000EE] 159 RenderText {#text} at (5 37,260) size 157x19160 text run at (5 37,260) width 157: "bug submission procedure"161 RenderText {#text} at ( 694,260) size 4x19162 text run at ( 694,260) width 4: "."159 RenderText {#text} at (566,260) size 157x19 160 text run at (566,260) width 157: "bug submission procedure" 161 RenderText {#text} at (723,260) size 4x19 162 text run at (723,260) width 4: "." 163 163 RenderBlock (floating) {DIV} at (472,332) size 79x412 [bgcolor=#008000] 164 164 RenderBlock {P} at (0,16) size 78x20 … … 209 209 RenderText {#text} at (620,0) size 29x19 210 210 text run at (620,0) width 29: "page" 211 RenderText {#text} at (649,0) size 21 9x199211 RenderText {#text} at (649,0) size 218x199 212 212 text run at (649,0) width 4: " " 213 213 text run at (653,0) width 75: "dedicated to" 214 214 text run at (510,20) width 202: "ways to get involved with helping." 215 215 text run at (510,40) width 122: "This doesn't involve " 216 text run at (632,40) width 97: "knowing how to"217 text run at (510,60) width 213: " code, although a little knowledge of"218 text run at (510,80) width 1 45: "HTML is helpful. Being "219 text run at (6 55,80) width 50: "involved"216 text run at (632,40) width 81: "knowing how" 217 text run at (510,60) width 213: "to code, although a little knowledge" 218 text run at (510,80) width 161: "of HTML is helpful. Being " 219 text run at (671,80) width 50: "involved" 220 220 text run at (510,100) width 69: "with QA is " 221 221 text run at (579,100) width 147: "good for people wanting" -
trunk/LayoutTests/platform/chromium/TestExpectations
r119406 r119456 3799 3799 3800 3800 BUGWK88131 DEBUG : fast/dom/HTMLMeterElement/meter-element-crash.html = PASS TEXT 3801 3802 // Temporary until I get a chance to rebaseline for mac and windows. 3803 BUG_eae WIN MAC : css2.1/t100801-c544-valgn-03-d-agi.html = PASS FAIL 3804 BUG_eae WIN MAC : fast/dom/elementFromPoint-relative-to-viewport.html = PASS FAIL 3805 BUG_eae WIN MAC : fast/forms/001.html = PASS FAIL 3806 BUG_eae WIN MAC : fast/inline/inline-box-background-long-image.html = PASS FAIL 3807 BUG_eae WIN MAC : fast/inline/inline-box-background-repeat-x.html = PASS FAIL 3808 BUG_eae WIN MAC : fast/inline/inline-box-background-repeat-y.html = PASS FAIL 3809 BUG_eae WIN MAC : fast/inline/inline-box-background.html = PASS FAIL 3810 BUG_eae WIN MAC : fast/line-grid/line-align-left-edges.html = PASS FAIL 3811 BUG_eae WIN MAC : fast/line-grid/line-grid-contains-value.html = PASS FAIL 3812 BUG_eae WIN MAC : fast/replaced/width100percent-checkbox.html = PASS FAIL 3813 BUG_eae WIN MAC : fast/replaced/width100percent-radio.html = PASS FAIL 3814 BUG_eae WIN MAC : tables/mozilla/bugs/bug1318.html = PASS FAIL 3815 BUG_eae WIN MAC : tables/mozilla/bugs/bug4527.html = PASS FAIL -
trunk/LayoutTests/platform/chromium/fast/dom/elementFromPoint-relative-to-viewport-expected.txt
r117903 r119456 13 13 PASS scrolledDownAndRightBoxOffscreen is '8' 14 14 PASS unscrolledBoxInitial is '0' 15 PASS scrolledDownBoxInitial is ' 4'15 PASS scrolledDownBoxInitial is '5' 16 16 PASS scrolledRightBoxInitial is '3' 17 PASS scrolledDownAndRightBoxInitial is ' 7'17 PASS scrolledDownAndRightBoxInitial is '8' 18 18 PASS successfullyParsed is true 19 19 -
trunk/LayoutTests/platform/chromium/fast/line-grid/line-align-left-edges-expected.txt
r117903 r119456 10 10 text run at (0,3) width 312: "X X X X X X X" 11 11 RenderBlock {DIV} at (37,67) size 710x37 [border: (3px solid #000000)] 12 RenderText {#text} at (1 0,6) size 264x2413 text run at (1 0,6) width 264: "X X X X X X"12 RenderText {#text} at (11,6) size 264x24 13 text run at (11,6) width 264: "X X X X X X" 14 14 RenderBlock (floating) {DIV} at (0,141) size 78x78 [bgcolor=#FFFF00] 15 15 RenderBlock (anonymous) at (0,141) size 784x60 … … 22 22 layer at (181,308) size 300x30 23 23 RenderBlock (positioned) {DIV} at (172,300) size 301x30 [bgcolor=#DDDDDD] 24 RenderText {#text} at ( 19,3) size 120x2425 text run at ( 19,3) width 120: "X X X"24 RenderText {#text} at (20,3) size 120x24 25 text run at (20,3) width 120: "X X X" -
trunk/LayoutTests/platform/efl/Skipped
r119377 r119456 1172 1172 fast/sub-pixel/client-rect-has-subpixel-precision.html 1173 1173 fast/sub-pixel/client-width-height-snapping.html 1174 fast/sub-pixel/float-containing-block-with-margin.html 1175 fast/sub-pixel/float-with-right-margin-zoom.html 1174 1176 fast/sub-pixel/float-wrap-with-subpixel-top.html 1175 1177 fast/sub-pixel/inline-block-with-margin.html 1178 fast/sub-pixel/inline-block-with-padding.html 1176 1179 fast/sub-pixel/layout-boxes-with-zoom.html 1177 1180 fast/sub-pixel/size-of-box-with-zoom.html -
trunk/LayoutTests/platform/gtk-wk2/Skipped
r118978 r119456 343 343 fast/sub-pixel/client-rect-has-subpixel-precision.html 344 344 fast/sub-pixel/client-width-height-snapping.html 345 fast/sub-pixel/float-containing-block-with-margin.html 346 fast/sub-pixel/float-with-right-margin-zoom.html 345 347 fast/sub-pixel/float-wrap-with-subpixel-top.html 346 348 fast/sub-pixel/inline-block-with-margin.html 349 fast/sub-pixel/inline-block-with-padding.html 347 350 fast/sub-pixel/layout-boxes-with-zoom.html 348 351 fast/sub-pixel/size-of-box-with-zoom.html -
trunk/LayoutTests/platform/mac-lion/Skipped
r118978 r119456 101 101 fast/sub-pixel/client-rect-has-subpixel-precision.html 102 102 fast/sub-pixel/client-width-height-snapping.html 103 fast/sub-pixel/float-containing-block-with-margin.html 104 fast/sub-pixel/float-with-right-margin-zoom.html 103 105 fast/sub-pixel/float-wrap-with-subpixel-top.html 104 106 fast/sub-pixel/inline-block-with-margin.html 107 fast/sub-pixel/inline-block-with-padding.html 105 108 fast/sub-pixel/layout-boxes-with-zoom.html 106 109 fast/sub-pixel/size-of-box-with-zoom.html -
trunk/LayoutTests/platform/mac-snowleopard/Skipped
r118978 r119456 199 199 fast/sub-pixel/client-rect-has-subpixel-precision.html 200 200 fast/sub-pixel/client-width-height-snapping.html 201 fast/sub-pixel/float-containing-block-with-margin.html 202 fast/sub-pixel/float-with-right-margin-zoom.html 201 203 fast/sub-pixel/float-wrap-with-subpixel-top.html 202 204 fast/sub-pixel/inline-block-with-margin.html 205 fast/sub-pixel/inline-block-with-padding.html 203 206 fast/sub-pixel/layout-boxes-with-zoom.html 204 207 fast/sub-pixel/size-of-box-with-zoom.html -
trunk/LayoutTests/platform/mac-wk2/Skipped
r119007 r119456 205 205 fast/sub-pixel/client-rect-has-subpixel-precision.html 206 206 fast/sub-pixel/client-width-height-snapping.html 207 fast/sub-pixel/float-containing-block-with-margin.html 208 fast/sub-pixel/float-with-right-margin-zoom.html 207 209 fast/sub-pixel/float-wrap-with-subpixel-top.html 208 210 fast/sub-pixel/inline-block-with-margin.html 211 fast/sub-pixel/inline-block-with-padding.html 209 212 fast/sub-pixel/layout-boxes-with-zoom.html 210 213 fast/sub-pixel/size-of-box-with-zoom.html -
trunk/LayoutTests/platform/mac/Skipped
r119388 r119456 801 801 fast/sub-pixel/client-rect-has-subpixel-precision.html 802 802 fast/sub-pixel/client-width-height-snapping.html 803 fast/sub-pixel/float-containing-block-with-margin.html 804 fast/sub-pixel/float-with-right-margin-zoom.html 803 805 fast/sub-pixel/float-wrap-with-subpixel-top.html 804 806 fast/sub-pixel/inline-block-with-margin.html 807 fast/sub-pixel/inline-block-with-padding.html 805 808 fast/sub-pixel/layout-boxes-with-zoom.html 806 809 fast/sub-pixel/size-of-box-with-zoom.html -
trunk/LayoutTests/platform/qt-4.8/Skipped
r119323 r119456 81 81 fast/sub-pixel/client-rect-has-subpixel-precision.html 82 82 fast/sub-pixel/client-width-height-snapping.html 83 fast/sub-pixel/float-containing-block-with-margin.html 84 fast/sub-pixel/float-with-right-margin-zoom.html 83 85 fast/sub-pixel/float-wrap-with-subpixel-top.html 84 86 fast/sub-pixel/inline-block-with-margin.html 87 fast/sub-pixel/inline-block-with-padding.html 85 88 fast/sub-pixel/layout-boxes-with-zoom.html 86 89 fast/sub-pixel/size-of-box-with-zoom.html -
trunk/LayoutTests/platform/qt/Skipped
r119388 r119456 217 217 fast/sub-pixel/client-rect-has-subpixel-precision.html 218 218 fast/sub-pixel/client-width-height-snapping.html 219 fast/sub-pixel/float-containing-block-with-margin.html 220 fast/sub-pixel/float-with-right-margin-zoom.html 219 221 fast/sub-pixel/float-wrap-with-subpixel-top.html 220 222 fast/sub-pixel/inline-block-with-margin.html 223 fast/sub-pixel/inline-block-with-padding.html 221 224 fast/sub-pixel/layout-boxes-with-zoom.html 222 225 fast/sub-pixel/size-of-box-with-zoom.html -
trunk/LayoutTests/platform/win-wk2/Skipped
r118978 r119456 938 938 fast/sub-pixel/client-rect-has-subpixel-precision.html 939 939 fast/sub-pixel/client-width-height-snapping.html 940 fast/sub-pixel/float-containing-block-with-margin.html 941 fast/sub-pixel/float-with-right-margin-zoom.html 940 942 fast/sub-pixel/float-wrap-with-subpixel-top.html 941 943 fast/sub-pixel/inline-block-with-margin.html 944 fast/sub-pixel/inline-block-with-padding.html 942 945 fast/sub-pixel/layout-boxes-with-zoom.html 943 946 fast/sub-pixel/size-of-box-with-zoom.html -
trunk/LayoutTests/platform/win-xp/Skipped
r118978 r119456 38 38 fast/sub-pixel/client-rect-has-subpixel-precision.html 39 39 fast/sub-pixel/client-width-height-snapping.html 40 fast/sub-pixel/float-containing-block-with-margin.html 41 fast/sub-pixel/float-with-right-margin-zoom.html 40 42 fast/sub-pixel/float-wrap-with-subpixel-top.html 41 43 fast/sub-pixel/inline-block-with-margin.html 44 fast/sub-pixel/inline-block-with-padding.html 42 45 fast/sub-pixel/layout-boxes-with-zoom.html 43 46 fast/sub-pixel/size-of-box-with-zoom.html -
trunk/LayoutTests/platform/win/Skipped
r119450 r119456 1740 1740 fast/sub-pixel/client-rect-has-subpixel-precision.html 1741 1741 fast/sub-pixel/client-width-height-snapping.html 1742 fast/sub-pixel/float-containing-block-with-margin.html 1743 fast/sub-pixel/float-with-right-margin-zoom.html 1742 1744 fast/sub-pixel/float-wrap-with-subpixel-top.html 1743 1745 fast/sub-pixel/inline-block-with-margin.html 1746 fast/sub-pixel/inline-block-with-padding.html 1744 1747 fast/sub-pixel/layout-boxes-with-zoom.html 1745 1748 fast/sub-pixel/size-of-box-with-zoom.html -
trunk/LayoutTests/platform/wincairo/Skipped
r119388 r119456 2089 2089 fast/sub-pixel/client-rect-has-subpixel-precision.html 2090 2090 fast/sub-pixel/client-width-height-snapping.html 2091 fast/sub-pixel/float-containing-block-with-margin.html 2092 fast/sub-pixel/float-with-right-margin-zoom.html 2091 2093 fast/sub-pixel/float-wrap-with-subpixel-top.html 2092 2094 fast/sub-pixel/inline-block-with-margin.html 2095 fast/sub-pixel/inline-block-with-padding.html 2093 2096 fast/sub-pixel/layout-boxes-with-zoom.html 2094 2097 fast/sub-pixel/size-of-box-with-zoom.html -
trunk/LayoutTests/platform/wk2/Skipped
r118978 r119456 88 88 fast/sub-pixel/client-rect-has-subpixel-precision.html 89 89 fast/sub-pixel/client-width-height-snapping.html 90 fast/sub-pixel/float-containing-block-with-margin.html 91 fast/sub-pixel/float-with-right-margin-zoom.html 90 92 fast/sub-pixel/float-wrap-with-subpixel-top.html 91 93 fast/sub-pixel/inline-block-with-margin.html 94 fast/sub-pixel/inline-block-with-padding.html 92 95 fast/sub-pixel/layout-boxes-with-zoom.html 93 96 fast/sub-pixel/size-of-box-with-zoom.html -
trunk/Source/WebCore/ChangeLog
r119455 r119456 1 2012-06-04 Emil A Eklund <eae@chromium.org> and Levi Weintraub <leviw@chromium.org> 2 3 Add missing FractionalLayoutUnit += operator and move LineWidth to use all floats 4 https://bugs.webkit.org/show_bug.cgi?id=88259 5 6 Reviewed by Ryosuke Niwa. 7 8 Fix two rounding bugs in LineLayout and RenderBlock that caused inlines 9 and floats to wrap incorrectly. 10 11 Tests: fast/sub-pixel/float-containing-block-with-margin.html 12 fast/sub-pixel/float-with-right-margin-zoom.html 13 fast/sub-pixel/inline-block-with-padding.html 14 15 * platform/FractionalLayoutUnit.h: 16 (WebCore::operator+=): 17 Add missing float version of += operator thus avoiding a silent cast to 18 int loosing precision. 19 20 * rendering/RenderBlockLineLayout.cpp: 21 (WebCore::LineWidth::computeAvailableWidthFromLeftAndRight): 22 (WebCore::LineWidth::updateAvailableWidth): 23 Change LineWidth left/right to floating point and instead of rounding the 24 left and right edge separately. 25 26 * rendering/RenderFlexibleBox.cpp: 27 (WebCore::RenderFlexibleBox::resolveFlexibleLengths): 28 Use explicit cast to avoid compiler ambiguity warning. 29 1 30 2012-06-04 Tony Chang <tony@chromium.org> 2 31 -
trunk/Source/WebCore/platform/FractionalLayoutUnit.h
r116905 r119456 554 554 } 555 555 556 inline FractionalLayoutUnit& operator+=(FractionalLayoutUnit& a, float b) 557 { 558 a = a + b; 559 return a; 560 } 561 556 562 inline float& operator+=(float& a, const FractionalLayoutUnit& b) 557 563 { -
trunk/Source/WebCore/rendering/RenderBlockLineLayout.cpp
r118420 r119456 99 99 void computeAvailableWidthFromLeftAndRight() 100 100 { 101 m_availableWidth = max(0 , m_right - m_left) + m_overhangWidth;101 m_availableWidth = max(0.0f, m_right - m_left) + m_overhangWidth; 102 102 } 103 103 … … 107 107 float m_committedWidth; 108 108 float m_overhangWidth; // The amount by which |m_availableWidth| has been inflated to account for possible contraction due to ruby overhang. 109 int m_left;110 int m_right;109 float m_left; 110 float m_right; 111 111 float m_availableWidth; 112 112 bool m_isFirstLine; … … 116 116 { 117 117 LayoutUnit height = m_block->logicalHeight(); 118 m_left = m_block-> pixelSnappedLogicalLeftOffsetForLine(height, m_isFirstLine);119 m_right = m_block-> pixelSnappedLogicalRightOffsetForLine(height, m_isFirstLine);118 m_left = m_block->logicalLeftOffsetForLine(height, m_isFirstLine); 119 m_right = m_block->logicalRightOffsetForLine(height, m_isFirstLine); 120 120 121 121 computeAvailableWidthFromLeftAndRight(); -
trunk/Source/WebCore/rendering/RenderFlexibleBox.cpp
r119455 r119456 866 866 LayoutUnit childSize = preferredChildSize; 867 867 if (availableFreeSpace > 0 && totalPositiveFlexibility > 0 && flexSign == PositiveFlexibility && isfinite(totalPositiveFlexibility)) 868 childSize += lroundf(availableFreeSpace * child->style()->positiveFlex() / totalPositiveFlexibility);868 childSize += static_cast<int>(lroundf(availableFreeSpace * child->style()->positiveFlex() / totalPositiveFlexibility)); 869 869 else if (availableFreeSpace < 0 && totalWeightedNegativeFlexibility > 0 && flexSign == NegativeFlexibility && isfinite(totalWeightedNegativeFlexibility)) 870 childSize += lroundf(availableFreeSpace * child->style()->negativeFlex() * preferredChildSize / totalWeightedNegativeFlexibility);870 childSize += static_cast<int>(lroundf(availableFreeSpace * child->style()->negativeFlex() * preferredChildSize / totalWeightedNegativeFlexibility)); 871 871 872 872 LayoutUnit adjustedChildSize = adjustChildSizeForMinAndMax(child, childSize, flexboxAvailableContentExtent);
Note:
See TracChangeset
for help on using the changeset viewer.