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

Issue 336553003: Change Page::m_mainFrame to be a Frame. (Closed)

Created:
6 years, 6 months ago by dcheng
Modified:
6 years, 6 months ago
Reviewers:
abarth-chromium
CC:
abarth-chromium, aandrey+blink_chromium.org, darktears, apavlov+blink_chromium.org, arv+blink, blink-layers+watch_chromium.org, blink-reviews, blink-reviews-animation_chromium.org, blink-reviews-bindings_chromium.org, blink-reviews-css, blink-reviews-events_chromium.org, blink-reviews-rendering, caseq+blink_chromium.org, Inactive, devtools-reviews_chromium.org, dglazkov+blink, krit, dstockwell, eae+blinkwatch, ed+blinkwatch_opera.com, Eric Willigers, eustas+blink_chromium.org, f(malita), fs, gavinp+loader_chromium.org, gyuyoung.kim_webkit.org, Nate Chapin, jchaffraix+rendering, kenneth.christiansen, kinuko+fileapi, kouhei+svg_chromium.org, leviw+renderwatch, loislo+blink_chromium.org, lushnikov+blink_chromium.org, malch+blink_chromium.org, Mike Lawther (Google), mvanouwerkerk+watch_chromium.org, nhiroki, paulirish+reviews_chromium.org, pdr., pfeldman+blink_chromium.org, rjwright, rwlbuis, rune+blink, Stephen Chennney, sergeyv+blink_chromium.org, shans, site-isolation-dev_chromium.org, Steve Block, Timothy Loh, timvolodine, tzik, vsevik+blink_chromium.org, yurys+blink_chromium.org, zoltan1
Project:
blink
Visibility:
Public.

Description

Change Page::m_mainFrame to be a Frame. With OOPI, the main frame can be either local or remote. Features that depend on the main frame being local will have to be updated to account for this fact. This patch takes an aggressive approach--most locations that depend on main frame being local have been updated to directly attempt to downcast to LocalFrame, with no attempt to check that the main frame is local first. The only places that check are those on the critical path towards getting rendering/input events working with the updated OOPI infrastructure. BUG=346764 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176162

Patch Set 1 #

Patch Set 2 : Android/Mac fixes #

Total comments: 2

Patch Set 3 : deprecatedLocalMainFrame #

Total comments: 2

Patch Set 4 : Add comment #

Patch Set 5 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+362 lines, -274 lines) Patch
M Source/bindings/v8/PageScriptDebugServer.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/MediaValues.cpp View 1 2 2 chunks +6 lines, -4 lines 0 comments Download
M Source/core/frame/FrameView.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M Source/core/frame/PinchViewport.cpp View 1 2 3 4 2 chunks +4 lines, -3 lines 0 comments Download
M Source/core/inspector/InspectorDOMAgent.cpp View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M Source/core/inspector/InspectorFrontendHost.cpp View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M Source/core/inspector/InspectorInputAgent.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/inspector/InspectorLayerTreeAgent.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/inspector/InspectorOverlay.cpp View 1 2 14 chunks +16 lines, -16 lines 0 comments Download
M Source/core/inspector/InspectorPageAgent.cpp View 1 2 5 chunks +6 lines, -6 lines 0 comments Download
M Source/core/inspector/PageDebuggerAgent.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/inspector/PageRuntimeAgent.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/loader/FrameLoader.cpp View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M Source/core/loader/NavigationScheduler.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/loader/PingLoader.cpp View 1 2 5 chunks +5 lines, -5 lines 0 comments Download
M Source/core/page/CreateWindow.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/page/DragController.cpp View 1 2 8 chunks +11 lines, -11 lines 0 comments Download
M Source/core/page/EventHandler.cpp View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M Source/core/page/FocusController.cpp View 1 2 3 chunks +10 lines, -4 lines 0 comments Download
M Source/core/page/Page.h View 1 2 3 4 chunks +11 lines, -4 lines 0 comments Download
M Source/core/page/Page.cpp View 1 2 13 chunks +31 lines, -19 lines 0 comments Download
M Source/core/page/PageAnimator.cpp View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M Source/core/page/PageSerializer.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/page/ScopedPageLoadDeferrer.cpp View 1 2 1 chunk +6 lines, -4 lines 0 comments Download
M Source/core/page/SpatialNavigation.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/page/scrolling/ScrollingCoordinator.cpp View 1 2 17 chunks +37 lines, -23 lines 0 comments Download
M Source/core/plugins/DOMMimeType.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/rendering/FastTextAutosizer.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/rendering/TextAutosizer.cpp View 1 2 4 chunks +4 lines, -5 lines 0 comments Download
M Source/core/svg/graphics/SVGImage.cpp View 5 chunks +5 lines, -5 lines 0 comments Download
M Source/core/testing/Internals.cpp View 1 2 3 chunks +7 lines, -7 lines 0 comments Download
M Source/modules/device_orientation/DeviceOrientationInspectorAgent.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/filesystem/InspectorFrontendHostFileSystem.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/geolocation/GeolocationController.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M Source/web/InspectorFrontendClientImpl.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M Source/web/PageWidgetDelegate.cpp View 1 2 3 chunks +5 lines, -3 lines 0 comments Download
M Source/web/WebDevToolsAgentImpl.cpp View 1 2 3 chunks +9 lines, -9 lines 0 comments Download
M Source/web/WebDevToolsFrontendImpl.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/web/WebPagePopupImpl.cpp View 5 chunks +7 lines, -7 lines 0 comments Download
M Source/web/WebPageSerializer.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/web/WebViewImpl.cpp View 1 2 3 4 33 chunks +94 lines, -59 lines 0 comments Download
M Source/web/tests/MHTMLTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/web/tests/PinchViewportTest.cpp View 1 chunk +3 lines, -3 lines 0 comments Download
M Source/web/tests/ViewportTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/web/tests/WebDocumentTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/web/tests/WebFrameTest.cpp View 17 chunks +20 lines, -20 lines 0 comments Download
M Source/web/tests/WebInputEventConversionTest.cpp View 5 chunks +7 lines, -7 lines 0 comments Download
M Source/web/tests/WebViewTest.cpp View 5 chunks +11 lines, -10 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
dcheng
Fairly cookie cutter change. Basically, all calls to Page::mainFrame() got wrapped in toLocalFrame() calls. I've ...
6 years, 6 months ago (2014-06-15 00:21:00 UTC) #1
abarth-chromium
https://codereview.chromium.org/336553003/diff/20001/Source/bindings/v8/PageScriptDebugServer.cpp File Source/bindings/v8/PageScriptDebugServer.cpp (right): https://codereview.chromium.org/336553003/diff/20001/Source/bindings/v8/PageScriptDebugServer.cpp#newcode112 Source/bindings/v8/PageScriptDebugServer.cpp:112: // FIXME: Broken for OOPI. Rather than having a ...
6 years, 6 months ago (2014-06-15 00:33:11 UTC) #2
dcheng
https://codereview.chromium.org/336553003/diff/20001/Source/bindings/v8/PageScriptDebugServer.cpp File Source/bindings/v8/PageScriptDebugServer.cpp (right): https://codereview.chromium.org/336553003/diff/20001/Source/bindings/v8/PageScriptDebugServer.cpp#newcode112 Source/bindings/v8/PageScriptDebugServer.cpp:112: // FIXME: Broken for OOPI. On 2014/06/15 00:33:11, abarth ...
6 years, 6 months ago (2014-06-15 02:58:34 UTC) #3
abarth-chromium
I didn't review all the diffs, but I read through many of them. LGTM https://codereview.chromium.org/336553003/diff/40001/Source/core/page/Page.h ...
6 years, 6 months ago (2014-06-15 03:46:15 UTC) #4
dcheng
https://codereview.chromium.org/336553003/diff/40001/Source/core/page/Page.h File Source/core/page/Page.h (right): https://codereview.chromium.org/336553003/diff/40001/Source/core/page/Page.h#newcode133 Source/core/page/Page.h:133: LocalFrame* deprecatedLocalMainFrame() const { return toLocalFrame(m_mainFrame.get()); } On 2014/06/15 ...
6 years, 6 months ago (2014-06-15 05:05:44 UTC) #5
dcheng
The CQ bit was checked by dcheng@chromium.org
6 years, 6 months ago (2014-06-15 05:09:46 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dcheng@chromium.org/336553003/80001
6 years, 6 months ago (2014-06-15 05:17:07 UTC) #7
commit-bot: I haz the power
6 years, 6 months ago (2014-06-15 06:26:42 UTC) #8
Message was sent while issue was closed.
Change committed as 176162

Powered by Google App Engine
This is Rietveld 408576698