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

Issue 154693002: Have ChildNodeList subclass NodeList instead of LiveNodeList (Closed)

Created:
6 years, 10 months ago by Inactive
Modified:
6 years, 10 months ago
Reviewers:
esprehn, adamk
CC:
blink-reviews, dglazkov+blink, sof, eae+blinkwatch, adamk+blink_chromium.org, Inactive
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Have ChildNodeList subclass NodeList instead of LiveNodeList Have ChildNodeList subclass NodeList instead of LiveNodeList. ChildNodeList behaves differently than other LiveNodeLists and causes a lot of special handling / branching in LiveNodeList and LiveNodeListBase. LiveNodeList can also now deal solely with Elements instead of generic Nodes as ChildNodeList was the only subclass not dealing with Elements. Therefore, handling ChildNodeList separately makes the code a lot cleaner and is also good for performance. I see a 3-4% improvement on the following performance test: Bindings/node-list-access.html. This patch is inspired from the following WebKit patch by <antti@apple.com>;: http://trac.webkit.org/changeset/158536 R=esprehn, adamk Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=166565

Patch Set 1 #

Patch Set 2 : Update copyright #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -60 lines) Patch
M Source/core/dom/ChildNodeList.h View 1 3 chunks +23 lines, -4 lines 0 comments Download
M Source/core/dom/ChildNodeList.cpp View 1 2 chunks +19 lines, -8 lines 0 comments Download
M Source/core/dom/LiveNodeList.h View 4 chunks +8 lines, -10 lines 0 comments Download
M Source/core/dom/NodeList.cpp View 2 chunks +3 lines, -0 lines 3 comments Download
M Source/core/html/CollectionType.h View 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/html/HTMLCollection.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLCollection.cpp View 7 chunks +7 lines, -35 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Inactive
6 years, 10 months ago (2014-02-05 00:51:48 UTC) #1
adamk
lgtm Less implementation inheritance always makes me happy :) https://codereview.chromium.org/154693002/diff/40001/Source/core/dom/NodeList.cpp File Source/core/dom/NodeList.cpp (right): https://codereview.chromium.org/154693002/diff/40001/Source/core/dom/NodeList.cpp#newcode41 Source/core/dom/NodeList.cpp:41: ...
6 years, 10 months ago (2014-02-05 19:25:26 UTC) #2
Inactive
https://codereview.chromium.org/154693002/diff/40001/Source/core/dom/NodeList.cpp File Source/core/dom/NodeList.cpp (right): https://codereview.chromium.org/154693002/diff/40001/Source/core/dom/NodeList.cpp#newcode41 Source/core/dom/NodeList.cpp:41: Node* NodeList::ownerNode() const On 2014/02/05 19:25:26, adamk wrote: > ...
6 years, 10 months ago (2014-02-05 19:52:48 UTC) #3
Inactive
The CQ bit was checked by ch.dumez@samsung.com
6 years, 10 months ago (2014-02-05 19:53:05 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/154693002/40001
6 years, 10 months ago (2014-02-05 19:53:26 UTC) #5
adamk
https://codereview.chromium.org/154693002/diff/40001/Source/core/dom/NodeList.cpp File Source/core/dom/NodeList.cpp (right): https://codereview.chromium.org/154693002/diff/40001/Source/core/dom/NodeList.cpp#newcode41 Source/core/dom/NodeList.cpp:41: Node* NodeList::ownerNode() const On 2014/02/05 19:52:48, Chris Dumez wrote: ...
6 years, 10 months ago (2014-02-05 20:32:45 UTC) #6
Inactive
The CQ bit was unchecked by ch.dumez@samsung.com
6 years, 10 months ago (2014-02-05 23:24:58 UTC) #7
Inactive
The CQ bit was checked by ch.dumez@samsung.com
6 years, 10 months ago (2014-02-05 23:25:10 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/154693002/40001
6 years, 10 months ago (2014-02-05 23:25:24 UTC) #9
commit-bot: I haz the power
6 years, 10 months ago (2014-02-06 01:32:02 UTC) #10
Message was sent while issue was closed.
Change committed as 166565

Powered by Google App Engine
This is Rietveld 408576698