|
Avoid WTF::Vector::at() and operator[] in core/dom.
at() and operator[] are slow due to RELEASE_ASSERT. We can avoid the slowness by
range-based |for|.
This CL has no behavior changes except runtime performance.
BUG= 668300
Committed: https://crrev.com/a9f3df455d2ea2b360dda396e86df6fdff49dbe8
Cr-Commit-Position: refs/heads/master@{#436875}
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+87 lines, -111 lines) |
Patch |
 |
M |
third_party/WebKit/Source/core/dom/CSSSelectorWatch.cpp
|
View
|
|
3 chunks |
+4 lines, -6 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/dom/ClientRectList.cpp
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/dom/CompositorProxy.cpp
|
View
|
|
1 chunk |
+2 lines, -4 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/dom/DOMStringList.cpp
|
View
|
|
1 chunk |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/dom/DOMTokenList.cpp
|
View
|
|
4 chunks |
+11 lines, -11 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/dom/FrameRequestCallbackCollection.cpp
|
View
|
|
2 chunks |
+5 lines, -7 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/dom/MutationObserver.cpp
|
View
|
|
4 chunks |
+12 lines, -13 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/dom/Node.cpp
|
View
|
|
5 chunks |
+11 lines, -15 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/dom/ScriptedAnimationController.cpp
|
View
|
|
2 chunks |
+7 lines, -7 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/dom/SelectorQuery.cpp
|
View
|
|
4 chunks |
+11 lines, -15 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/dom/SpaceSplitString.h
|
View
|
|
1 chunk |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/dom/StyleEngine.cpp
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/dom/TreeScopeStyleSheetCollection.cpp
|
View
|
|
3 chunks |
+8 lines, -9 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/dom/custom/V0CustomElementAsyncImportMicrotaskQueue.cpp
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/dom/custom/V0CustomElementMicrotaskQueueBase.cpp
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/dom/shadow/ElementShadowV0.cpp
|
View
|
|
1 chunk |
+1 line, -4 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/dom/shadow/InsertionPoint.cpp
|
View
|
|
1 chunk |
+1 line, -4 lines |
0 comments
|
Download
|
Total messages: 19 (14 generated)
|