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

Issue 705423002: Use expected main frame size from WebViewImpl when creating a new FrameView. (Closed)

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

Description

Use expected main frame size from WebViewImpl when creating a new FrameView. The main frame's size is no longer simply the viewport size. Instead, WebViewImpl sizes it after layout to be the either the content width with a height matching the viewport aspect ratio, or the viewport at minimum page scale. This fixes a bug where the innerWidth/innerHeight values would be wrong during an onload event if the onload would happen before the content was properly sized. BUG=431097, 428722 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=185145 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=185321

Patch Set 1 #

Patch Set 2 : Created WebViewImpl::mainFrameSize #

Patch Set 3 : Added test #

Patch Set 4 : Fixed crash occuring in OOPI tests #

Patch Set 5 : Rebase #

Patch Set 6 : Fixing build break from bad rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -8 lines) Patch
M Source/web/WebLocalFrameImpl.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M Source/web/WebViewImpl.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M Source/web/WebViewImpl.cpp View 1 2 3 4 2 chunks +20 lines, -7 lines 0 comments Download
M Source/web/tests/PinchViewportTest.cpp View 1 2 1 chunk +18 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (5 generated)
bokan
Hey Alex, This change fixes the perf regression we were seeing on the thread_times metric. ...
6 years, 1 month ago (2014-11-08 00:09:16 UTC) #2
aelias_OOO_until_Jul13
The main concern that comes to mind is that it seems odd that webView->size() is ...
6 years, 1 month ago (2014-11-08 00:35:02 UTC) #3
bokan
How's this?
6 years, 1 month ago (2014-11-10 18:03:01 UTC) #4
aelias_OOO_until_Jul13
Looks good, just needs test.
6 years, 1 month ago (2014-11-10 19:13:35 UTC) #5
bokan
On 2014/11/10 19:13:35, aelias wrote: > Looks good, just needs test. Done, ptal.
6 years, 1 month ago (2014-11-11 14:13:14 UTC) #6
aelias_OOO_until_Jul13
lgtm
6 years, 1 month ago (2014-11-11 19:30:03 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/705423002/40001
6 years, 1 month ago (2014-11-11 19:31:48 UTC) #9
commit-bot: I haz the power
Committed patchset #3 (id:40001) as 185145
6 years, 1 month ago (2014-11-11 20:50:34 UTC) #10
Stephen White
I think this CL may be causing failures on chromium_chromeos_rel, and blocking the Blink roll ...
6 years, 1 month ago (2014-11-12 04:42:15 UTC) #11
Stephen White
On 2014/11/12 04:42:15, Stephen White wrote: > I think this CL may be causing failures ...
6 years, 1 month ago (2014-11-12 12:49:20 UTC) #12
bokan
On 2014/11/12 12:49:20, Stephen White wrote: > On 2014/11/12 04:42:15, Stephen White wrote: > > ...
6 years, 1 month ago (2014-11-13 19:15:30 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/705423002/80001
6 years, 1 month ago (2014-11-13 19:16:09 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_chromium_gn_rel/builds/16642) mac_blink_compile_dbg on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/mac_blink_compile_dbg/builds/25585)
6 years, 1 month ago (2014-11-13 19:29:03 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/705423002/100001
6 years, 1 month ago (2014-11-13 20:04:07 UTC) #19
commit-bot: I haz the power
6 years, 1 month ago (2014-11-13 21:15:47 UTC) #20
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as 185321

Powered by Google App Engine
This is Rietveld 408576698