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

Issue 2366823003: Use approximation when comparing Length floats in DCHECK (Closed)

Created:
4 years, 3 months ago by alancutter (OOO until 2018)
Modified:
4 years, 3 months ago
CC:
darktears, blink-reviews, blink-reviews-animation_chromium.org, chromium-reviews, Eric Willigers, rjwright, shans
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use approximation when comparing Length floats in DCHECK The original DCHECK was asserting on float equality. This was too strict and was firing for small negligible differences. This change flattens specified Lengths into a single float and compares them with a constant slack allowance. This check is intended to pick up on differences like -5 vs 0 due to different clamping behaviour, small differences in floating point arithmetic is fine. BUG=649525 Committed: https://crrev.com/d932f9ab78a0e790b4228b70a48e4fc6cac31e49 Cr-Commit-Position: refs/heads/master@{#420584}

Patch Set 1 #

Patch Set 2 : Compile and ordering #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -1 line) Patch
M third_party/WebKit/Source/core/animation/CSSLengthInterpolationType.cpp View 1 2 chunks +7 lines, -1 line 0 comments Download

Messages

Total messages: 11 (6 generated)
alancutter (OOO until 2018)
4 years, 3 months ago (2016-09-23 04:24:24 UTC) #2
suzyh_UTC10 (ex-contributor)
lgtm
4 years, 3 months ago (2016-09-23 05:02:54 UTC) #5
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/2366823003/20001
4 years, 3 months ago (2016-09-23 05:10:11 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 3 months ago (2016-09-23 05:41:02 UTC) #9
commit-bot: I haz the power
4 years, 3 months ago (2016-09-23 05:42:47 UTC) #11
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/d932f9ab78a0e790b4228b70a48e4fc6cac31e49
Cr-Commit-Position: refs/heads/master@{#420584}

Powered by Google App Engine
This is Rietveld 408576698