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

Issue 189573002: Convert HTMLFrameOwnerElement and FocusController to use Frame. (Closed)

Created:
6 years, 9 months ago by kenrb
Modified:
6 years, 9 months ago
Reviewers:
dcheng, eseidel
CC:
blink-reviews, eae+blinkwatch, apavlov+blink_chromium.org, adamk+blink_chromium.org, aandrey+blink_chromium.org, rwlbuis, Nils Barth (inactive), caseq+blink_chromium.org, Nate Chapin, arv+blink, yurys+blink_chromium.org, abarth-chromium, marja+watch_chromium.org, dglazkov+blink, devtools-reviews_chromium.org, Inactive, loislo+blink_chromium.org, sof, lushnikov+blink_chromium.org, eustas+blink_chromium.org, paulirish+reviews_chromium.org, haraken, kojih, jsbell+bindings_chromium.org, alph+blink_chromium.org, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, groby+blinkspell_chromium.org, site-isolation-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Convert HTMLFrameOwnerElement and FocusController to use Frame. HTMLFrameOwnerElement and FocusController need to be able to hold pointers to RemoteFrames as well as LocalFrames. The appropriate members are converted from LocalFrame to the base class Frame in order to support this. BUG=346764 R=dcheng@chromium.org, eseidel@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170347

Patch Set 1 #

Patch Set 2 : Rebased #

Patch Set 3 : Improve FocusController handling of RemoteFrames #

Total comments: 2

Patch Set 4 : Improved downcast checking. #

Total comments: 31

Patch Set 5 : Addressed dcheng comments #

Patch Set 6 : Removed LocalFrame verification in Editor #

Total comments: 6

Patch Set 7 : Added alias for LocalFrame downcast #

Total comments: 7

Patch Set 8 : Rebase #

Patch Set 9 : Fixed a dumb bug #

Patch Set 10 : Missed a null check #

Unified diffs Side-by-side diffs Delta from patch set Stats (+209 lines, -157 lines) Patch
M Source/bindings/v8/BindingSecurity.h View 1 2 3 4 5 6 3 chunks +4 lines, -3 lines 0 comments Download
M Source/bindings/v8/BindingSecurity.cpp View 1 2 3 4 5 6 7 8 1 chunk +8 lines, -4 lines 0 comments Download
M Source/bindings/v8/V8WindowShell.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/Document.cpp View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -3 lines 0 comments Download
M Source/core/dom/TreeScope.cpp View 1 2 3 4 5 6 7 1 chunk +3 lines, -1 line 0 comments Download
M Source/core/editing/Editor.cpp View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M Source/core/frame/Frame.h View 1 2 3 4 5 6 7 8 2 chunks +10 lines, -0 lines 0 comments Download
M Source/core/frame/Frame.cpp View 1 2 3 4 5 6 7 8 2 chunks +20 lines, -0 lines 0 comments Download
M Source/core/frame/LocalFrame.h View 1 2 3 4 5 6 7 8 3 chunks +5 lines, -8 lines 0 comments Download
M Source/core/frame/LocalFrame.cpp View 1 2 3 4 5 6 7 8 3 chunks +0 lines, -18 lines 0 comments Download
M Source/core/html/HTMLFrameElementBase.cpp View 1 2 3 4 5 6 7 2 chunks +6 lines, -4 lines 0 comments Download
M Source/core/html/HTMLFrameOwnerElement.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -4 lines 0 comments Download
M Source/core/html/HTMLFrameOwnerElement.cpp View 1 2 3 4 3 chunks +8 lines, -6 lines 0 comments Download
M Source/core/inspector/InspectorDOMAgent.cpp View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/page/EventHandler.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -2 lines 0 comments Download
M Source/core/page/FocusController.h View 3 chunks +6 lines, -6 lines 0 comments Download
M Source/core/page/FocusController.cpp View 1 2 3 4 5 6 7 10 chunks +25 lines, -18 lines 0 comments Download
M Source/core/page/PageSerializer.cpp View 1 2 3 4 5 6 7 1 chunk +5 lines, -4 lines 0 comments Download
M Source/core/testing/MockPagePopupDriver.cpp View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M Source/web/ContextMenuClientImpl.cpp View 1 2 3 4 5 6 7 2 chunks +8 lines, -8 lines 0 comments Download
M Source/web/SpellCheckerClientImpl.cpp View 1 2 3 3 chunks +12 lines, -8 lines 0 comments Download
M Source/web/WebFrameImpl.cpp View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M Source/web/WebPageSerializer.cpp View 1 2 3 4 5 6 7 1 chunk +4 lines, -3 lines 0 comments Download
M Source/web/WebViewImpl.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -3 lines 0 comments Download
M Source/web/WebViewImpl.cpp View 1 2 3 4 5 6 7 8 26 chunks +62 lines, -48 lines 0 comments Download

Messages

Total messages: 30 (0 generated)
kenrb
Daniel, do you want to take first crack at reviewing this? I tried to anticipate ...
6 years, 9 months ago (2014-03-07 21:12:42 UTC) #1
eseidel
https://codereview.chromium.org/189573002/diff/30001/Source/bindings/v8/V8WindowShell.cpp File Source/bindings/v8/V8WindowShell.cpp (right): https://codereview.chromium.org/189573002/diff/30001/Source/bindings/v8/V8WindowShell.cpp#newcode435 Source/bindings/v8/V8WindowShell.cpp:435: if (element->hasTagName(HTMLNames::iframeTag) && (frame = toLocalFrame(toHTMLIFrameElement(element)->contentFrame()))) Confused. This isn't ...
6 years, 9 months ago (2014-03-07 22:42:53 UTC) #2
kenrb
https://codereview.chromium.org/189573002/diff/30001/Source/bindings/v8/V8WindowShell.cpp File Source/bindings/v8/V8WindowShell.cpp (right): https://codereview.chromium.org/189573002/diff/30001/Source/bindings/v8/V8WindowShell.cpp#newcode435 Source/bindings/v8/V8WindowShell.cpp:435: if (element->hasTagName(HTMLNames::iframeTag) && (frame = toLocalFrame(toHTMLIFrameElement(element)->contentFrame()))) On 2014/03/07 22:42:53, ...
6 years, 9 months ago (2014-03-07 23:56:44 UTC) #3
kenrb
Eric: Daniel is at an offsite, are you able to have a look at this?
6 years, 9 months ago (2014-03-12 23:15:24 UTC) #4
dcheng
Very neat. Mostly minor comments/questions to try to understand the followup work. https://codereview.chromium.org/189573002/diff/30002/Source/bindings/v8/BindingSecurity.h File Source/bindings/v8/BindingSecurity.h ...
6 years, 9 months ago (2014-03-17 18:17:44 UTC) #5
kenrb
https://codereview.chromium.org/189573002/diff/30002/Source/bindings/v8/BindingSecurity.h File Source/bindings/v8/BindingSecurity.h (right): https://codereview.chromium.org/189573002/diff/30002/Source/bindings/v8/BindingSecurity.h#newcode34 Source/bindings/v8/BindingSecurity.h:34: #include "core/frame/LocalFrame.h" On 2014/03/17 18:17:44, dcheng wrote: > Hm... ...
6 years, 9 months ago (2014-03-18 20:01:18 UTC) #6
dcheng
LGTM. Let's revert the Editor.cpp check for isLocalFrame() though =) https://codereview.chromium.org/189573002/diff/30002/Source/bindings/v8/BindingSecurity.h File Source/bindings/v8/BindingSecurity.h (right): https://codereview.chromium.org/189573002/diff/30002/Source/bindings/v8/BindingSecurity.h#newcode34 ...
6 years, 9 months ago (2014-03-19 20:50:02 UTC) #7
kenrb
Eric: Daniel has reviewed but I also need a Blink OWNER. PTAL? https://codereview.chromium.org/189573002/diff/30002/Source/core/editing/Editor.cpp File Source/core/editing/Editor.cpp ...
6 years, 9 months ago (2014-03-20 15:56:57 UTC) #8
eseidel
My primary concern is that we take advantage of the compiler to help us audit ...
6 years, 9 months ago (2014-03-21 19:01:35 UTC) #9
eseidel
I'm very supportive of baby-steps. I just want to make sure we're taking steps in ...
6 years, 9 months ago (2014-03-21 19:07:11 UTC) #10
kenrb
Thanks Eric, that's a good idea. I would rather use a name like toLocalFrameTransitional() and ...
6 years, 9 months ago (2014-03-21 19:59:30 UTC) #11
kenrb
Eric can you have another look at this? I added the downcast alias, but for ...
6 years, 9 months ago (2014-03-24 15:57:29 UTC) #12
eseidel
Made it to FocusController.cpp, will look again in 20 mins or so. https://codereview.chromium.org/189573002/diff/100001/Source/bindings/v8/BindingSecurity.cpp File Source/bindings/v8/BindingSecurity.cpp ...
6 years, 9 months ago (2014-03-24 16:12:48 UTC) #13
kenrb
https://codereview.chromium.org/189573002/diff/100001/Source/core/editing/Editor.cpp File Source/core/editing/Editor.cpp (right): https://codereview.chromium.org/189573002/diff/100001/Source/core/editing/Editor.cpp#newcode810 Source/core/editing/Editor.cpp:810: toLocalFrame(page->focusController().focusedOrMainFrame())->selection().revealSelection(ScrollAlignment::alignCenterIfNeeded); On 2014/03/24 16:12:48, eseidel wrote: > This is ...
6 years, 9 months ago (2014-03-24 16:27:40 UTC) #14
kenrb
Eric: ping?
6 years, 9 months ago (2014-03-25 18:52:28 UTC) #15
eseidel
lgtm Sorry, my delays are not helping you be successful. My primary concern is reducing ...
6 years, 9 months ago (2014-03-27 19:56:41 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kenrb@chromium.org/189573002/130001
6 years, 9 months ago (2014-03-27 19:56:44 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-27 20:34:43 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on linux_blink_rel
6 years, 9 months ago (2014-03-27 20:34:43 UTC) #19
kenrb
The CQ bit was checked by kenrb@chromium.org
6 years, 9 months ago (2014-03-27 21:07:53 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kenrb@chromium.org/189573002/130001
6 years, 9 months ago (2014-03-27 21:07:55 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-27 22:32:48 UTC) #22
commit-bot: I haz the power
Commit queue rejected this change because the description was changed between the time the change ...
6 years, 9 months ago (2014-03-27 22:32:48 UTC) #23
kenrb
The CQ bit was checked by kenrb@chromium.org
6 years, 9 months ago (2014-03-28 16:02:23 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kenrb@chromium.org/189573002/150001
6 years, 9 months ago (2014-03-28 16:02:36 UTC) #25
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-28 16:34:26 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on linux_blink_rel
6 years, 9 months ago (2014-03-28 16:34:27 UTC) #27
kenrb
The CQ bit was checked by kenrb@chromium.org
6 years, 9 months ago (2014-03-28 17:40:45 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kenrb@chromium.org/189573002/170001
6 years, 9 months ago (2014-03-28 17:40:53 UTC) #29
commit-bot: I haz the power
6 years, 9 months ago (2014-03-28 18:58:01 UTC) #30
Message was sent while issue was closed.
Change committed as 170347

Powered by Google App Engine
This is Rietveld 408576698