|
Use more const references in HTMLCollection / LiveNodeList
The code looks safer as it is now obvious the nodes / lists cannot
be null. Also, making them const also makes the code look safer as
we know the nodes are not altered by the methods.
R=esprehn, adamk, eseidel
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=165504
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+143 lines, -144 lines) |
Patch |
|
M |
Source/core/dom/ChildNodeList.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/dom/ChildNodeList.cpp
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/core/dom/ClassNodeList.h
|
View
|
|
1 chunk |
+6 lines, -6 lines |
0 comments
|
Download
|
|
M |
Source/core/dom/ClassNodeList.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/dom/LiveNodeList.h
|
View
|
|
2 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
|
M |
Source/core/dom/LiveNodeList.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/dom/NameNodeList.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/dom/NameNodeList.cpp
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/core/dom/TagNodeList.h
|
View
|
|
2 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
|
M |
Source/core/dom/TagNodeList.cpp
|
View
|
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
Source/core/html/HTMLCollection.h
|
View
|
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
Source/core/html/HTMLCollection.cpp
|
View
|
|
11 chunks |
+86 lines, -86 lines |
0 comments
|
Download
|
|
M |
Source/core/html/HTMLLabelElement.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/html/HTMLLabelElement.cpp
|
View
|
1
|
3 chunks |
+8 lines, -9 lines |
0 comments
|
Download
|
|
M |
Source/core/html/HTMLOptionElement.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/html/HTMLOptionElement.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/html/LabelsNodeList.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/html/LabelsNodeList.cpp
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/core/html/RadioNodeList.h
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/core/html/RadioNodeList.cpp
|
View
|
|
1 chunk |
+8 lines, -8 lines |
0 comments
|
Download
|
Total messages: 12 (0 generated)
|