|
Have HTMLCollection::item() return an Element as per specification
Have HTMLCollection::item() return an Element instead of a Node, as per the
specification:
http://dom.spec.whatwg.org/#htmlcollection
This was made possible by adding a NodeType template parameter to the
CollectionIndexCache class. Both LiveNodeList and HTMLCollection have a
CollectionIndexCache but the former deals with Nodes and the latter deals with
Elements.
There is no Web-exposed behavior change. This is mostly about using stricter
typing on the native side and have our IDL match more closely the
specification. This also avoid a few unnecessary isElementNode() checks in our
code.
R=esprehn, adamk, haraken
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=166411
Total comments: 1
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+113 lines, -107 lines) |
Patch |
|
M |
Source/bindings/v8/V8WindowShell.cpp
|
View
|
1
2
3
4
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
Source/bindings/v8/custom/V8HTMLAllCollectionCustom.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/dom/Document.cpp
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/core/dom/LiveNodeList.h
|
View
|
1
2
3
4
|
3 chunks |
+7 lines, -3 lines |
0 comments
|
Download
|
|
M |
Source/core/html/CollectionIndexCache.h
|
View
|
1
2
3
4
|
10 chunks |
+23 lines, -23 lines |
0 comments
|
Download
|
|
M |
Source/core/html/HTMLAllCollection.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/html/HTMLAllCollection.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/html/HTMLAllCollection.idl
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/core/html/HTMLCollection.h
|
View
|
1
2
3
4
|
3 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
|
M |
Source/core/html/HTMLCollection.cpp
|
View
|
1
2
3
4
|
3 chunks |
+26 lines, -20 lines |
0 comments
|
Download
|
|
M |
Source/core/html/HTMLCollection.idl
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/html/HTMLFormElement.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/html/HTMLFormElement.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/html/HTMLFormElement.idl
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/html/HTMLMapElement.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/html/HTMLSelectElement.h
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/core/html/HTMLSelectElement.cpp
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/core/html/HTMLSelectElement.idl
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/core/html/HTMLTableRowElement.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/html/HTMLTableSectionElement.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/html/forms/RangeInputType.cpp
|
View
|
1
2
3
4
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
Source/core/rendering/RenderTheme.cpp
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
Source/web/WebDocument.cpp
|
View
|
|
2 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
|
M |
Source/web/WebHelperPluginImpl.cpp
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
Source/web/WebNodeCollection.cpp
|
View
|
1
2
3
|
2 chunks |
+6 lines, -7 lines |
0 comments
|
Download
|
|
M |
Source/web/WebPageSerializer.cpp
|
View
|
1
2
|
1 chunk |
+4 lines, -7 lines |
0 comments
|
Download
|
|
M |
Source/web/WebPageSerializerImpl.cpp
|
View
|
|
1 chunk |
+2 lines, -3 lines |
0 comments
|
Download
|
|
M |
public/web/WebNodeCollection.h
|
View
|
1
2
3
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
Total messages: 20 (0 generated)
|