Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Issue 2485663002: Store CSSPropertyID in SVGAnimatedPropertyBase (Closed)

Created:
4 years, 1 month ago by fs
Modified:
4 years, 1 month ago
Reviewers:
pdr.
CC:
fs, darktears, blink-reviews, blink-reviews-animation_chromium.org, chromium-reviews, krit, Eric Willigers, f(malita), gyuyoung2, kouhei+svg_chromium.org, pdr+svgwatchlist_chromium.org, rjwright, rwlbuis, Stephen Chennney, shans
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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}

Patch Set 1 #

Total comments: 4

Patch Set 2 : constexpr; counting sentinel #

Patch Set 3 : Add missing case #

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

Messages

Total messages: 23 (16 generated)
fs
I realized that having this would help with some other work ('transform' as presentation attribute ...
4 years, 1 month ago (2016-11-08 09:52:47 UTC) #6
pdr.
LGTM, two optional comments. https://codereview.chromium.org/2485663002/diff/1/third_party/WebKit/Source/core/svg/properties/SVGAnimatedProperty.h File third_party/WebKit/Source/core/svg/properties/SVGAnimatedProperty.h (right): https://codereview.chromium.org/2485663002/diff/1/third_party/WebKit/Source/core/svg/properties/SVGAnimatedProperty.h#newcode98 third_party/WebKit/Source/core/svg/properties/SVGAnimatedProperty.h:98: enum { kCssPropertyBits = 9 ...
4 years, 1 month ago (2016-11-08 19:44:12 UTC) #7
fs
https://codereview.chromium.org/2485663002/diff/1/third_party/WebKit/Source/core/svg/properties/SVGAnimatedProperty.h File third_party/WebKit/Source/core/svg/properties/SVGAnimatedProperty.h (right): https://codereview.chromium.org/2485663002/diff/1/third_party/WebKit/Source/core/svg/properties/SVGAnimatedProperty.h#newcode98 third_party/WebKit/Source/core/svg/properties/SVGAnimatedProperty.h:98: enum { kCssPropertyBits = 9 }; On 2016/11/08 at ...
4 years, 1 month ago (2016-11-09 17:37:42 UTC) #10
pdr.
On 2016/11/09 at 17:37:42, fs wrote: > https://codereview.chromium.org/2485663002/diff/1/third_party/WebKit/Source/core/svg/properties/SVGAnimatedProperty.h > File third_party/WebKit/Source/core/svg/properties/SVGAnimatedProperty.h (right): > > https://codereview.chromium.org/2485663002/diff/1/third_party/WebKit/Source/core/svg/properties/SVGAnimatedProperty.h#newcode98 ...
4 years, 1 month ago (2016-11-09 18:42:55 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2485663002/40001
4 years, 1 month ago (2016-11-10 10:16:44 UTC) #20
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-11-10 10:21:59 UTC) #21
commit-bot: I haz the power
4 years, 1 month ago (2016-11-10 10:23:45 UTC) #23
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/96564f72ad4d9b7cf8df82eb0fcd7741c6191631
Cr-Commit-Position: refs/heads/master@{#431229}

Powered by Google App Engine
This is Rietveld 408576698