|
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
|
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
|
Total messages: 10 (0 generated)
|