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

Issue 845313010: Allow Length::nonNanCalculatedValue to take a LayoutUnit (Closed)

Created:
5 years, 11 months ago by rwlbuis
Modified:
5 years, 11 months ago
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Allow Length::nonNanCalculatedValue to take a LayoutUnit By allowing Length::nonNanCalculatedValue to take a LayoutUnit parameter, we avoid the possible rounding when minimumValueForLength converted its LayoutUnit to int in the calc() code path. Behavior matches Firefox. BUG=427207, 448796, 251627 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=188981

Patch Set 1 #

Patch Set 2 : Add reftest #

Total comments: 1

Patch Set 3 : Make nonNanCalculatedValue use LayoutUnit #

Total comments: 2

Patch Set 4 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -4 lines) Patch
A LayoutTests/fast/css/calc-rounding.html View 1 2 3 1 chunk +30 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/calc-rounding-expected.txt View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M Source/platform/Length.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/platform/Length.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M Source/platform/LengthFunctions.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 9 (2 generated)
rwlbuis
PTAL
5 years, 11 months ago (2015-01-20 15:42:37 UTC) #2
Julien - ping for review
https://codereview.chromium.org/845313010/diff/20001/Source/platform/LengthFunctions.cpp File Source/platform/LengthFunctions.cpp (right): https://codereview.chromium.org/845313010/diff/20001/Source/platform/LengthFunctions.cpp#newcode74 Source/platform/LengthFunctions.cpp:74: return length.nonNanCalculatedValue(maximumValue.toFloat()); How about we just pass a LayoutUnit ...
5 years, 11 months ago (2015-01-23 10:22:26 UTC) #3
rwlbuis
On 2015/01/23 10:22:26, Julien Chaffraix - CET wrote: > https://codereview.chromium.org/845313010/diff/20001/Source/platform/LengthFunctions.cpp > File Source/platform/LengthFunctions.cpp (right): > ...
5 years, 11 months ago (2015-01-23 16:08:49 UTC) #4
Julien - ping for review
lgtm https://codereview.chromium.org/845313010/diff/40001/LayoutTests/fast/css/calc-rounding.html File LayoutTests/fast/css/calc-rounding.html (right): https://codereview.chromium.org/845313010/diff/40001/LayoutTests/fast/css/calc-rounding.html#newcode21 LayoutTests/fast/css/calc-rounding.html:21: </style> Let's add a description of what this ...
5 years, 11 months ago (2015-01-26 10:55:22 UTC) #5
rwlbuis
On 2015/01/26 10:55:22, Julien Chaffraix - CET wrote: > lgtm > > https://codereview.chromium.org/845313010/diff/40001/LayoutTests/fast/css/calc-rounding.html > File ...
5 years, 11 months ago (2015-01-26 15:40:08 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/845313010/60001
5 years, 11 months ago (2015-01-26 16:53:53 UTC) #8
commit-bot: I haz the power
5 years, 11 months ago (2015-01-26 18:14:39 UTC) #9
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=188981

Powered by Google App Engine
This is Rietveld 408576698