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

Issue 2036403002: Always use the WebFrameWidget when attaching the root graphics (Closed)

Created:
4 years, 6 months ago by lfg
Modified:
4 years, 5 months ago
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, dcheng, dglazkov+blink, kinuko+watch, mlamouri+watch-blink_chromium.org, site-isolation-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Always use the WebFrameWidget when attaching the root graphics layer or the compositor animation timeline in ChromeClientImpl. Now that we always instantiate a WebFrameWidget for local roots, we can remove the fallback code that goes directly through WebView. This change also fixes an issue where local roots were not being passed to ChromeClientImpl::attachCompositorAnimationTimeline which caused the AnimationTimeline to be attached to the wrong widget. BUG=587025 Committed: https://crrev.com/af41ee000f480c570adf535fede679c90819d10f Cr-Commit-Position: refs/heads/master@{#403781}

Patch Set 1 #

Total comments: 13

Patch Set 2 : rebase #

Patch Set 3 : addressing comments #

Patch Set 4 : rebase, fix new tests #

Patch Set 5 : rebase #

Patch Set 6 : automatically create the widget in createLocalChild #

Patch Set 7 : no need to manually close the webviewframewidget anymore #

Patch Set 8 : fix SwapMainFrame test #

Total comments: 4

Patch Set 9 : rebase #

Patch Set 10 : adding comments #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+154 lines, -97 lines) Patch
M components/printing/renderer/print_web_view_helper.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/render_frame_impl.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/ChromeClientImpl.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/ChromeClientImpl.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +18 lines, -51 lines 0 comments Download
M third_party/WebKit/Source/web/WebFrameWidgetImpl.h View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebViewFrameWidget.h View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewFrameWidget.cpp View 1 chunk +15 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.h View 1 2 3 4 3 chunks +5 lines, -3 lines 1 comment Download
M third_party/WebKit/Source/web/tests/DocumentLoaderTest.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/FrameTestHelpers.h View 1 2 3 4 5 6 6 chunks +33 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/web/tests/FrameTestHelpers.cpp View 1 2 3 4 5 6 7 chunks +35 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/web/tests/ScrollingCoordinatorTest.cpp View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/VisualViewportTest.cpp View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp View 1 2 3 4 5 6 7 6 chunks +15 lines, -13 lines 0 comments Download
M third_party/WebKit/public/web/WebFrameClient.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/public/web/WebFrameWidget.h View 1 2 3 4 5 6 7 8 9 3 chunks +12 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (6 generated)
lfg
PTAL.
4 years, 6 months ago (2016-06-03 21:03:16 UTC) #2
lfg
PTAL.
4 years, 6 months ago (2016-06-03 21:03:17 UTC) #3
dcheng
https://codereview.chromium.org/2036403002/diff/1/third_party/WebKit/Source/web/ChromeClientImpl.cpp File third_party/WebKit/Source/web/ChromeClientImpl.cpp (right): https://codereview.chromium.org/2036403002/diff/1/third_party/WebKit/Source/web/ChromeClientImpl.cpp#newcode792 third_party/WebKit/Source/web/ChromeClientImpl.cpp:792: DCHECK(webFrame->frameWidget() || !rootLayer); Why is it OK for rootLayer ...
4 years, 6 months ago (2016-06-08 00:10:17 UTC) #4
lfg
https://codereview.chromium.org/2036403002/diff/1/third_party/WebKit/Source/web/ChromeClientImpl.cpp File third_party/WebKit/Source/web/ChromeClientImpl.cpp (right): https://codereview.chromium.org/2036403002/diff/1/third_party/WebKit/Source/web/ChromeClientImpl.cpp#newcode792 third_party/WebKit/Source/web/ChromeClientImpl.cpp:792: DCHECK(webFrame->frameWidget() || !rootLayer); On 2016/06/08 00:10:17, dcheng wrote: > ...
4 years, 6 months ago (2016-06-08 21:09:47 UTC) #5
dcheng
https://codereview.chromium.org/2036403002/diff/1/third_party/WebKit/Source/web/ChromeClientImpl.cpp File third_party/WebKit/Source/web/ChromeClientImpl.cpp (right): https://codereview.chromium.org/2036403002/diff/1/third_party/WebKit/Source/web/ChromeClientImpl.cpp#newcode792 third_party/WebKit/Source/web/ChromeClientImpl.cpp:792: DCHECK(webFrame->frameWidget() || !rootLayer); On 2016/06/08 at 21:09:47, lfg (OOO ...
4 years, 6 months ago (2016-06-09 04:43:52 UTC) #6
lfg
On 2016/06/09 04:43:52, dcheng wrote: > > We call PaintLayerCompositor::detachRootLayer() in Document::detach() (which > calls ...
4 years, 5 months ago (2016-06-29 12:54:31 UTC) #7
lfg
PTAL
4 years, 5 months ago (2016-06-30 19:38:22 UTC) #8
dcheng
https://codereview.chromium.org/2036403002/diff/140001/third_party/WebKit/Source/web/ChromeClientImpl.cpp File third_party/WebKit/Source/web/ChromeClientImpl.cpp (right): https://codereview.chromium.org/2036403002/diff/140001/third_party/WebKit/Source/web/ChromeClientImpl.cpp#newcode795 third_party/WebKit/Source/web/ChromeClientImpl.cpp:795: if (webFrame->frameWidget()) Please add a comment why this method ...
4 years, 5 months ago (2016-07-04 07:34:36 UTC) #9
lfg
https://codereview.chromium.org/2036403002/diff/140001/third_party/WebKit/Source/web/ChromeClientImpl.cpp File third_party/WebKit/Source/web/ChromeClientImpl.cpp (right): https://codereview.chromium.org/2036403002/diff/140001/third_party/WebKit/Source/web/ChromeClientImpl.cpp#newcode795 third_party/WebKit/Source/web/ChromeClientImpl.cpp:795: if (webFrame->frameWidget()) On 2016/07/04 07:34:36, dcheng wrote: > Please ...
4 years, 5 months ago (2016-07-04 17:46:13 UTC) #11
dcheng
lgtm
4 years, 5 months ago (2016-07-05 02:04:41 UTC) #12
lfg
jochen@chromium.org: Please review changes in content/, components/
4 years, 5 months ago (2016-07-05 13:20:07 UTC) #14
jochen (gone - plz use gerrit)
lgtm
4 years, 5 months ago (2016-07-05 14:20:34 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2036403002/200001
4 years, 5 months ago (2016-07-05 14:27:05 UTC) #17
commit-bot: I haz the power
Committed patchset #10 (id:200001)
4 years, 5 months ago (2016-07-05 14:57:42 UTC) #18
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/af41ee000f480c570adf535fede679c90819d10f Cr-Commit-Position: refs/heads/master@{#403781}
4 years, 5 months ago (2016-07-05 14:59:13 UTC) #20
Mostyn Bramley-Moore
https://codereview.chromium.org/2036403002/diff/200001/third_party/WebKit/Source/web/WebViewImpl.h File third_party/WebKit/Source/web/WebViewImpl.h (right): https://codereview.chromium.org/2036403002/diff/200001/third_party/WebKit/Source/web/WebViewImpl.h#newcode542 third_party/WebKit/Source/web/WebViewImpl.h:542: friend class WebViewFrameWidget; This is a duplicate, after https://codereview.chromium.org/1991273003 ...
4 years, 5 months ago (2016-07-05 15:33:28 UTC) #22
lfg
4 years, 5 months ago (2016-07-05 15:35:43 UTC) #23
Message was sent while issue was closed.
On 2016/07/05 15:33:28, Mostyn Bramley-Moore wrote:
>
https://codereview.chromium.org/2036403002/diff/200001/third_party/WebKit/Sou...
> File third_party/WebKit/Source/web/WebViewImpl.h (right):
> 
>
https://codereview.chromium.org/2036403002/diff/200001/third_party/WebKit/Sou...
> third_party/WebKit/Source/web/WebViewImpl.h:542: friend class
> WebViewFrameWidget;
> This is a duplicate, after https://codereview.chromium.org/1991273003 landed
in
> the meantime.  Queued a fix: https://codereview.chromium.org/2121953003/

Ah, sorry about that. Forgot about that and the bots didn't complain. Thanks for
fixing it.

Powered by Google App Engine
This is Rietveld 408576698