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

Issue 19272007: Update parent layout when child frame requests innerHeight/innerWidth. (Closed)

Created:
7 years, 5 months ago by tonyg
Modified:
7 years, 5 months ago
CC:
blink-reviews, dglazkov+blink, eae+blinkwatch, adamk+blink_chromium.org, Julien - ping for review
Visibility:
Public.

Description

Update parent layout when child frame requests innerHeight/innerWidth. The child frame dimensions may depend on the parent frame's layout. So we need to update the parent frame's layout when the child asks for innerHeight or innerWidth. Without this patch, the test case incorrectly returns 0 for the innerHeight/innerWidth queriers prior to the forced layout. BUG=258175 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=154292

Patch Set 1 #

Total comments: 2

Patch Set 2 : Move layout to SubframeLoader::loadSubframe #

Patch Set 3 : Inline script-test #

Patch Set 4 : Only force layout in innerWidth/innerHeight #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -0 lines) Patch
A LayoutTests/fast/frames/frame-dimensions-before-parent-layout.html View 1 2 3 1 chunk +30 lines, -0 lines 0 comments Download
A LayoutTests/fast/frames/frame-dimensions-before-parent-layout-expected.txt View 1 2 3 1 chunk +11 lines, -0 lines 0 comments Download
M Source/core/page/DOMWindow.cpp View 1 2 3 2 chunks +8 lines, -0 lines 1 comment Download

Messages

Total messages: 18 (0 generated)
tonyg
ptal
7 years, 5 months ago (2013-07-16 00:24:20 UTC) #1
eseidel
lgtm Bleh. I suspect we do need this. But we also need to give this ...
7 years, 5 months ago (2013-07-16 00:28:29 UTC) #2
eseidel
Actually. Why do we need to do this here? This is where we send off ...
7 years, 5 months ago (2013-07-16 00:29:15 UTC) #3
tonyg
On 2013/07/16 00:29:15, eseidel wrote: > Actually. Why do we need to do this here? ...
7 years, 5 months ago (2013-07-16 00:48:25 UTC) #4
esprehn
not lgtm. You can't trigger it in there, this will cause 100 layouts and style ...
7 years, 5 months ago (2013-07-16 00:49:41 UTC) #5
tonyg
> I think you want to hook this on the load event, Good point. I'm ...
7 years, 5 months ago (2013-07-16 00:53:59 UTC) #6
eseidel
How does the subframe query its own dimentions? Shouldn't any of those queries force a ...
7 years, 5 months ago (2013-07-16 01:05:29 UTC) #7
esprehn
On 2013/07/16 00:53:59, tonyg wrote: > > I think you want to hook this on ...
7 years, 5 months ago (2013-07-16 01:08:03 UTC) #8
tonyg
On 2013/07/16 01:08:03, esprehn wrote: > On 2013/07/16 00:53:59, tonyg wrote: > > > I ...
7 years, 5 months ago (2013-07-16 02:48:05 UTC) #9
tonyg
On 2013/07/16 01:08:03, esprehn wrote: > On 2013/07/16 00:53:59, tonyg wrote: > > > I ...
7 years, 5 months ago (2013-07-16 02:48:32 UTC) #10
esprehn
LGTM https://codereview.chromium.org/19272007/diff/14001/Source/core/page/DOMWindow.cpp File Source/core/page/DOMWindow.cpp (right): https://codereview.chromium.org/19272007/diff/14001/Source/core/page/DOMWindow.cpp#newcode1028 Source/core/page/DOMWindow.cpp:1028: // FIXME: This is potentially too much work. ...
7 years, 5 months ago (2013-07-16 02:58:50 UTC) #11
tonyg
On 2013/07/16 02:58:50, esprehn wrote: > LGTM > Thanks again for your help with this. ...
7 years, 5 months ago (2013-07-16 03:31:44 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tonyg@chromium.org/19272007/14001
7 years, 5 months ago (2013-07-16 03:32:09 UTC) #13
commit-bot: I haz the power
Retried try job too often on mac_layout_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_layout_rel&number=12875
7 years, 5 months ago (2013-07-16 09:09:53 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tonyg@chromium.org/19272007/14001
7 years, 5 months ago (2013-07-16 13:56:37 UTC) #15
commit-bot: I haz the power
Retried try job too often on linux_layout_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_layout_rel&number=17034
7 years, 5 months ago (2013-07-16 14:35:42 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tonyg@chromium.org/19272007/14001
7 years, 5 months ago (2013-07-16 14:39:23 UTC) #17
commit-bot: I haz the power
7 years, 5 months ago (2013-07-16 15:23:54 UTC) #18
Message was sent while issue was closed.
Change committed as 154292

Powered by Google App Engine
This is Rietveld 408576698