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

Issue 180143003: Have LiveNodeListBase::ownerNode() return a reference (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, rwlbuis, sof, eae+blinkwatch, abarth-chromium, marja+watch_chromium.org, dglazkov+blink, adamk+blink_chromium.org, Nate Chapin, watchdog-blink-watchlist_google.com, deepak.sa
Visibility:
Public.

Description

Have LiveNodeListBase::ownerNode() return a reference Have LiveNodeListBase::ownerNode() return a reference instead of a pointer as it can never be null. It makes the code look safer, no longer requires assertions and avoids unnecessary null checks in the generated bindings. R=adamk@chromium.org, haraken@chromium.org, adamk, haraken NOTRY=true Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=167848

Patch Set 1 #

Total comments: 1

Patch Set 2 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -67 lines) Patch
M Source/bindings/v8/custom/V8HTMLAllCollectionCustom.cpp View 1 chunk +2 lines, -3 lines 0 comments Download
M Source/core/dom/ChildNodeList.h View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/dom/ChildNodeList.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/ClassCollection.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/EmptyNodeList.h View 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/dom/EmptyNodeList.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/LiveNodeList.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/LiveNodeListBase.h View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/NameNodeList.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/NodeRareData.h View 2 chunks +4 lines, -5 lines 0 comments Download
M Source/core/dom/TagCollection.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/html/HTMLAllCollection.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLCollection.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLCollection.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLFormControlsCollection.cpp View 4 chunks +8 lines, -10 lines 0 comments Download
M Source/core/html/HTMLFormControlsCollection.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLNameCollection.cpp View 2 chunks +5 lines, -6 lines 0 comments Download
M Source/core/html/HTMLOptionsCollection.cpp View 3 chunks +10 lines, -10 lines 0 comments Download
M Source/core/html/HTMLOptionsCollection.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLTableElement.cpp View 2 chunks +4 lines, -4 lines 0 comments Download
M Source/core/html/HTMLTableRowsCollection.h View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/html/HTMLTableRowsCollection.cpp View 7 chunks +8 lines, -8 lines 0 comments Download
M Source/core/html/LabelsNodeList.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/RadioNodeList.cpp View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Inactive
6 years, 10 months ago (2014-02-25 22:26:00 UTC) #1
Inactive
6 years, 10 months ago (2014-02-25 22:26:24 UTC) #2
adamk
lgtm!
6 years, 10 months ago (2014-02-25 22:31:14 UTC) #3
Inactive
The CQ bit was checked by ch.dumez@samsung.com
6 years, 10 months ago (2014-02-25 22:40:24 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/180143003/1
6 years, 10 months ago (2014-02-25 22:42:46 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/180143003/1
6 years, 10 months ago (2014-02-25 23:10:43 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/180143003/1
6 years, 10 months ago (2014-02-25 23:28:15 UTC) #7
haraken
LGTM https://codereview.chromium.org/180143003/diff/1/Source/core/html/HTMLAllCollection.idl File Source/core/html/HTMLAllCollection.idl (right): https://codereview.chromium.org/180143003/diff/1/Source/core/html/HTMLAllCollection.idl#newcode31 Source/core/html/HTMLAllCollection.idl:31: SetWrapperReferenceFromReference=ownerNode, Is it likely that you can completely ...
6 years, 10 months ago (2014-02-26 00:53:50 UTC) #8
Inactive
On 2014/02/26 00:53:50, haraken wrote: > LGTM > > https://codereview.chromium.org/180143003/diff/1/Source/core/html/HTMLAllCollection.idl > File Source/core/html/HTMLAllCollection.idl (right): > ...
6 years, 10 months ago (2014-02-26 01:14:55 UTC) #9
haraken
> I agree the naming of "SetWrapperReferenceFromReference" is a bit confusing. I > don't have ...
6 years, 10 months ago (2014-02-26 01:20:35 UTC) #10
Nils Barth (inactive)
On 2014/02/26 01:14:55, Chris Dumez wrote: > I agree the naming of "SetWrapperReferenceFromReference" is a ...
6 years, 10 months ago (2014-02-26 01:21:26 UTC) #11
Inactive
On 2014/02/26 01:20:35, haraken wrote: > (Although I agreed with [SetWrapperReferenceFromReference] before,) another > solution ...
6 years, 10 months ago (2014-02-26 01:58:59 UTC) #12
haraken
> - IDEA: > Note that we don't really care about the simplicity / performance ...
6 years, 10 months ago (2014-02-26 02:23:56 UTC) #13
Inactive
On 2014/02/26 02:23:56, haraken wrote: > > - IDEA: > > Note that we don't ...
6 years, 10 months ago (2014-02-26 02:27:33 UTC) #14
Inactive
The CQ bit was unchecked by ch.dumez@samsung.com
6 years, 10 months ago (2014-02-26 02:31:43 UTC) #15
Inactive
The CQ bit was checked by ch.dumez@samsung.com
6 years, 10 months ago (2014-02-26 02:31:50 UTC) #16
Inactive
6 years, 10 months ago (2014-02-26 03:46:29 UTC) #17
Message was sent while issue was closed.
Committed patchset #2 manually as r167848 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698