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

Issue 2849403002: Use const ref for LocalFrame::LocalFrameRoot and FrameTree::Top (Closed)

Created:
3 years, 7 months ago by joelhockey
Modified:
3 years, 7 months ago
Reviewers:
haraken, dcheng
CC:
apavlov+blink_chromium.org, blink-reviews, blink-reviews-dom_chromium.org, blink-reviews-frames_chromium.org, blink-reviews-layout_chromium.org, caseq+blink_chromium.org, chromium-reviews, dcheng, devtools-reviews_chromium.org, dglazkov+blink, dtapuska+blinkwatch_chromium.org, eae+blinkwatch, jchaffraix+rendering, kinuko+watch, kozyatinskiy+blink_chromium.org, leviw+renderwatch, lushnikov+blink_chromium.org, Navid Zolghadr, panicker+watch_chromium.org, pdr+renderingwatchlist_chromium.org, pfeldman+blink_chromium.org, rwlbuis, sof, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Use non-const ref for LocalFrame::LocalFrameRoot and FrameTree::Top BUG=637460 Review-Url: https://codereview.chromium.org/2849403002 Cr-Commit-Position: refs/heads/master@{#468587} Committed: https://chromium.googlesource.com/chromium/src/+/bed8311f2e1d29053f198a429b71653a6888088a

Patch Set 1 #

Total comments: 2

Patch Set 2 : fix compile and dchecks #

Unified diffs Side-by-side diffs Delta from patch set Stats (+142 lines, -148 lines) Patch
M third_party/WebKit/Source/core/dom/DOMImplementation.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/Document.cpp View 2 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/dom/IntersectionObservation.cpp View 1 chunk +3 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/editing/FrameSelection.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/frame/DOMWindow.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/frame/Deprecation.cpp View 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameView.cpp View 13 chunks +27 lines, -29 lines 0 comments Download
M third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/frame/LocalFrame.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/frame/LocalFrame.cpp View 3 chunks +8 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/frame/RemoteFrameView.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/input/EventHandler.cpp View 1 14 chunks +22 lines, -22 lines 0 comments Download
M third_party/WebKit/Source/core/input/GestureManager.cpp View 2 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorTraceEvents.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp View 2 chunks +3 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/IntersectionGeometry.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutFrame.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/TextAutosizer.cpp View 3 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/loader/MixedContentChecker.cpp View 2 chunks +9 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/core/page/ChromeClient.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/page/ChromeClient.cpp View 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/page/CreateWindow.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/page/DragController.cpp View 2 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/page/FocusController.cpp View 3 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/page/FrameTree.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/page/FrameTree.cpp View 1 3 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/timing/Performance.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/ChromeClientImpl.cpp View 7 chunks +14 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/web/WebPluginContainerImpl.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/LinkSelectionTest.cpp View 3 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 21 (14 generated)
joelhockey
I'm still getting up to speed with C++ language features and the blink style guidelines, ...
3 years, 7 months ago (2017-05-02 07:02:29 UTC) #4
haraken
LGTM https://codereview.chromium.org/2849403002/diff/1/third_party/WebKit/Source/core/input/EventHandler.cpp File third_party/WebKit/Source/core/input/EventHandler.cpp (right): https://codereview.chromium.org/2849403002/diff/1/third_party/WebKit/Source/core/input/EventHandler.cpp#newcode382 third_party/WebKit/Source/core/input/EventHandler.cpp:382: CHECK(frame_ == &frame_->LocalFrameRoot()); ASSERT should be replaced with ...
3 years, 7 months ago (2017-05-02 07:21:55 UTC) #7
joelhockey
https://codereview.chromium.org/2849403002/diff/1/third_party/WebKit/Source/core/input/EventHandler.cpp File third_party/WebKit/Source/core/input/EventHandler.cpp (right): https://codereview.chromium.org/2849403002/diff/1/third_party/WebKit/Source/core/input/EventHandler.cpp#newcode382 third_party/WebKit/Source/core/input/EventHandler.cpp:382: CHECK(frame_ == &frame_->LocalFrameRoot()); On 2017/05/02 at 07:21:54, haraken wrote: ...
3 years, 7 months ago (2017-05-02 07:48:23 UTC) #8
dcheng
LGTM (though const ref isn't quite accurate, we're returning mutable refs, so maybe update the ...
3 years, 7 months ago (2017-05-02 07:50:22 UTC) #11
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/2849403002/20001
3 years, 7 months ago (2017-05-02 07:53:32 UTC) #16
joelhockey
On 2017/05/02 at 07:50:22, dcheng wrote: > LGTM > > (though const ref isn't quite ...
3 years, 7 months ago (2017-05-02 08:55:34 UTC) #17
commit-bot: I haz the power
3 years, 7 months ago (2017-05-02 09:16:34 UTC) #21
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/bed8311f2e1d29053f198a429b71...

Powered by Google App Engine
This is Rietveld 408576698