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

Side by Side Diff: Source/core/svg/SVGPatternElement.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/SVGMetadataElement.h ('k') | Source/core/svg/SVGScriptElement.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, 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 SVGPatternElement(const QualifiedName&, Document*); 55 SVGPatternElement(const QualifiedName&, Document*);
56 56
57 virtual bool isValid() const { return SVGTests::isValid(); } 57 virtual bool isValid() const { return SVGTests::isValid(); }
58 virtual bool needsPendingResourceHandling() const { return false; } 58 virtual bool needsPendingResourceHandling() const { return false; }
59 59
60 bool isSupportedAttribute(const QualifiedName&); 60 bool isSupportedAttribute(const QualifiedName&);
61 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 61 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
62 virtual void svgAttributeChanged(const QualifiedName&); 62 virtual void svgAttributeChanged(const QualifiedName&);
63 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang e = 0, Node* afterChange = 0, int childCountDelta = 0); 63 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang e = 0, Node* afterChange = 0, int childCountDelta = 0);
64 64
65 virtual bool rendererIsNeeded(const NodeRenderingContext& context) OVERRIDE { return rendererIsNeededInternal(context); }
66 virtual RenderObject* createRenderer(RenderStyle*); 65 virtual RenderObject* createRenderer(RenderStyle*);
67 66
68 virtual bool selfHasRelativeLengths() const; 67 virtual bool selfHasRelativeLengths() const;
69 68
70 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGPatternElement) 69 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGPatternElement)
71 DECLARE_ANIMATED_LENGTH(X, x) 70 DECLARE_ANIMATED_LENGTH(X, x)
72 DECLARE_ANIMATED_LENGTH(Y, y) 71 DECLARE_ANIMATED_LENGTH(Y, y)
73 DECLARE_ANIMATED_LENGTH(Width, width) 72 DECLARE_ANIMATED_LENGTH(Width, width)
74 DECLARE_ANIMATED_LENGTH(Height, height) 73 DECLARE_ANIMATED_LENGTH(Height, height)
75 DECLARE_ANIMATED_ENUMERATION(PatternUnits, patternUnits, SVGUnitTypes::S VGUnitType) 74 DECLARE_ANIMATED_ENUMERATION(PatternUnits, patternUnits, SVGUnitTypes::S VGUnitType)
(...skipping 13 matching lines...) Expand all
89 88
90 inline SVGPatternElement* toSVGPatternElement(Node* node) 89 inline SVGPatternElement* toSVGPatternElement(Node* node)
91 { 90 {
92 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(SVGNames::pattern Tag)); 91 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(SVGNames::pattern Tag));
93 return static_cast<SVGPatternElement*>(node); 92 return static_cast<SVGPatternElement*>(node);
94 } 93 }
95 94
96 } // namespace WebCore 95 } // namespace WebCore
97 96
98 #endif 97 #endif
OLDNEW
« no previous file with comments | « Source/core/svg/SVGMetadataElement.h ('k') | Source/core/svg/SVGScriptElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698