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

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

Issue 23886003: Have HTMLElements / SVGElements constructors take a Document reference in argument (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Another Android build fix Created 7 years, 3 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.cpp ('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 21 matching lines...) Expand all
32 #include "core/svg/SVGExternalResourcesRequired.h" 32 #include "core/svg/SVGExternalResourcesRequired.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 SVGElement, 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 RenderObject* createRenderer(RenderStyle*) OVERRIDE; 56 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE;
57 virtual bool childShouldCreateRenderer(const NodeRenderingContext&) const OV ERRIDE; 57 virtual bool childShouldCreateRenderer(const NodeRenderingContext&) const OV ERRIDE;
(...skipping 19 matching lines...) Expand all
77 77
78 inline SVGFilterElement* toSVGFilterElement(Node* node) 78 inline SVGFilterElement* toSVGFilterElement(Node* node)
79 { 79 {
80 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(SVGNames::filterT ag)); 80 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(SVGNames::filterT ag));
81 return static_cast<SVGFilterElement*>(node); 81 return static_cast<SVGFilterElement*>(node);
82 } 82 }
83 83
84 } 84 }
85 85
86 #endif 86 #endif
OLDNEW
« no previous file with comments | « Source/core/svg/SVGFETurbulenceElement.cpp ('k') | Source/core/svg/SVGFilterElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698