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

Issue 465483002: Merge NamedNodesCollection and StaticNodeList classes (Closed)

Created:
6 years, 4 months ago by Inactive
Modified:
6 years, 4 months ago
CC:
aandrey+blink_chromium.org, abarth-chromium, apavlov+blink_chromium.org, arv+blink, blink-reviews, blink-reviews-bindings_chromium.org, blink-reviews-dom_chromium.org, blink-reviews-html_chromium.org, caseq+blink_chromium.org, devtools-reviews_chromium.org, dglazkov+blink, eae+blinkwatch, eustas+blink_chromium.org, loislo+blink_chromium.org, lushnikov+blink_chromium.org, malch+blink_chromium.org, paulirish+reviews_chromium.org, pfeldman+blink_chromium.org, rwlbuis, sergeyv+blink_chromium.org, sof, vsevik+blink_chromium.org, yurys+blink_chromium.org
Project:
blink
Visibility:
Public.

Description

Merge NamedNodesCollection and StaticNodeList classes Merge NamedNodesCollection and StaticNodeList classes into a single StaticNodeTypeList templated class as these are identical besides the type of Node they hold. NamedNodesCollection was holding Elements so it is now named StaticElementList which is a typedef to StaticNodeTypeList<Element>. StaticNodeList holds Node and is now a typedef to StaticNodeTypeList<Node>. This avoids code duplication and allows for tighter typing when using a StaticNodeList. As a side effect, memory used by StaticElementList (formely NamedNodesCollection is now reported to V8 as StaticNodeList code was doing so). R=adamk@chromium.org, jochen@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=180084

Patch Set 1 #

Patch Set 2 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -240 lines) Patch
M Source/bindings/core/v8/custom/V8HTMLAllCollectionCustom.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/bindings/core/v8/custom/V8HTMLOptionsCollectionCustom.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/core.gypi View 1 2 chunks +0 lines, -3 lines 0 comments Download
M Source/core/dom/ContainerNode.h View 2 chunks +3 lines, -2 lines 0 comments Download
M Source/core/dom/ContainerNode.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/Document.cpp View 2 chunks +10 lines, -10 lines 0 comments Download
M Source/core/dom/MutationRecord.h View 1 chunk +2 lines, -1 line 0 comments Download
D Source/core/dom/NamedNodesCollection.h View 1 chunk +0 lines, -63 lines 0 comments Download
D Source/core/dom/NamedNodesCollection.cpp View 1 chunk +0 lines, -50 lines 0 comments Download
M Source/core/dom/Node.h View 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/dom/ParentNode.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/SelectorQuery.h View 2 chunks +4 lines, -3 lines 0 comments Download
M Source/core/dom/SelectorQuery.cpp View 3 chunks +6 lines, -6 lines 0 comments Download
M Source/core/dom/StaticNodeList.h View 1 chunk +50 lines, -9 lines 0 comments Download
D Source/core/dom/StaticNodeList.cpp View 1 chunk +0 lines, -68 lines 0 comments Download
M Source/core/events/TreeScopeEventContext.h View 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/html/HTMLAllCollection.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/html/HTMLOptionsCollection.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/inspector/InspectorDOMAgent.cpp View 3 chunks +7 lines, -7 lines 0 comments Download
M Source/core/testing/Internals.h View 1 chunk +2 lines, -1 line 0 comments Download
M Source/web/tests/TouchActionTest.cpp View 2 chunks +5 lines, -6 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Inactive
6 years, 4 months ago (2014-08-11 15:59:51 UTC) #1
adamk
This lgtm, but I do notice that the two uses of NamedNodeCollection don't really care ...
6 years, 4 months ago (2014-08-11 22:48:58 UTC) #2
Inactive
On 2014/08/11 22:48:58, adamk wrote: > This lgtm, but I do notice that the two ...
6 years, 4 months ago (2014-08-11 23:28:36 UTC) #3
Inactive
On 2014/08/11 22:48:58, adamk wrote: > This lgtm, but I do notice that the two ...
6 years, 4 months ago (2014-08-12 13:23:58 UTC) #4
jochen (gone - plz use gerrit)
lgtm
6 years, 4 months ago (2014-08-12 14:47:57 UTC) #5
adamk
On 2014/08/12 at 13:23:58, ch.dumez wrote: > On 2014/08/11 22:48:58, adamk wrote: > > This ...
6 years, 4 months ago (2014-08-12 16:46:04 UTC) #6
Inactive
The CQ bit was checked by ch.dumez@samsung.com
6 years, 4 months ago (2014-08-12 16:51:26 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/465483002/20001
6 years, 4 months ago (2014-08-12 16:52:29 UTC) #8
haraken
LGTM. I think 4KB would be acceptable. The benefit of cleaning up the code base ...
6 years, 4 months ago (2014-08-12 16:53:19 UTC) #9
commit-bot: I haz the power
6 years, 4 months ago (2014-08-12 16:57:06 UTC) #10
Message was sent while issue was closed.
Change committed as 180084

Powered by Google App Engine
This is Rietveld 408576698