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

Issue 1574933002: Changed type of border-width longhands from unsigned to float. (Closed)

Created:
4 years, 11 months ago by Bugs Nash
Modified:
4 years, 4 months ago
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-layout_chromium.org, blink-reviews-paint_chromium.org, blink-reviews-style_chromium.org, chromium-reviews, dglazkov+blink, dshwang, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, rwlbuis, slimming-paint-reviews_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Changed type of border-width longhands from unsigned to float. An unsigned value for border-width results in the computed style being rounded, where rounding should not occur until the actual value (https://drafts.csswg.org/css-cascade-3/#actual). The unsigned border-widths are being truncated, resulting in a visible one pixel error, e.g. https://jsfiddle.net/0j4wptzt/. This bug is present in chrome and firefox, not in safari and IE. BUG=227192

Patch Set 1 #

Patch Set 2 : Made transitions use fractional border widths, added assert that border widths are positive, and r… #

Total comments: 3

Patch Set 3 : Removed test rebaselines, will add them to TestExpectations instead #

Total comments: 3

Patch Set 4 : Updated as per reviewer comments #

Patch Set 5 : Added trivial tests safe to rebaseline to TestExpectations #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3419 lines, -154 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 4 6 chunks +3284 lines, -39 lines 0 comments Download
M third_party/WebKit/LayoutTests/animations/interpolation/border-width-interpolation.html View 1 2 2 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSProperties.in View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/AnimatedStyleBuilder.cpp View 1 2 3 5 chunks +5 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBox.cpp View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h View 1 2 1 chunk +13 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTable.h View 1 2 1 chunk +8 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTable.cpp View 1 2 4 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTableCell.h View 1 2 3 3 chunks +17 lines, -17 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTableCell.cpp View 1 2 9 chunks +21 lines, -21 lines 0 comments Download
M third_party/WebKit/Source/core/paint/BoxPainter.cpp View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/style/BorderData.h View 2 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/style/BorderValue.h View 2 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/style/CollapsedBorderValue.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/style/ComputedStyle.h View 1 2 3 chunks +32 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/core/style/ComputedStyle.cpp View 1 2 5 chunks +9 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/style/OutlineValue.h View 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 17 (4 generated)
Bugs Nash
This is not completed. Would like a quick once-over to ensure I'm on the right ...
4 years, 11 months ago (2016-01-11 05:53:02 UTC) #2
alancutter (OOO until 2018)
Summary of in person discussion: - We should fix the visual bug in a separate ...
4 years, 11 months ago (2016-01-11 06:19:07 UTC) #3
mstensho (USE GERRIT)
Why not use LayoutUnit instead of float?
4 years, 11 months ago (2016-01-11 10:12:58 UTC) #5
Bugs Nash
On 2016/01/11 at 10:12:58, mstensho wrote: > Why not use LayoutUnit instead of float? What ...
4 years, 11 months ago (2016-01-11 21:56:36 UTC) #6
mstensho (USE GERRIT)
On 2016/01/11 21:56:36, Bugs Nash wrote: > On 2016/01/11 at 10:12:58, mstensho wrote: > > ...
4 years, 11 months ago (2016-01-12 08:04:46 UTC) #8
Bugs Nash
On 2016/01/12 at 08:04:46, mstensho wrote: > On 2016/01/11 21:56:36, Bugs Nash wrote: > > ...
4 years, 11 months ago (2016-01-12 21:49:26 UTC) #9
alancutter (OOO until 2018)
https://codereview.chromium.org/1574933002/diff/20001/third_party/WebKit/Source/core/css/CSSProperties.in File third_party/WebKit/Source/core/css/CSSProperties.in (right): https://codereview.chromium.org/1574933002/diff/20001/third_party/WebKit/Source/core/css/CSSProperties.in#newcode152 third_party/WebKit/Source/core/css/CSSProperties.in:152: border-top-width interpolable, initial=initialBorderWidth, converter=convertLineWidth<float> We should modify convertLineWidth() to ...
4 years, 11 months ago (2016-01-20 06:06:24 UTC) #10
Bugs Nash
Levi can you please have a first parse of this patch? There are >3000 broken ...
4 years, 10 months ago (2016-02-02 01:24:38 UTC) #12
leviw_travelin_and_unemployed
I suspect there are lots of implicit conversions to int going on that you'll still ...
4 years, 10 months ago (2016-02-02 02:20:18 UTC) #13
Bugs Nash
On 2016/02/02 at 02:20:18, leviw wrote: > I suspect there are lots of implicit conversions ...
4 years, 10 months ago (2016-02-02 03:32:17 UTC) #14
alancutter (OOO until 2018)
Replying to remove this CL from my name on the review dashboard, please ignore.
4 years, 9 months ago (2016-03-03 04:39:01 UTC) #15
mstensho (USE GERRIT)
Please continue on this CL or close it.
4 years, 4 months ago (2016-08-09 10:42:49 UTC) #16
Bugs Nash
4 years, 4 months ago (2016-08-09 21:17:24 UTC) #17
Message was sent while issue was closed.
On 2016/08/09 at 10:42:49, mstensho wrote:
> Please continue on this CL or close it.

Closed, thanks for pointing that out

Powered by Google App Engine
This is Rietveld 408576698