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

Issue 2615713007: Change LayoutUnit to use saturated_cast (Closed)

Created:
3 years, 11 months ago by eae
Modified:
3 years, 10 months ago
Reviewers:
pdr.
CC:
blink-reviews, chromium-reviews, kinuko+watch
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change LayoutUnit to use saturated_cast Change the LayoutUnit implementation to use base::saturated_cast instead of WTF ::clampTo as the former is much more efficient. Also removes clampToLayoutUnit. R=pdr@chromium.org Review-Url: https://codereview.chromium.org/2615713007 Cr-Commit-Position: refs/heads/master@{#443367} Committed: https://chromium.googlesource.com/chromium/src/+/031e22e5ca256199390180d5ffbb9cf182c36664

Patch Set 1 #

Patch Set 2 : Fix includes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -24 lines) Patch
M third_party/WebKit/Source/platform/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/LayoutUnit.h View 1 5 chunks +16 lines, -24 lines 0 comments Download

Messages

Total messages: 27 (17 generated)
eae
3 years, 11 months ago (2017-01-10 17:32:17 UTC) #11
eae
3 years, 11 months ago (2017-01-11 20:26:48 UTC) #14
pdr.
LGTM Can you check https://chromeperf.appspot.com/group_report?rev=[change #] when this lands? It'll be interesting if we can ...
3 years, 11 months ago (2017-01-11 21:35:37 UTC) #15
eae
On 2017/01/11 21:35:37, pdr. wrote: > LGTM > > Can you check https://chromeperf.appspot.com/group_report?rev=[change #] when ...
3 years, 11 months ago (2017-01-11 21:53:17 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2615713007/20001
3 years, 11 months ago (2017-01-11 21:54:34 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/362203)
3 years, 11 months ago (2017-01-12 01:26:41 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2615713007/20001
3 years, 11 months ago (2017-01-12 19:22:14 UTC) #22
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/chromium/src/+/031e22e5ca256199390180d5ffbb9cf182c36664
3 years, 11 months ago (2017-01-12 21:34:30 UTC) #25
svillar
On 2017/01/12 21:34:30, commit-bot: I haz the power wrote: > Committed patchset #2 (id:20001) as ...
3 years, 10 months ago (2017-02-20 09:52:41 UTC) #26
eae
3 years, 10 months ago (2017-02-21 19:24:25 UTC) #27
Message was sent while issue was closed.
On 2017/02/20 09:52:41, svillar wrote:
> On 2017/01/12 21:34:30, commit-bot: I haz the power wrote:
> > Committed patchset #2 (id:20001) as
> >
>
https://chromium.googlesource.com/chromium/src/+/031e22e5ca256199390180d5ffbb...
> 
> BTW this is not neutral as it implies changes in behaviour in some cases. For
> example when the passed value overflows clampTo() clamps it to
> numeric_limits::min numeric_limits::max. Nevertheless saturated_cast as stated
> by the doc translates NaN to 0.

Indeed, thanks for pointing that out Svillar!

Powered by Google App Engine
This is Rietveld 408576698