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

Issue 23185008: Reset viewport to implicit when @viewport is removed. (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

Reset viewport to implicit when @viewport is removed. When m_propertySet was null after cascading @viewport rules (no rules added), ViewportStyleResolver::resolve would be a no-op so that removing the last @viewport rule through CSSOM would not have an effect. This is fixed by re-setting to Implicit when removing the last @viewport rule. Removed a stray ViewportStyleResolver::resolve call in viewportAsText that was a no-op before the rest of this change, but resulted in always resetting the viewport arguments with this fix. BUG=276812 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=156855

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -3 lines) Patch
A LayoutTests/css3/device-adapt/viewport-delete-rule.html View 1 chunk +45 lines, -0 lines 1 comment Download
A LayoutTests/css3/device-adapt/viewport-delete-rule-expected.txt View 1 chunk +4 lines, -0 lines 0 comments Download
M Source/core/css/resolver/ViewportStyleResolver.cpp View 1 chunk +13 lines, -1 line 1 comment Download
M Source/core/dom/Document.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/testing/Internals.cpp View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
rune
7 years, 4 months ago (2013-08-21 07:48:42 UTC) #1
kenneth.r.christiansen
https://codereview.chromium.org/23185008/diff/1/LayoutTests/css3/device-adapt/viewport-delete-rule.html File LayoutTests/css3/device-adapt/viewport-delete-rule.html (right): https://codereview.chromium.org/23185008/diff/1/LayoutTests/css3/device-adapt/viewport-delete-rule.html#newcode17 LayoutTests/css3/device-adapt/viewport-delete-rule.html:17: var t2 = async_test("Check that @viewport rule is not ...
7 years, 4 months ago (2013-08-21 08:28:35 UTC) #2
rune
On 2013/08/21 08:28:35, kenneth.r.christiansen wrote: > https://codereview.chromium.org/23185008/diff/1/LayoutTests/css3/device-adapt/viewport-delete-rule.html > File LayoutTests/css3/device-adapt/viewport-delete-rule.html (right): > > https://codereview.chromium.org/23185008/diff/1/LayoutTests/css3/device-adapt/viewport-delete-rule.html#newcode17 > ...
7 years, 4 months ago (2013-08-21 08:43:42 UTC) #3
kenneth.r.christiansen
im fine with this patch, I just need to find out how to fix this ...
7 years, 4 months ago (2013-08-21 09:24:40 UTC) #4
rune
7 years, 3 months ago (2013-08-28 14:37:08 UTC) #5
Mike West
Makes sense. LGTM, as long as the trybots are happy.
7 years, 3 months ago (2013-08-28 14:42:12 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rune@opera.com/23185008/1
7 years, 3 months ago (2013-08-28 14:47:37 UTC) #7
commit-bot: I haz the power
7 years, 3 months ago (2013-08-28 16:13:56 UTC) #8
Message was sent while issue was closed.
Change committed as 156855

Powered by Google App Engine
This is Rietveld 408576698