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

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: DECLARE_VIRTUAL_TRACE 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 36
37 Path asPath() const override; 37 Path asPath() const override;
38 38
39 float getTotalLength(); 39 float getTotalLength();
40 PassRefPtrWillBeRawPtr<SVGPointTearOff> getPointAtLength(float distance); 40 PassRefPtrWillBeRawPtr<SVGPointTearOff> getPointAtLength(float distance);
41 unsigned getPathSegAtLength(float distance); 41 unsigned getPathSegAtLength(float distance);
42 42
43 SVGAnimatedPath* path() { return m_path.get(); } 43 SVGAnimatedPath* path() { return m_path.get(); }
44 SVGAnimatedNumber* pathLength() { return m_pathLength.get(); } 44 SVGAnimatedNumber* pathLength() { return m_pathLength.get(); }
45 45
46 const SVGPathByteStream& pathByteStream() const;
47
48 bool isPresentationAttribute(const QualifiedName&) const override;
49 bool isPresentationAttributeWithSVGDOM(const QualifiedName&) const override;
50
46 DECLARE_VIRTUAL_TRACE(); 51 DECLARE_VIRTUAL_TRACE();
47 52
48 private: 53 private:
49 explicit SVGPathElement(Document&); 54 explicit SVGPathElement(Document&);
50 55
51 void svgAttributeChanged(const QualifiedName&) override; 56 void svgAttributeChanged(const QualifiedName&) override;
52 57
58 void collectStyleForPresentationAttribute(const QualifiedName&, const Atomic String&, MutableStylePropertySet*) override;
59
53 Node::InsertionNotificationRequest insertedInto(ContainerNode*) override; 60 Node::InsertionNotificationRequest insertedInto(ContainerNode*) override;
54 void removedFrom(ContainerNode* insertionPoint, Node* next) override; 61 void removedFrom(ContainerNode* insertionPoint, Node* next) override;
55 62
56 void invalidateMPathDependencies(); 63 void invalidateMPathDependencies();
57 64
58 RefPtrWillBeMember<SVGAnimatedNumber> m_pathLength; 65 RefPtrWillBeMember<SVGAnimatedNumber> m_pathLength;
59 RefPtrWillBeMember<SVGAnimatedPath> m_path; 66 RefPtrWillBeMember<SVGAnimatedPath> m_path;
60 }; 67 };
61 68
62 } // namespace blink 69 } // namespace blink
63 70
64 #endif // SVGPathElement_h 71 #endif // SVGPathElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698