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

Issue 271593005: Moved main frame resize to happen outside refreshPageScaleFactor. (Closed)

Created:
6 years, 7 months ago by bokan
Modified:
6 years, 7 months ago
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Moved main frame resize to happen outside refreshPageScaleFactor. refreshPageScaleFactor only gets called if the page scale constraints are dirty. This happens when the page changes width but not when the height changes. This cuased a bug where changing the window height only wouldn't resize the main frame/outer viewport. BUG=370218 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=173672

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -23 lines) Patch
M Source/web/PageScaleConstraintsSet.h View 1 2 3 4 chunks +7 lines, -4 lines 0 comments Download
M Source/web/PageScaleConstraintsSet.cpp View 1 2 3 5 chunks +23 lines, -14 lines 0 comments Download
M Source/web/WebViewImpl.cpp View 1 2 3 6 chunks +7 lines, -5 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
bokan
Alexandre, PTAL. I think we always want to try sizing the main frame after a ...
6 years, 7 months ago (2014-05-07 18:57:46 UTC) #1
aelias_OOO_until_Jul13
I'd prefer to fix it the other way and dirty the constraints when height changes. ...
6 years, 7 months ago (2014-05-07 21:39:12 UTC) #2
bokan
Updated. I just dirtied the constraints on WebViewImpl::resize, or should it be needsReset(true)?
6 years, 7 months ago (2014-05-07 23:17:25 UTC) #3
aelias_OOO_until_Jul13
Making the constraints dirty is what we want. (setNeedsReset would reset the page scale to ...
6 years, 7 months ago (2014-05-07 23:38:21 UTC) #4
bokan
Thanks for clarifying. I've made the changes you suggested. PTAL.
6 years, 7 months ago (2014-05-08 17:14:17 UTC) #5
aelias_OOO_until_Jul13
lgtm
6 years, 7 months ago (2014-05-08 18:21:44 UTC) #6
bokan
The CQ bit was checked by bokan@chromium.org
6 years, 7 months ago (2014-05-08 18:54:51 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bokan@chromium.org/271593005/60001
6 years, 7 months ago (2014-05-08 18:56:39 UTC) #8
commit-bot: I haz the power
6 years, 7 months ago (2014-05-08 20:14:40 UTC) #9
Message was sent while issue was closed.
Change committed as 173672

Powered by Google App Engine
This is Rietveld 408576698