|
Use new Traversal<SVG*Element> API more in SVG code
Use new Traversal<SVG*Element> API more in SVG code. This makes the code a
bit shorter / simpler.
This CL also defines new DEFINE_ELEMENT_TYPE_CASTS*() macros that do the same
as DEFINE_NODE_TYPE_CASTS*() macros but also provide a template specialization
of isElementOfType<>() so that the Traversal<> API also works for these
Element types. For most types, those helpers are automatically generated from
SVGTagNames.in and those require no additional work.
R=eseidel, pdr
BUG= 346733
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=168790
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+35 lines, -38 lines) |
Patch |
|
M |
Source/core/dom/Element.h
|
View
|
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/svg/SVGAnimateElement.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/svg/SVGElement.h
|
View
|
|
1 chunk |
+1 line, -4 lines |
0 comments
|
Download
|
|
M |
Source/core/svg/SVGFELightElement.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/svg/SVGFEMergeElement.cpp
|
View
|
|
1 chunk |
+5 lines, -7 lines |
0 comments
|
Download
|
|
M |
Source/core/svg/SVGGradientElement.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/svg/SVGGraphicsElement.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/svg/SVGPolyElement.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/svg/SVGSVGElement.cpp
|
View
|
|
2 chunks |
+4 lines, -9 lines |
0 comments
|
Download
|
|
M |
Source/core/svg/SVGTextContentElement.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/svg/SVGTextPositioningElement.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/svg/animation/SMILTimeContainer.h
|
View
|
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
Source/core/svg/animation/SMILTimeContainer.cpp
|
View
|
|
3 chunks |
+4 lines, -7 lines |
0 comments
|
Download
|
|
M |
Source/core/svg/animation/SVGSMILElement.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 4 (0 generated)
|