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

Issue 22549002: Recompute percentage based @viewport on resize. (Closed)

Created:
7 years, 4 months ago by rune
Modified:
7 years, 3 months ago
CC:
blink-reviews, kenneth.christiansen, eae+blinkwatch, dglazkov+blink, apavlov+blink_chromium.org, adamk+blink_chromium.org, darktears
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Recompute percentage based @viewport on resize. Percentage values were resolved to px lengths at cascade time for @viewport widths and heights. This change keeps them as percentage values and recomputes the actual viewport from the initial viewport and the percentage value when the intial viewport changes (window resize). Likewise for viewport relative units (vw, vh, vmin, vmax). This fixes constrain-006 and constrain-007 in the w3c testsuite. BUG=269132 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=157091

Patch Set 1 #

Total comments: 8

Patch Set 2 : Fixed review issues. #

Patch Set 3 : 0px is a less quirky choice. #

Total comments: 2

Patch Set 4 : Rebased to current master #

Patch Set 5 : Review issue: removed duplicate ASSERT. #

Patch Set 6 : Fixed Mac compile issues. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -35 lines) Patch
M LayoutTests/css3/device-adapt/opera/constrain-006-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/css3/device-adapt/opera/constrain-007-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/resolver/ViewportStyleResolver.h View 2 chunks +2 lines, -0 lines 0 comments Download
M Source/core/css/resolver/ViewportStyleResolver.cpp View 1 2 3 4 3 chunks +38 lines, -10 lines 0 comments Download
M Source/core/dom/ViewportArguments.h View 1 2 3 4 chunks +9 lines, -8 lines 0 comments Download
M Source/core/dom/ViewportArguments.cpp View 1 2 3 4 5 3 chunks +32 lines, -15 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
rune
7 years, 4 months ago (2013-08-07 07:30:57 UTC) #1
kenneth.r.christiansen
lgtm!
7 years, 4 months ago (2013-08-07 08:32:35 UTC) #2
kenneth.r.christiansen
https://codereview.chromium.org/22549002/diff/1/Source/core/dom/ViewportArguments.h File Source/core/dom/ViewportArguments.h (right): https://codereview.chromium.org/22549002/diff/1/Source/core/dom/ViewportArguments.h#newcode89 Source/core/dom/ViewportArguments.h:89: float width; Guess it would be nice to get ...
7 years, 4 months ago (2013-08-07 08:33:00 UTC) #3
rune
On 2013/08/07 08:33:00, kenneth.r.christiansen wrote: > https://codereview.chromium.org/22549002/diff/1/Source/core/dom/ViewportArguments.h > File Source/core/dom/ViewportArguments.h (right): > > https://codereview.chromium.org/22549002/diff/1/Source/core/dom/ViewportArguments.h#newcode89 > ...
7 years, 4 months ago (2013-08-07 09:07:43 UTC) #4
apavlov
https://codereview.chromium.org/22549002/diff/1/Source/core/css/resolver/ViewportStyleResolver.cpp File Source/core/css/resolver/ViewportStyleResolver.cpp (right): https://codereview.chromium.org/22549002/diff/1/Source/core/css/resolver/ViewportStyleResolver.cpp#newcode179 Source/core/css/resolver/ViewportStyleResolver.cpp:179: default: Is there any particular idea behind putting "default:" ...
7 years, 4 months ago (2013-08-07 09:25:54 UTC) #5
rune
https://codereview.chromium.org/22549002/diff/1/Source/core/css/resolver/ViewportStyleResolver.cpp File Source/core/css/resolver/ViewportStyleResolver.cpp (right): https://codereview.chromium.org/22549002/diff/1/Source/core/css/resolver/ViewportStyleResolver.cpp#newcode179 Source/core/css/resolver/ViewportStyleResolver.cpp:179: default: On 2013/08/07 09:25:54, apavlov wrote: > Is there ...
7 years, 4 months ago (2013-08-07 10:06:15 UTC) #6
apavlov
https://codereview.chromium.org/22549002/diff/1/Source/core/css/resolver/ViewportStyleResolver.cpp File Source/core/css/resolver/ViewportStyleResolver.cpp (right): https://codereview.chromium.org/22549002/diff/1/Source/core/css/resolver/ViewportStyleResolver.cpp#newcode179 Source/core/css/resolver/ViewportStyleResolver.cpp:179: default: On 2013/08/07 10:06:15, rune wrote: > On 2013/08/07 ...
7 years, 4 months ago (2013-08-07 10:12:10 UTC) #7
rune
https://codereview.chromium.org/22549002/diff/1/Source/core/css/resolver/ViewportStyleResolver.cpp File Source/core/css/resolver/ViewportStyleResolver.cpp (right): https://codereview.chromium.org/22549002/diff/1/Source/core/css/resolver/ViewportStyleResolver.cpp#newcode179 Source/core/css/resolver/ViewportStyleResolver.cpp:179: default: On 2013/08/07 10:12:10, apavlov wrote: > Well, this ...
7 years, 4 months ago (2013-08-07 11:30:04 UTC) #8
rune
7 years, 4 months ago (2013-08-09 08:42:17 UTC) #9
kenneth.r.christiansen
lgtm
7 years, 3 months ago (2013-09-02 15:28:40 UTC) #10
do-not-use
lgtm
7 years, 3 months ago (2013-09-02 16:01:25 UTC) #11
darktears
LGTM minus the nit. https://codereview.chromium.org/22549002/diff/17001/Source/core/css/resolver/ViewportStyleResolver.cpp File Source/core/css/resolver/ViewportStyleResolver.cpp (right): https://codereview.chromium.org/22549002/diff/17001/Source/core/css/resolver/ViewportStyleResolver.cpp#newcode163 Source/core/css/resolver/ViewportStyleResolver.cpp:163: ASSERT(value->isPrimitiveValue()); This ASSERT is not ...
7 years, 3 months ago (2013-09-02 16:31:47 UTC) #12
rune
https://codereview.chromium.org/22549002/diff/17001/Source/core/css/resolver/ViewportStyleResolver.cpp File Source/core/css/resolver/ViewportStyleResolver.cpp (right): https://codereview.chromium.org/22549002/diff/17001/Source/core/css/resolver/ViewportStyleResolver.cpp#newcode163 Source/core/css/resolver/ViewportStyleResolver.cpp:163: ASSERT(value->isPrimitiveValue()); On 2013/09/02 16:31:47, darktears wrote: > This ASSERT ...
7 years, 3 months ago (2013-09-02 19:25:44 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rune@opera.com/22549002/28001
7 years, 3 months ago (2013-09-02 19:40:21 UTC) #14
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 3 months ago (2013-09-02 20:02:57 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rune@opera.com/22549002/45001
7 years, 3 months ago (2013-09-02 20:15:03 UTC) #16
commit-bot: I haz the power
7 years, 3 months ago (2013-09-02 21:31:26 UTC) #17
Message was sent while issue was closed.
Change committed as 157091

Powered by Google App Engine
This is Rietveld 408576698