Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(154)

Issue 14959014: [CSS Exclusions] Programmatic layout tests fail when subpixel layout is disabled (Closed)

Created:
7 years, 7 months ago by Hans Muller
Modified:
7 years, 6 months ago
CC:
blink-reviews, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

First round of changes to correct exclusion tests that started failing when subpixel layout was turned off, and to correct some problems that disabling subpixel layout exposed. This set of changes just corrects four tests. It also revises the subpixel-utils code to bring it into line with the most recent LayoutUnit et al changes and to simplify its use a little. The ExclusionPolygon appendArc() method was corrected, so that the 3rd of 5 additional vertices is in the center of the arc. The firstIncludedIntervalLogicalTop() methods now use ceiledLayoutUnit() to convert a float to a LayoutUnit within the shape. BUG=237568 R=leviw@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=151323

Patch Set 1 #

Total comments: 7

Patch Set 2 : Updated per review feedback. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -91 lines) Patch
M LayoutTests/fast/exclusions/resources/rounded-rectangle.js View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/exclusions/resources/simple-polygon.js View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/exclusions/resources/subpixel-utils.js View 1 1 chunk +19 lines, -21 lines 0 comments Download
M LayoutTests/fast/exclusions/shape-inside/shape-inside-polygon-layout.html View 1 2 chunks +13 lines, -6 lines 0 comments Download
M LayoutTests/fast/exclusions/shape-inside/shape-inside-polygon-layout-expected.txt View 1 chunk +0 lines, -4 lines 0 comments Download
M LayoutTests/fast/exclusions/shape-inside/shape-inside-polygon-padding-003.html View 3 chunks +5 lines, -2 lines 0 comments Download
M LayoutTests/fast/exclusions/shape-inside/shape-inside-polygon-padding-003-expected.txt View 1 chunk +0 lines, -2 lines 0 comments Download
M LayoutTests/fast/exclusions/shape-inside/shape-inside-rounded-rectangle-fit-002-expected.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/exclusions/shape-outside-floats/shape-outside-floats-diamond-margin-polygon.html View 4 chunks +16 lines, -13 lines 0 comments Download
M LayoutTests/fast/exclusions/shape-outside-floats/shape-outside-floats-diamond-margin-polygon-expected.txt View 2 chunks +7 lines, -12 lines 0 comments Download
M LayoutTests/fast/exclusions/shape-outside-floats/shape-outside-floats-ellipse-margin-left.html View 2 chunks +7 lines, -5 lines 0 comments Download
M LayoutTests/fast/exclusions/shape-outside-floats/shape-outside-floats-ellipse-margin-left-expected.txt View 1 chunk +4 lines, -6 lines 0 comments Download
M LayoutTests/fast/exclusions/shape-outside-floats/shape-outside-floats-ellipse-margin-right.html View 2 chunks +7 lines, -5 lines 0 comments Download
M LayoutTests/fast/exclusions/shape-outside-floats/shape-outside-floats-ellipse-margin-right-expected.txt View 1 chunk +4 lines, -6 lines 0 comments Download
M Source/core/rendering/exclusions/ExclusionPolygon.cpp View 1 2 chunks +4 lines, -5 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
Hans Muller
When subpixel layout was disabled by default for webkit/mac, about a dozen exclusions tests failed. ...
7 years, 7 months ago (2013-05-15 01:40:38 UTC) #1
Hans Muller
Welcome back from Google Input Output. I'd appreciate a review when you have a chance.
7 years, 7 months ago (2013-05-20 16:19:19 UTC) #2
eseidel
Definitely a levi/emil review. I don't believe we ever plan to support non-subpixel layout in ...
7 years, 7 months ago (2013-05-20 19:36:30 UTC) #3
leviw_travelin_and_unemployed
https://codereview.chromium.org/14959014/diff/1/Source/core/rendering/exclusions/ExclusionPolygon.cpp File Source/core/rendering/exclusions/ExclusionPolygon.cpp (right): https://codereview.chromium.org/14959014/diff/1/Source/core/rendering/exclusions/ExclusionPolygon.cpp#newcode122 Source/core/rendering/exclusions/ExclusionPolygon.cpp:122: const float arcSegmentCount = 6; // An even number ...
7 years, 7 months ago (2013-05-21 19:32:05 UTC) #4
Hans Muller
On 2013/05/21 19:32:05, Levi wrote: > https://codereview.chromium.org/14959014/diff/1/Source/core/rendering/exclusions/ExclusionPolygon.cpp > File Source/core/rendering/exclusions/ExclusionPolygon.cpp (right): > > https://codereview.chromium.org/14959014/diff/1/Source/core/rendering/exclusions/ExclusionPolygon.cpp#newcode122 > ...
7 years, 7 months ago (2013-05-21 22:03:30 UTC) #5
Hans Muller
Sorry about the previous reply. May actual reply starts towards the middle. Cut and pasteO.
7 years, 7 months ago (2013-05-21 22:04:47 UTC) #6
leviw_travelin_and_unemployed
https://codereview.chromium.org/14959014/diff/1/LayoutTests/fast/exclusions/resources/subpixel-utils.js File LayoutTests/fast/exclusions/resources/subpixel-utils.js (right): https://codereview.chromium.org/14959014/diff/1/LayoutTests/fast/exclusions/resources/subpixel-utils.js#newcode2 LayoutTests/fast/exclusions/resources/subpixel-utils.js:2: var enabled = undefined; I understand you're doing this ...
7 years, 7 months ago (2013-05-21 22:21:56 UTC) #7
Hans Muller
> https://codereview.chromium.org/14959014/diff/1/LayoutTests/fast/exclusions/resources/subpixel-utils.js#newcode22 > LayoutTests/fast/exclusions/resources/subpixel-utils.js:22: > ceilSnapToLayoutUnit: function(f) { > I find this name confusing, as ...
7 years, 7 months ago (2013-05-21 22:30:00 UTC) #8
leviw_travelin_and_unemployed
Thanks. lgtm.
7 years, 7 months ago (2013-05-23 17:56:55 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hmuller@adobe.com/14959014/14001
7 years, 7 months ago (2013-05-23 18:00:59 UTC) #10
commit-bot: I haz the power
Retried try job too often on mac_layout_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_layout_rel&number=7041
7 years, 7 months ago (2013-05-23 19:28:34 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hmuller@adobe.com/14959014/14001
7 years, 7 months ago (2013-05-23 21:37:49 UTC) #12
commit-bot: I haz the power
Retried try job too often on mac_layout_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_layout_rel&number=7113
7 years, 7 months ago (2013-05-23 23:15:51 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hmuller@adobe.com/14959014/14001
7 years, 7 months ago (2013-05-24 01:00:48 UTC) #14
commit-bot: I haz the power
Retried try job too often on linux_layout_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_layout_rel&number=9797
7 years, 7 months ago (2013-05-24 02:16:48 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hmuller@adobe.com/14959014/14001
7 years, 7 months ago (2013-05-24 15:45:12 UTC) #16
commit-bot: I haz the power
Retried try job too often on linux_layout_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_layout_rel&number=10092
7 years, 7 months ago (2013-05-24 17:03:23 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hmuller@adobe.com/14959014/14001
7 years, 7 months ago (2013-05-24 17:19:10 UTC) #18
commit-bot: I haz the power
Retried try job too often on linux_layout_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_layout_rel&number=10123
7 years, 7 months ago (2013-05-24 18:18:29 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hmuller@adobe.com/14959014/14001
7 years, 7 months ago (2013-05-24 18:23:17 UTC) #20
commit-bot: I haz the power
Retried try job too often on win_layout_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_layout_rel&number=6569
7 years, 7 months ago (2013-05-24 22:22:13 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hmuller@adobe.com/14959014/14001
7 years, 7 months ago (2013-05-24 22:49:20 UTC) #22
commit-bot: I haz the power
Retried try job too often on win_layout_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_layout_rel&number=6623
7 years, 7 months ago (2013-05-25 03:04:38 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hmuller@adobe.com/14959014/14001
7 years, 6 months ago (2013-05-28 15:11:59 UTC) #24
commit-bot: I haz the power
Retried try job too often on win_layout_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_layout_rel&number=7148
7 years, 6 months ago (2013-05-28 17:00:19 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hmuller@adobe.com/14959014/14001
7 years, 6 months ago (2013-05-28 18:42:58 UTC) #26
commit-bot: I haz the power
Retried try job too often on linux_layout_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_layout_rel&number=10566
7 years, 6 months ago (2013-05-28 19:33:01 UTC) #27
Hans Muller
7 years, 6 months ago (2013-05-28 22:44:48 UTC) #28
Message was sent while issue was closed.
Committed patchset #2 manually as r151323 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698