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

Issue 1930363002: Avoid clobbering state in viewport tag initialization. (Closed)

Created:
4 years, 7 months ago by aelias_OOO_until_Jul13
Modified:
4 years, 7 months ago
Reviewers:
dgozman, pfeldman
CC:
blink-reviews, blink-reviews-dom_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, rwlbuis, sof
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Avoid clobbering state in viewport tag initialization. The overriding logic for meta viewport and @viewport tags worked by clobbering mutable state in a nonreversible way. This doesn't work properly when meta viewport support is turned on and off dynamically, which happens in devtools device emulation. Switch the logic to store the different values separately and compute the final result at time of use. BUG=604619 Committed: https://crrev.com/899f1773bcbe08bce6c3e0e1238cae1b073b440a Cr-Commit-Position: refs/heads/master@{#392554}

Patch Set 1 #

Patch Set 2 : Add test #

Total comments: 4

Patch Set 3 : Code review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -27 lines) Patch
M third_party/WebKit/Source/core/dom/Document.h View 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.cpp View 1 2 1 chunk +22 lines, -23 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp View 1 1 chunk +28 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (12 generated)
aelias_OOO_until_Jul13
Hi, dgozman@ for general review, pfeldman@ for core/ OWNERS.
4 years, 7 months ago (2016-05-06 14:06:06 UTC) #8
pfeldman
On 2016/05/06 14:06:06, aelias_OOO_until_may9 wrote: > Hi, dgozman@ for general review, pfeldman@ for core/ OWNERS. ...
4 years, 7 months ago (2016-05-07 00:21:32 UTC) #9
dgozman
Thank you for the fix! lgtm https://codereview.chromium.org/1930363002/diff/20001/third_party/WebKit/Source/core/dom/Document.cpp File third_party/WebKit/Source/core/dom/Document.cpp (right): https://codereview.chromium.org/1930363002/diff/20001/third_party/WebKit/Source/core/dom/Document.cpp#newcode3160 third_party/WebKit/Source/core/dom/Document.cpp:3160: if (viewportDescription == ...
4 years, 7 months ago (2016-05-09 17:36:19 UTC) #10
aelias_OOO_until_Jul13
https://codereview.chromium.org/1930363002/diff/20001/third_party/WebKit/Source/core/dom/Document.cpp File third_party/WebKit/Source/core/dom/Document.cpp (right): https://codereview.chromium.org/1930363002/diff/20001/third_party/WebKit/Source/core/dom/Document.cpp#newcode3160 third_party/WebKit/Source/core/dom/Document.cpp:3160: if (viewportDescription == m_viewportDescription) On 2016/05/09 at 17:36:19, dgozman ...
4 years, 7 months ago (2016-05-09 23:56:02 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1930363002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1930363002/40001
4 years, 7 months ago (2016-05-09 23:57:13 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/218556)
4 years, 7 months ago (2016-05-10 02:29:10 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1930363002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1930363002/40001
4 years, 7 months ago (2016-05-10 04:59:10 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 7 months ago (2016-05-10 06:21:31 UTC) #19
commit-bot: I haz the power
4 years, 7 months ago (2016-05-10 06:23:48 UTC) #21
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/899f1773bcbe08bce6c3e0e1238cae1b073b440a
Cr-Commit-Position: refs/heads/master@{#392554}

Powered by Google App Engine
This is Rietveld 408576698