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

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

Issue 1439793003: SVG: Promote d to a property (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CSSPropertyParser Created 5 years 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 25 matching lines...) Expand all
36 DECLARE_NODE_FACTORY(SVGPathElement); 36 DECLARE_NODE_FACTORY(SVGPathElement);
37 37
38 Path asPath() const override; 38 Path asPath() const override;
39 39
40 float getTotalLength(); 40 float getTotalLength();
41 PassRefPtrWillBeRawPtr<SVGPointTearOff> getPointAtLength(float distance); 41 PassRefPtrWillBeRawPtr<SVGPointTearOff> getPointAtLength(float distance);
42 unsigned getPathSegAtLength(float distance); 42 unsigned getPathSegAtLength(float distance);
43 43
44 SVGAnimatedNumber* pathLength() { return m_pathLength.get(); } 44 SVGAnimatedNumber* pathLength() { return m_pathLength.get(); }
45 45
46 const SVGPathByteStream& pathByteStream() const { return m_path->currentValu e()->byteStream(); } 46 const SVGPathByteStream& pathByteStream() const;
47
48 bool isPresentationAttribute(const QualifiedName&) const override;
49 bool isPresentationAttributeWithSVGDOM(const QualifiedName&) const override;
47 50
48 DECLARE_VIRTUAL_TRACE(); 51 DECLARE_VIRTUAL_TRACE();
49 52
50 private: 53 private:
51 explicit SVGPathElement(Document&); 54 explicit SVGPathElement(Document&);
52 55
53 void svgAttributeChanged(const QualifiedName&) override; 56 void svgAttributeChanged(const QualifiedName&) override;
54 57
58 void collectStyleForPresentationAttribute(const QualifiedName&, const Atomic String&, MutableStylePropertySet*) override;
59
55 Node::InsertionNotificationRequest insertedInto(ContainerNode*) override; 60 Node::InsertionNotificationRequest insertedInto(ContainerNode*) override;
56 void removedFrom(ContainerNode*) override; 61 void removedFrom(ContainerNode*) override;
57 62
58 void invalidateMPathDependencies(); 63 void invalidateMPathDependencies();
59 64
60 RefPtrWillBeMember<SVGAnimatedNumber> m_pathLength; 65 RefPtrWillBeMember<SVGAnimatedNumber> m_pathLength;
61 RefPtrWillBeMember<SVGAnimatedPath> m_path; 66 RefPtrWillBeMember<SVGAnimatedPath> m_path;
62 }; 67 };
63 68
64 } // namespace blink 69 } // namespace blink
65 70
66 #endif // SVGPathElement_h 71 #endif // SVGPathElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698