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

Issue 1787913002: Clear page-defined constraints when viewportEnabled setting becomes false. (Closed)

Created:
4 years, 9 months ago by skobes
Modified:
4 years, 9 months ago
Reviewers:
pdr.
CC:
apavlov+blink_chromium.org, blink-reviews, bokan, caseq+blink_chromium.org, chrishtr, chromium-reviews, devtools-reviews_chromium.org, Dirk Pranke, kozyatinskiy+blink_chromium.org, lushnikov+blink_chromium.org, Navid Zolghadr, pfeldman+blink_chromium.org, sergeyv+blink_chromium.org, wkorman
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Clear page-defined constraints when viewportEnabled setting becomes false. Without this, the values in PageScaleConstraintsSet (and things derived from it such as the main frame layout size) remain stale after the setting flip. Dev tools emulation avoided this issue by calling WebViewImpl::disableViewport, but the layout test runner uses auto-generated code to clear the viewportEnabled setting (InternalSettingsGenerated::resetToConsistentState). With this change, DevToolsEmulator can also tweak the setting directly. BUG=571233, 591821 Committed: https://crrev.com/c2c57c405548a45113c00b198afa74dcacc982a2 Cr-Commit-Position: refs/heads/master@{#380888}

Patch Set 1 : #

Total comments: 2

Patch Set 2 : address nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -25 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 3 chunks +2 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/web/DevToolsEmulator.cpp View 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.h View 1 1 chunk +0 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.cpp View 2 chunks +7 lines, -13 lines 0 comments Download

Messages

Total messages: 13 (7 generated)
skobes
4 years, 9 months ago (2016-03-12 00:57:13 UTC) #4
pdr.
Nice! LGTM (with or without fixing nit) https://codereview.chromium.org/1787913002/diff/20001/third_party/WebKit/Source/web/WebViewImpl.h File third_party/WebKit/Source/web/WebViewImpl.h (right): https://codereview.chromium.org/1787913002/diff/20001/third_party/WebKit/Source/web/WebViewImpl.h#newcode279 third_party/WebKit/Source/web/WebViewImpl.h:279: // WebViewImpl ...
4 years, 9 months ago (2016-03-12 06:36:08 UTC) #5
skobes
https://codereview.chromium.org/1787913002/diff/20001/third_party/WebKit/Source/web/WebViewImpl.h File third_party/WebKit/Source/web/WebViewImpl.h (right): https://codereview.chromium.org/1787913002/diff/20001/third_party/WebKit/Source/web/WebViewImpl.h#newcode279 third_party/WebKit/Source/web/WebViewImpl.h:279: // WebViewImpl On 2016/03/12 06:36:08, pdr wrote: > Nit: ...
4 years, 9 months ago (2016-03-13 00:34:50 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1787913002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1787913002/40001
4 years, 9 months ago (2016-03-13 00:35:24 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:40001)
4 years, 9 months ago (2016-03-13 02:09:53 UTC) #11
commit-bot: I haz the power
4 years, 9 months ago (2016-03-13 02:11:04 UTC) #13
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/c2c57c405548a45113c00b198afa74dcacc982a2
Cr-Commit-Position: refs/heads/master@{#380888}

Powered by Google App Engine
This is Rietveld 408576698