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

Issue 644813005: Floating point MQs should not match. (Closed)

Created:
6 years, 2 months ago by Yoav Weiss
Modified:
6 years, 2 months ago
Reviewers:
rune
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, dglazkov+blink, ed+blinkwatch_opera.com, kenneth.christiansen, rwlbuis, rune+blink
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Floating point MQs should not match. Floating point values inside MQs should not be round down/up to match the integer dimensions of the viewport. That is in order to align our behavior with the way Gecko are doing that. This CL fixes that issue. BUG=422234 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=183563

Patch Set 1 #

Total comments: 2

Patch Set 2 : Added max/min tests #

Total comments: 1

Patch Set 3 : Brought everything back to double. DRYed up computeLength calls. Added tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -17 lines) Patch
M Source/core/css/MediaQueryEvaluator.cpp View 1 2 5 chunks +17 lines, -17 lines 0 comments Download
M Source/core/css/MediaQueryEvaluatorTest.cpp View 1 2 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (2 generated)
Yoav Weiss
As discussed on https://codereview.chromium.org/639783002/ , floating point MQ lengths should not match by rounding down/up.
6 years, 2 months ago (2014-10-10 08:25:43 UTC) #2
rune
Please file a bug for this. The Bug and/or CL description should say something about ...
6 years, 2 months ago (2014-10-10 09:01:46 UTC) #3
Yoav Weiss
On 2014/10/10 09:01:46, rune wrote: > Please file a bug for this. The Bug and/or ...
6 years, 2 months ago (2014-10-10 09:18:57 UTC) #4
rune
On 2014/10/10 at 09:18:57, yoav wrote: > On 2014/10/10 09:01:46, rune wrote: > > Please ...
6 years, 2 months ago (2014-10-10 12:45:42 UTC) #5
rune
https://codereview.chromium.org/644813005/diff/220001/Source/core/css/parser/SizesCalcParser.cpp File Source/core/css/parser/SizesCalcParser.cpp (right): https://codereview.chromium.org/644813005/diff/220001/Source/core/css/parser/SizesCalcParser.cpp#newcode76 Source/core/css/parser/SizesCalcParser.cpp:76: value.value = result; Now you're taking a double (numericValue()), ...
6 years, 2 months ago (2014-10-10 12:46:04 UTC) #6
Yoav Weiss
On 2014/10/10 12:46:04, rune wrote: > https://codereview.chromium.org/644813005/diff/220001/Source/core/css/parser/SizesCalcParser.cpp > File Source/core/css/parser/SizesCalcParser.cpp (right): > > https://codereview.chromium.org/644813005/diff/220001/Source/core/css/parser/SizesCalcParser.cpp#newcode76 > ...
6 years, 2 months ago (2014-10-10 15:36:06 UTC) #7
rune
Lovely. LGTM.
6 years, 2 months ago (2014-10-10 19:32:14 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/644813005/320001
6 years, 2 months ago (2014-10-10 22:03:56 UTC) #10
commit-bot: I haz the power
6 years, 2 months ago (2014-10-10 22:07:28 UTC) #11
Message was sent while issue was closed.
Committed patchset #3 (id:320001) as 183563

Powered by Google App Engine
This is Rietveld 408576698