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

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGPathElement.h

Issue 2485663002: Store CSSPropertyID in SVGAnimatedPropertyBase (Closed)
Patch Set: Add missing case Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org>
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 SVGPointTearOff* getPointAtLength(float distance) override; 44 SVGPointTearOff* getPointAtLength(float distance) override;
45 unsigned getPathSegAtLength(float distance); 45 unsigned getPathSegAtLength(float distance);
46 46
47 SVGAnimatedPath* path() const { return m_path.get(); } 47 SVGAnimatedPath* path() const { return m_path.get(); }
48 SVGAnimatedNumber* pathLength() const { return m_pathLength.get(); } 48 SVGAnimatedNumber* pathLength() const { return m_pathLength.get(); }
49 float pathLengthScaleFactor() const; 49 float pathLengthScaleFactor() const;
50 const SVGPathByteStream& pathByteStream() const { 50 const SVGPathByteStream& pathByteStream() const {
51 return stylePath()->byteStream(); 51 return stylePath()->byteStream();
52 } 52 }
53 53
54 bool isPresentationAttribute(const QualifiedName&) const override;
55 bool isPresentationAttributeWithSVGDOM(const QualifiedName&) const override;
56
57 FloatRect getBBox() override; 54 FloatRect getBBox() override;
58 55
59 DECLARE_VIRTUAL_TRACE(); 56 DECLARE_VIRTUAL_TRACE();
60 57
61 private: 58 private:
62 explicit SVGPathElement(Document&); 59 explicit SVGPathElement(Document&);
63 60
64 const StylePath* stylePath() const; 61 const StylePath* stylePath() const;
65 62
66 void svgAttributeChanged(const QualifiedName&) override; 63 void svgAttributeChanged(const QualifiedName&) override;
67 64
68 void collectStyleForPresentationAttribute(const QualifiedName&, 65 void collectStyleForPresentationAttribute(const QualifiedName&,
69 const AtomicString&, 66 const AtomicString&,
70 MutableStylePropertySet*) override; 67 MutableStylePropertySet*) override;
71 68
72 Node::InsertionNotificationRequest insertedInto(ContainerNode*) override; 69 Node::InsertionNotificationRequest insertedInto(ContainerNode*) override;
73 void removedFrom(ContainerNode*) override; 70 void removedFrom(ContainerNode*) override;
74 71
75 void invalidateMPathDependencies(); 72 void invalidateMPathDependencies();
76 73
77 Member<SVGAnimatedNumber> m_pathLength; 74 Member<SVGAnimatedNumber> m_pathLength;
78 Member<SVGAnimatedPath> m_path; 75 Member<SVGAnimatedPath> m_path;
79 }; 76 };
80 77
81 } // namespace blink 78 } // namespace blink
82 79
83 #endif // SVGPathElement_h 80 #endif // SVGPathElement_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGMaskElement.cpp ('k') | third_party/WebKit/Source/core/svg/SVGPathElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698