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

Issue 2837593002: Nuked WebFrameImplBase. (Closed)

Created:
3 years, 8 months ago by mustaq
Modified:
3 years, 7 months ago
Reviewers:
dtapuska, dcheng
CC:
chromium-reviews, mlamouri+watch-blink_chromium.org, dglazkov+blink, blink-reviews, kinuko+watch, blink-reviews-api_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Nuked WebFrameImplBase to make Frame access more efficient. This "hidden" base class was forcing two virtual calls to reach a Frame from a WebFrame. It is now one virtual call away. BUG=713798 Review-Url: https://codereview.chromium.org/2837593002 Cr-Commit-Position: refs/heads/master@{#467706} Committed: https://chromium.googlesource.com/chromium/src/+/6a56addf7e3a7f7a70558980a216b2d7081251ba

Patch Set 1 #

Total comments: 1

Patch Set 2 : Moved exposed core entries to BLINK_IMPLEMENTATION. #

Patch Set 3 : Switched to static methods. #

Total comments: 16

Patch Set 4 : dcheng's comments. #

Patch Set 5 : BLINK_EXPORTed ToCoreFrame. #

Patch Set 6 : Replaced non-null params with refs. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -134 lines) Patch
M third_party/WebKit/Source/web/BUILD.gn View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/LocalFrameClientImpl.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/RemoteFrameClientImpl.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebDOMMessageEvent.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebFrame.cpp View 1 2 3 4 5 10 chunks +34 lines, -21 lines 0 comments Download
D third_party/WebKit/Source/web/WebFrameImplBase.h View 1 chunk +0 lines, -48 lines 0 comments Download
D third_party/WebKit/Source/web/WebFrameImplBase.cpp View 1 chunk +0 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.h View 1 2 3 4 chunks +3 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.cpp View 1 2 3 4 5 3 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/WebRemoteFrameImpl.h View 1 2 3 4 chunks +10 lines, -16 lines 0 comments Download
M third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp View 1 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.cpp View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/tests/TouchActionTest.cpp View 1 2 3 4 5 2 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp View 1 2 3 4 5 4 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/public/web/WebFrame.h View 1 2 3 4 5 3 chunks +4 lines, -7 lines 0 comments Download
M third_party/WebKit/public/web/WebView.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 25 (14 generated)
mustaq
ptal. This seems working. In terms of visibility outside Blink, WebFrame::GetFrame() now behaves exactly the ...
3 years, 8 months ago (2017-04-21 17:28:53 UTC) #6
dtapuska
On 2017/04/21 17:28:53, mustaq wrote: > ptal. This seems working. In terms of visibility outside ...
3 years, 8 months ago (2017-04-21 17:42:14 UTC) #7
dcheng
On 2017/04/21 17:42:14, dtapuska wrote: > On 2017/04/21 17:28:53, mustaq wrote: > > ptal. This ...
3 years, 8 months ago (2017-04-22 01:15:26 UTC) #8
mustaq
ptal, moved to non-virtual static helper functions. As of now, everything seems fine except that ...
3 years, 7 months ago (2017-04-25 18:43:38 UTC) #9
dcheng
Overall looks pretty good. Just a few small suggestions and one question. Also, please update ...
3 years, 7 months ago (2017-04-26 11:45:37 UTC) #10
mustaq
All done, ptal. Still no clue why WebFrame.cpp is not visible to webkit_unit_tests. The build ...
3 years, 7 months ago (2017-04-26 18:12:49 UTC) #12
mustaq
ptal. Added the missing BLINK_EXPORT, thanks to Dave.
3 years, 7 months ago (2017-04-26 18:34:25 UTC) #13
dcheng
LGTM with comments addressed https://codereview.chromium.org/2837593002/diff/40001/third_party/WebKit/public/web/WebFrame.h File third_party/WebKit/public/web/WebFrame.h (right): https://codereview.chromium.org/2837593002/diff/40001/third_party/WebKit/public/web/WebFrame.h#newcode427 third_party/WebKit/public/web/WebFrame.h:427: static void InitializeCoreFrame(WebFrame*, Page&); On ...
3 years, 7 months ago (2017-04-27 02:22:37 UTC) #18
mustaq
https://codereview.chromium.org/2837593002/diff/40001/third_party/WebKit/public/web/WebFrame.h File third_party/WebKit/public/web/WebFrame.h (right): https://codereview.chromium.org/2837593002/diff/40001/third_party/WebKit/public/web/WebFrame.h#newcode427 third_party/WebKit/public/web/WebFrame.h:427: static void InitializeCoreFrame(WebFrame*, Page&); On 2017/04/27 02:22:36, dcheng (OOO ...
3 years, 7 months ago (2017-04-27 14:21:21 UTC) #19
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/2837593002/100001
3 years, 7 months ago (2017-04-27 14:44:07 UTC) #22
commit-bot: I haz the power
3 years, 7 months ago (2017-04-27 16:34:27 UTC) #25
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/6a56addf7e3a7f7a70558980a216...

Powered by Google App Engine
This is Rietveld 408576698