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

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

Issue 21042009: [SVG2] Merge SVGStyledElement into SVGElement (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master 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/SVGFETurbulenceElement.idl ('k') | Source/core/svg/SVGFilterElement.cpp » ('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, 2007 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org>
4 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> 4 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
5 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 5 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 10 matching lines...) Expand all
21 */ 21 */
22 22
23 #ifndef SVGFilterElement_h 23 #ifndef SVGFilterElement_h
24 #define SVGFilterElement_h 24 #define SVGFilterElement_h
25 25
26 #include "SVGNames.h" 26 #include "SVGNames.h"
27 #include "core/svg/SVGAnimatedBoolean.h" 27 #include "core/svg/SVGAnimatedBoolean.h"
28 #include "core/svg/SVGAnimatedEnumeration.h" 28 #include "core/svg/SVGAnimatedEnumeration.h"
29 #include "core/svg/SVGAnimatedInteger.h" 29 #include "core/svg/SVGAnimatedInteger.h"
30 #include "core/svg/SVGAnimatedLength.h" 30 #include "core/svg/SVGAnimatedLength.h"
31 #include "core/svg/SVGElement.h"
31 #include "core/svg/SVGExternalResourcesRequired.h" 32 #include "core/svg/SVGExternalResourcesRequired.h"
32 #include "core/svg/SVGStyledElement.h"
33 #include "core/svg/SVGURIReference.h" 33 #include "core/svg/SVGURIReference.h"
34 #include "core/svg/SVGUnitTypes.h" 34 #include "core/svg/SVGUnitTypes.h"
35 35
36 namespace WebCore { 36 namespace WebCore {
37 37
38 class SVGFilterElement FINAL : public SVGStyledElement, 38 class SVGFilterElement FINAL : public SVGElement,
39 public SVGURIReference, 39 public SVGURIReference,
40 public SVGExternalResourcesRequired { 40 public SVGExternalResourcesRequired {
41 public: 41 public:
42 static PassRefPtr<SVGFilterElement> create(const QualifiedName&, Document*); 42 static PassRefPtr<SVGFilterElement> create(const QualifiedName&, Document*);
43 43
44 void setFilterRes(unsigned filterResX, unsigned filterResY); 44 void setFilterRes(unsigned filterResX, unsigned filterResY);
45 45
46 private: 46 private:
47 SVGFilterElement(const QualifiedName&, Document*); 47 SVGFilterElement(const QualifiedName&, Document*);
48 48
49 virtual bool needsPendingResourceHandling() const { return false; } 49 virtual bool needsPendingResourceHandling() const { return false; }
50 50
51 bool isSupportedAttribute(const QualifiedName&); 51 bool isSupportedAttribute(const QualifiedName&);
52 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 52 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
53 virtual void svgAttributeChanged(const QualifiedName&); 53 virtual void svgAttributeChanged(const QualifiedName&);
54 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang e = 0, Node* afterChange = 0, int childCountDelta = 0); 54 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang e = 0, Node* afterChange = 0, int childCountDelta = 0);
55 55
56 virtual bool rendererIsNeeded(const NodeRenderingContext& context) OVERRIDE { return rendererIsNeededInternal(context); }
56 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; 57 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE;
57 virtual bool childShouldCreateRenderer(const NodeRenderingContext&) const OV ERRIDE; 58 virtual bool childShouldCreateRenderer(const NodeRenderingContext&) const OV ERRIDE;
58 59
59 virtual bool selfHasRelativeLengths() const; 60 virtual bool selfHasRelativeLengths() const;
60 61
61 static const AtomicString& filterResXIdentifier(); 62 static const AtomicString& filterResXIdentifier();
62 static const AtomicString& filterResYIdentifier(); 63 static const AtomicString& filterResYIdentifier();
63 64
64 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGFilterElement) 65 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGFilterElement)
65 DECLARE_ANIMATED_ENUMERATION(FilterUnits, filterUnits, SVGUnitTypes::SVG UnitType) 66 DECLARE_ANIMATED_ENUMERATION(FilterUnits, filterUnits, SVGUnitTypes::SVG UnitType)
(...skipping 11 matching lines...) Expand all
77 78
78 inline SVGFilterElement* toSVGFilterElement(Node* node) 79 inline SVGFilterElement* toSVGFilterElement(Node* node)
79 { 80 {
80 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(SVGNames::filterT ag)); 81 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(SVGNames::filterT ag));
81 return static_cast<SVGFilterElement*>(node); 82 return static_cast<SVGFilterElement*>(node);
82 } 83 }
83 84
84 } 85 }
85 86
86 #endif 87 #endif
OLDNEW
« no previous file with comments | « Source/core/svg/SVGFETurbulenceElement.idl ('k') | Source/core/svg/SVGFilterElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698