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

Issue 161083002: Make NodeList::ownerNode() virtual and rename to virtualOwnerNode() (Closed)

Created:
6 years, 10 months ago by Inactive
Modified:
6 years, 10 months ago
Reviewers:
haraken, adamk
CC:
blink-reviews, kojih, arv+blink, jsbell+bindings_chromium.org, sof, eae+blinkwatch, abarth-chromium, marja+watch_chromium.org, dglazkov+blink, adamk+blink_chromium.org, Nate Chapin, watchdog-blink-watchlist_google.com
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Make NodeList::ownerNode() virtual and rename to virtualOwnerNode() Make NodeList::ownerNode() virtual to avoid multiple virtual calls to is*NodeList() in Node::ownerNode() as well as casting. NodeList::ownerNode() is also renamed to virtualOwnerNode() to avoid conflict with LiveNodeListBase::ownerNode(). Also, we don't want LiveNodeList::ownerNode() to be virtual as it is called from hot code paths. R=haraken, adamk Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=167061

Patch Set 1 #

Patch Set 2 : Reupload #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -61 lines) Patch
M Source/bindings/IDLExtendedAttributes.txt View 1 chunk +1 line, -1 line 1 comment Download
M Source/core/core.gypi View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/dom/ChildNodeList.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/dom/ChildNodeList.cpp View 1 chunk +5 lines, -0 lines 0 comments Download
M Source/core/dom/EmptyNodeList.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/dom/EmptyNodeList.cpp View 1 chunk +5 lines, -0 lines 0 comments Download
M Source/core/dom/LiveNodeList.h View 2 chunks +1 line, -3 lines 0 comments Download
M Source/core/dom/LiveNodeList.cpp View 1 chunk +5 lines, -0 lines 0 comments Download
M Source/core/dom/NodeList.h View 1 chunk +1 line, -2 lines 0 comments Download
D Source/core/dom/NodeList.cpp View 1 chunk +0 lines, -53 lines 0 comments Download
M Source/core/dom/NodeList.idl View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
Inactive
6 years, 10 months ago (2014-02-12 20:42:58 UTC) #1
adamk
Can you re-upload? I'm not seeing anything in the diffs.
6 years, 10 months ago (2014-02-12 21:34:27 UTC) #2
Inactive
On 2014/02/12 21:34:27, adamk wrote: > Can you re-upload? I'm not seeing anything in the ...
6 years, 10 months ago (2014-02-12 21:39:42 UTC) #3
adamk
lgtm https://codereview.chromium.org/161083002/diff/2/Source/bindings/IDLExtendedAttributes.txt File Source/bindings/IDLExtendedAttributes.txt (right): https://codereview.chromium.org/161083002/diff/2/Source/bindings/IDLExtendedAttributes.txt#newcode87 Source/bindings/IDLExtendedAttributes.txt:87: SetWrapperReferenceFrom=document|element|owner|ownerNode|virtualOwnerNode I leave it up to haraken, but ...
6 years, 10 months ago (2014-02-12 22:02:14 UTC) #4
haraken
LGTM. > https://codereview.chromium.org/161083002/diff/2/Source/bindings/IDLExtendedAttributes.txt#newcode87 > Source/bindings/IDLExtendedAttributes.txt:87: > SetWrapperReferenceFrom=document|element|owner|ownerNode|virtualOwnerNode > I leave it up to haraken, but ...
6 years, 10 months ago (2014-02-12 23:12:45 UTC) #5
Inactive
The CQ bit was checked by ch.dumez@samsung.com
6 years, 10 months ago (2014-02-13 00:03:04 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/161083002/2
6 years, 10 months ago (2014-02-13 00:03:26 UTC) #7
Nils Barth (inactive)
> https://codereview.chromium.org/161083002/diff/2/Source/bindings/IDLExtendedAttributes.txt#newcode87 > > Source/bindings/IDLExtendedAttributes.txt:87: > > SetWrapperReferenceFrom=document|element|owner|ownerNode|virtualOwnerNode > > I leave it up to ...
6 years, 10 months ago (2014-02-13 02:35:39 UTC) #8
commit-bot: I haz the power
Change committed as 167061
6 years, 10 months ago (2014-02-13 03:24:44 UTC) #9
Nils Barth (inactive)
6 years, 10 months ago (2014-02-26 07:25:02 UTC) #10
Message was sent while issue was closed.
On 2014/02/13 02:35:39, Nils Barth wrote:
> >
>
https://codereview.chromium.org/161083002/diff/2/Source/bindings/IDLExtendedA...
> > > Source/bindings/IDLExtendedAttributes.txt:87:
> > > SetWrapperReferenceFrom=document|element|owner|ownerNode|virtualOwnerNode
> > > I leave it up to haraken, but it's not clear to me why it's worth
> enumerating
> > > these rather than just listing *
> 
> On 2014/02/12 23:12:45, haraken wrote:
> > nbarth@ prefers listing up the methods. Either is fine with me.
> 
> I made it an explicit list b/c it's a short list (4 items, now 5) and suggests
a
> naming convention;
> if we're going to use lots of functions, it's fine to list *;
> I don't know how widely used this is or is expected to be.

Seems better to use *, as more functions are being added; fixed in:
Allow arbitrary values for [SetWrapperReferenceFrom]
https://codereview.chromium.org/181133002/

Powered by Google App Engine
This is Rietveld 408576698