|
Add Traversal<*Element>::firstAncestor() API
Add Traversal<*Element>::firstAncestor() API to traverse elements of a specific
type. It is a common pattern in our code base to traverse the ancestors of a
Node until we find an Element of a specific type. This new firstAncestor() API
makes the code much simpler. This CL already makes use of the new API in
several places.
R=esprehn, eseidel
BUG= 346733
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170211
Total comments: 9
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+82 lines, -116 lines) |
Patch |
|
M |
Source/core/accessibility/AXNodeObject.cpp
|
View
|
1
2
3
4
5
6
|
1 chunk |
+2 lines, -7 lines |
0 comments
|
Download
|
|
M |
Source/core/dom/ElementTraversal.h
|
View
|
1
2
3
4
5
6
|
3 chunks |
+25 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/editing/FrameSelection.cpp
|
View
|
1
2
3
4
5
6
|
2 chunks |
+15 lines, -14 lines |
0 comments
|
Download
|
|
M |
Source/core/html/HTMLElement.cpp
|
View
|
1
2
3
4
5
6
|
2 chunks |
+6 lines, -12 lines |
0 comments
|
Download
|
|
M |
Source/core/html/HTMLEmbedElement.cpp
|
View
|
1
2
3
4
5
6
|
2 chunks |
+4 lines, -7 lines |
0 comments
|
Download
|
|
M |
Source/core/html/HTMLFormControlElement.cpp
|
View
|
1
2
3
4
5
6
|
4 chunks |
+8 lines, -13 lines |
0 comments
|
Download
|
|
M |
Source/core/html/HTMLFrameElement.cpp
|
View
|
|
2 chunks |
+1 line, -10 lines |
0 comments
|
Download
|
|
M |
Source/core/html/HTMLFrameSetElement.cpp
|
View
|
1
2
3
4
|
1 chunk |
+10 lines, -14 lines |
0 comments
|
Download
|
|
M |
Source/core/html/HTMLObjectElement.cpp
|
View
|
1
2
3
4
5
6
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/core/html/HTMLOptGroupElement.cpp
|
View
|
|
2 chunks |
+3 lines, -13 lines |
0 comments
|
Download
|
|
M |
Source/core/html/HTMLOptionElement.cpp
|
View
|
|
1 chunk |
+2 lines, -13 lines |
0 comments
|
Download
|
|
M |
Source/core/html/parser/HTMLTreeBuilder.cpp
|
View
|
1
2
3
4
5
6
|
3 chunks |
+4 lines, -11 lines |
0 comments
|
Download
|
Total messages: 16 (0 generated)
|