|
Store CSSPropertyID in SVGAnimatedPropertyBase
With an increasing amount of SVG attributes being "promoted" to
presentation attributes, it makes sense to try to keep the property
mapping with the other attribute related data.
To make room for these additional bits in SVGAnimatedPropertyBase, pack
some of its fields into a bitfield:
* m_isReadOnly only needs a single bit.
* m_type only need room for 21 different values, so 5 bits should
suffice.
With this new field in place, plumb it through for SVG element
attributes, then, as a start, use the SVG property map to simplify the
implementations of isPresentationAttributeWithSVGDOM and
isPresentationAttribute.
This could also be used to provide storage for attribute initial values
in the future (crbug.com/225807.)
BUG= 225807, 369942
Committed: https://crrev.com/96564f72ad4d9b7cf8df82eb0fcd7741c6191631
Cr-Commit-Position: refs/heads/master@{#431229}
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+168 lines, -238 lines) |
Patch |
|
M |
third_party/WebKit/Source/core/svg/SVGAnimatedLength.h
|
View
|
|
2 chunks |
+11 lines, -6 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/svg/SVGAnimatedPath.h
|
View
|
|
1 chunk |
+8 lines, -4 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/svg/SVGAnimatedPath.cpp
|
View
|
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/svg/SVGAnimatedTypeAnimator.cpp
|
View
|
1
2
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/svg/SVGCircleElement.h
|
View
|
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/svg/SVGCircleElement.cpp
|
View
|
|
2 chunks |
+6 lines, -19 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/svg/SVGElement.h
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/svg/SVGElement.cpp
|
View
|
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/svg/SVGEllipseElement.h
|
View
|
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/svg/SVGEllipseElement.cpp
|
View
|
|
2 chunks |
+10 lines, -23 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/svg/SVGForeignObjectElement.h
|
View
|
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/svg/SVGForeignObjectElement.cpp
|
View
|
|
2 chunks |
+10 lines, -23 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/svg/SVGImageElement.h
|
View
|
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/svg/SVGImageElement.cpp
|
View
|
|
2 chunks |
+10 lines, -23 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/svg/SVGMaskElement.h
|
View
|
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/svg/SVGMaskElement.cpp
|
View
|
|
2 chunks |
+10 lines, -23 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/svg/SVGPathElement.h
|
View
|
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/svg/SVGPathElement.cpp
|
View
|
|
2 chunks |
+1 line, -15 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/svg/SVGRectElement.h
|
View
|
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/svg/SVGRectElement.cpp
|
View
|
|
2 chunks |
+16 lines, -30 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/svg/SVGSVGElement.cpp
|
View
|
|
2 chunks |
+15 lines, -15 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/svg/SVGUseElement.h
|
View
|
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/svg/SVGUseElement.cpp
|
View
|
|
2 chunks |
+4 lines, -16 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/svg/properties/SVGAnimatedProperty.h
|
View
|
1
|
8 chunks |
+44 lines, -16 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/svg/properties/SVGAnimatedProperty.cpp
|
View
|
|
1 chunk |
+7 lines, -3 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/svg/properties/SVGPropertyInfo.h
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
Total messages: 23 (16 generated)
|