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

Side by Side Diff: Source/core/svg/SVGMaskElement.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/SVGMarkerElement.cpp ('k') | Source/core/svg/SVGMaskElement.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) 2005 Alexander Kellett <lypanov@kde.org> 2 * Copyright (C) 2005 Alexander Kellett <lypanov@kde.org>
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 17 matching lines...) Expand all
28 #include "core/svg/SVGExternalResourcesRequired.h" 28 #include "core/svg/SVGExternalResourcesRequired.h"
29 #include "core/svg/SVGTests.h" 29 #include "core/svg/SVGTests.h"
30 #include "core/svg/SVGUnitTypes.h" 30 #include "core/svg/SVGUnitTypes.h"
31 31
32 namespace WebCore { 32 namespace WebCore {
33 33
34 class SVGMaskElement FINAL : public SVGElement, 34 class SVGMaskElement FINAL : public SVGElement,
35 public SVGTests, 35 public SVGTests,
36 public SVGExternalResourcesRequired { 36 public SVGExternalResourcesRequired {
37 public: 37 public:
38 static PassRefPtr<SVGMaskElement> create(const QualifiedName&, Document*); 38 static PassRefPtr<SVGMaskElement> create(const QualifiedName&, Document&);
39 39
40 private: 40 private:
41 SVGMaskElement(const QualifiedName&, Document*); 41 SVGMaskElement(const QualifiedName&, Document&);
42 42
43 virtual bool isValid() const { return SVGTests::isValid(); } 43 virtual bool isValid() const { return SVGTests::isValid(); }
44 virtual bool needsPendingResourceHandling() const { return false; } 44 virtual bool needsPendingResourceHandling() const { return false; }
45 45
46 bool isSupportedAttribute(const QualifiedName&); 46 bool isSupportedAttribute(const QualifiedName&);
47 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 47 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
48 virtual void svgAttributeChanged(const QualifiedName&); 48 virtual void svgAttributeChanged(const QualifiedName&);
49 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang e = 0, Node* afterChange = 0, int childCountDelta = 0); 49 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang e = 0, Node* afterChange = 0, int childCountDelta = 0);
50 50
51 virtual RenderObject* createRenderer(RenderStyle*); 51 virtual RenderObject* createRenderer(RenderStyle*);
(...skipping 18 matching lines...) Expand all
70 70
71 inline SVGMaskElement* toSVGMaskElement(Node* node) 71 inline SVGMaskElement* toSVGMaskElement(Node* node)
72 { 72 {
73 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(SVGNames::maskTag )); 73 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(SVGNames::maskTag ));
74 return static_cast<SVGMaskElement*>(node); 74 return static_cast<SVGMaskElement*>(node);
75 } 75 }
76 76
77 } 77 }
78 78
79 #endif 79 #endif
OLDNEW
« no previous file with comments | « Source/core/svg/SVGMarkerElement.cpp ('k') | Source/core/svg/SVGMaskElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698