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

Side by Side Diff: Source/core/svg/SVGGraphicsElement.h

Issue 21498002: Introduce a SVGUnknownElement class for unknown SVG elements (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add comment for SVGUnknownElement Created 7 years, 4 months 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/svg/SVGGradientElement.h ('k') | Source/core/svg/SVGMPathElement.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 virtual void toClipPath(Path&); 50 virtual void toClipPath(Path&);
51 virtual RenderObject* createRenderer(RenderStyle*); 51 virtual RenderObject* createRenderer(RenderStyle*);
52 52
53 protected: 53 protected:
54 SVGGraphicsElement(const QualifiedName&, Document*, ConstructionType = Creat eSVGElement); 54 SVGGraphicsElement(const QualifiedName&, Document*, ConstructionType = Creat eSVGElement);
55 55
56 bool isSupportedAttribute(const QualifiedName&); 56 bool isSupportedAttribute(const QualifiedName&);
57 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 57 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
58 virtual void svgAttributeChanged(const QualifiedName&); 58 virtual void svgAttributeChanged(const QualifiedName&);
59 59
60 virtual bool rendererIsNeeded(const NodeRenderingContext& context) OVERRIDE { return rendererIsNeededInternal(context); }
61
62 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGGraphicsElement) 60 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGGraphicsElement)
63 DECLARE_ANIMATED_TRANSFORM_LIST(Transform, transform) 61 DECLARE_ANIMATED_TRANSFORM_LIST(Transform, transform)
64 END_DECLARE_ANIMATED_PROPERTIES 62 END_DECLARE_ANIMATED_PROPERTIES
65 63
66 private: 64 private:
67 virtual bool isSVGGraphicsElement() const OVERRIDE { return true; } 65 virtual bool isSVGGraphicsElement() const OVERRIDE { return true; }
68 66
69 // SVGTests 67 // SVGTests
70 virtual void synchronizeRequiredFeatures() { SVGTests::synchronizeRequiredFe atures(this); } 68 virtual void synchronizeRequiredFeatures() { SVGTests::synchronizeRequiredFe atures(this); }
71 virtual void synchronizeRequiredExtensions() { SVGTests::synchronizeRequired Extensions(this); } 69 virtual void synchronizeRequiredExtensions() { SVGTests::synchronizeRequired Extensions(this); }
72 virtual void synchronizeSystemLanguage() { SVGTests::synchronizeSystemLangua ge(this); } 70 virtual void synchronizeSystemLanguage() { SVGTests::synchronizeSystemLangua ge(this); }
73 71
74 // Used by <animateMotion> 72 // Used by <animateMotion>
75 OwnPtr<AffineTransform> m_supplementalTransform; 73 OwnPtr<AffineTransform> m_supplementalTransform;
76 }; 74 };
77 75
78 inline SVGGraphicsElement* toSVGGraphicsElement(Node* node) 76 inline SVGGraphicsElement* toSVGGraphicsElement(Node* node)
79 { 77 {
80 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->isSVGElement()); 78 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->isSVGElement());
81 ASSERT_WITH_SECURITY_IMPLICATION(!node || toSVGElement(node)->isSVGGraphicsE lement()); 79 ASSERT_WITH_SECURITY_IMPLICATION(!node || toSVGElement(node)->isSVGGraphicsE lement());
82 return static_cast<SVGGraphicsElement*>(node); 80 return static_cast<SVGGraphicsElement*>(node);
83 } 81 }
84 82
85 } // namespace WebCore 83 } // namespace WebCore
86 84
87 #endif // SVGGraphicsElement_h 85 #endif // SVGGraphicsElement_h
OLDNEW
« no previous file with comments | « Source/core/svg/SVGGradientElement.h ('k') | Source/core/svg/SVGMPathElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698