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

Issue 1496683002: Avoid rounding down viewport dimensions in Media Queries (Closed)

Created:
5 years ago by Yoav Weiss
Modified:
5 years ago
Reviewers:
Timothy Loh, rune
CC:
chromium-reviews, kenneth.christiansen, blink-reviews-css, dglazkov+blink, apavlov+blink_chromium.org, darktears, blink-reviews, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Avoid rounding down viewport dimensions in Media Queries Viewport dimensions were assumed to be integer numbers, but that assumption fails when zoom is taken into account, leading to compatibility issues. This CL fixes that, by changing viewport dimensions to be treated as floats. BUG=560874 Committed: https://crrev.com/e4518f06d1a860c5830ff96817ffe6bf71616e87 Cr-Commit-Position: refs/heads/master@{#363181}

Patch Set 1 #

Patch Set 2 : clampTo on height #

Patch Set 3 : Fix layout test #

Total comments: 1

Patch Set 4 : Moved to double #

Messages

Total messages: 16 (6 generated)
Yoav Weiss
5 years ago (2015-12-02 21:29:25 UTC) #2
rune
https://codereview.chromium.org/1496683002/diff/40001/third_party/WebKit/Source/core/css/MediaValues.cpp File third_party/WebKit/Source/core/css/MediaValues.cpp (right): https://codereview.chromium.org/1496683002/diff/40001/third_party/WebKit/Source/core/css/MediaValues.cpp#newcode156 third_party/WebKit/Source/core/css/MediaValues.cpp:156: bool MediaValues::computeLengthImpl(double value, CSSPrimitiveValue::UnitType type, unsigned defaultFontSize, float viewportWidth, ...
5 years ago (2015-12-04 08:20:59 UTC) #5
Yoav Weiss
On 2015/12/04 08:20:59, rune wrote: > https://codereview.chromium.org/1496683002/diff/40001/third_party/WebKit/Source/core/css/MediaValues.cpp > File third_party/WebKit/Source/core/css/MediaValues.cpp (right): > > https://codereview.chromium.org/1496683002/diff/40001/third_party/WebKit/Source/core/css/MediaValues.cpp#newcode156 > ...
5 years ago (2015-12-04 08:26:54 UTC) #6
rune
On 2015/12/04 08:26:54, Yoav Weiss wrote: > On 2015/12/04 08:20:59, rune wrote: > > > ...
5 years ago (2015-12-04 08:39:12 UTC) #7
Yoav Weiss
On 2015/12/04 08:39:12, rune wrote: > On 2015/12/04 08:26:54, Yoav Weiss wrote: > > On ...
5 years ago (2015-12-04 09:19:47 UTC) #8
rune
lgtm
5 years ago (2015-12-04 09:22:18 UTC) #9
Yoav Weiss
On 2015/12/04 09:22:18, rune wrote: > lgtm Thanks for reviewing :)
5 years ago (2015-12-04 09:25:24 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1496683002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1496683002/60001
5 years ago (2015-12-04 09:25:55 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years ago (2015-12-04 10:30:52 UTC) #14
commit-bot: I haz the power
5 years ago (2015-12-04 10:31:55 UTC) #16
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/e4518f06d1a860c5830ff96817ffe6bf71616e87
Cr-Commit-Position: refs/heads/master@{#363181}

Powered by Google App Engine
This is Rietveld 408576698