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

Issue 645623004: Reland "Streamline frame detach" (Closed)

Created:
6 years, 2 months ago by Nate Chapin
Modified:
6 years, 2 months ago
Reviewers:
dcheng
CC:
blink-reviews, blink-reviews-dom_chromium.org, dglazkov+blink, eae+blinkwatch, gavinp+loader_chromium.org, mkwst+moarreviews_chromium.org, rwlbuis, sof
Project:
blink
Visibility:
Public.

Description

Reland "Streamline frame detach" Share a bit more code between LocalFrame and RemoteFrame, including moving the detach-time client notification down to FrameClient. Move the max frame counter to FrameHost instead of Page. Move detach logic from FrameLoader to LocalFrame, unless it manipulates FrameLoader members. BUG= Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=183773

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 2

Patch Set 5 : Move frame count inc/dec to WebFrame append/removeChild #

Total comments: 2

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -108 lines) Patch
M Source/core/dom/NodeRareData.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/frame/Frame.h View 1 2 chunks +1 line, -7 lines 0 comments Download
M Source/core/frame/Frame.cpp View 1 2 3 4 3 chunks +15 lines, -3 lines 0 comments Download
M Source/core/frame/FrameClient.h View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/frame/FrameHost.h View 1 2 3 4 5 2 chunks +10 lines, -0 lines 0 comments Download
M Source/core/frame/FrameHost.cpp View 1 2 3 4 5 2 chunks +22 lines, -0 lines 0 comments Download
M Source/core/frame/LocalFrame.h View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/frame/LocalFrame.cpp View 1 2 3 4 5 4 chunks +11 lines, -15 lines 0 comments Download
M Source/core/frame/RemoteFrame.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M Source/core/loader/EmptyClients.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M Source/core/loader/FrameLoader.h View 1 2 3 4 2 chunks +1 line, -2 lines 0 comments Download
M Source/core/loader/FrameLoader.cpp View 1 2 3 4 1 chunk +2 lines, -41 lines 0 comments Download
M Source/core/loader/FrameLoaderClient.h View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M Source/core/page/Page.h View 1 2 3 4 5 4 chunks +0 lines, -17 lines 0 comments Download
M Source/core/page/Page.cpp View 1 2 3 4 5 2 chunks +0 lines, -14 lines 0 comments Download
M Source/web/FrameLoaderClientImpl.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M Source/web/FrameLoaderClientImpl.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M Source/web/RemoteFrameClientImpl.h View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/web/RemoteFrameClientImpl.cpp View 1 chunk +5 lines, -0 lines 0 comments Download
M Source/web/WebFrame.cpp View 1 2 3 4 3 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (2 generated)
Nate Chapin
Sorry, the diffs are a little messy. For the substantive changes, see deltas from patch ...
6 years, 2 months ago (2014-10-10 22:55:51 UTC) #2
sof
https://codereview.chromium.org/645623004/diff/380001/Source/core/frame/Frame.cpp File Source/core/frame/Frame.cpp (right): https://codereview.chromium.org/645623004/diff/380001/Source/core/frame/Frame.cpp#newcode233 Source/core/frame/Frame.cpp:233: if (m_owner) { nit: can fuse the two "if" ...
6 years, 2 months ago (2014-10-13 06:51:00 UTC) #3
dcheng
https://codereview.chromium.org/645623004/diff/380001/Source/core/frame/Frame.cpp File Source/core/frame/Frame.cpp (right): https://codereview.chromium.org/645623004/diff/380001/Source/core/frame/Frame.cpp#newcode75 Source/core/frame/Frame.cpp:75: // didn't decrement the frame count, so don't increment ...
6 years, 2 months ago (2014-10-13 09:17:16 UTC) #4
Nate Chapin
On 2014/10/13 09:17:16, dcheng wrote: > https://codereview.chromium.org/645623004/diff/380001/Source/core/frame/Frame.cpp > File Source/core/frame/Frame.cpp (right): > > https://codereview.chromium.org/645623004/diff/380001/Source/core/frame/Frame.cpp#newcode75 > ...
6 years, 2 months ago (2014-10-13 17:13:58 UTC) #5
dcheng
Thinking about this more... It seems like some of this complexity is tied to the ...
6 years, 2 months ago (2014-10-13 21:35:46 UTC) #6
Nate Chapin
On 2014/10/13 21:35:46, dcheng wrote: > Thinking about this more... > > It seems like ...
6 years, 2 months ago (2014-10-14 17:44:09 UTC) #7
dcheng
https://codereview.chromium.org/645623004/diff/590001/Source/web/tests/WebFrameTest.cpp File Source/web/tests/WebFrameTest.cpp (right): https://codereview.chromium.org/645623004/diff/590001/Source/web/tests/WebFrameTest.cpp#newcode3782 Source/web/tests/WebFrameTest.cpp:3782: mainFrame->scopeStringMatches(kFindIdentifier, searchText, options, true); Hmm. Is this change needed ...
6 years, 2 months ago (2014-10-14 21:43:37 UTC) #8
Nate Chapin
https://codereview.chromium.org/645623004/diff/590001/Source/web/tests/WebFrameTest.cpp File Source/web/tests/WebFrameTest.cpp (right): https://codereview.chromium.org/645623004/diff/590001/Source/web/tests/WebFrameTest.cpp#newcode3782 Source/web/tests/WebFrameTest.cpp:3782: mainFrame->scopeStringMatches(kFindIdentifier, searchText, options, true); On 2014/10/14 21:43:37, dcheng wrote: ...
6 years, 2 months ago (2014-10-14 21:45:07 UTC) #9
dcheng
Incidentally, the rest lgtm. It'd be nice to revert the WebFrameTest.cpp change if it's not ...
6 years, 2 months ago (2014-10-15 19:57:59 UTC) #10
Nate Chapin
On 2014/10/15 19:57:59, dcheng wrote: > Incidentally, the rest lgtm. It'd be nice to revert ...
6 years, 2 months ago (2014-10-15 21:35:54 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/645623004/610001
6 years, 2 months ago (2014-10-15 21:36:28 UTC) #13
commit-bot: I haz the power
6 years, 2 months ago (2014-10-15 23:35:19 UTC) #14
Message was sent while issue was closed.
Committed patchset #6 (id:610001) as 183773

Powered by Google App Engine
This is Rietveld 408576698