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

Side by Side Diff: Source/core/svg/SVGRectElement.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/SVGRadialGradientElement.cpp ('k') | Source/core/svg/SVGRectElement.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, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2006, 2008 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 * 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 14 matching lines...) Expand all
25 #include "core/svg/SVGAnimatedBoolean.h" 25 #include "core/svg/SVGAnimatedBoolean.h"
26 #include "core/svg/SVGAnimatedLength.h" 26 #include "core/svg/SVGAnimatedLength.h"
27 #include "core/svg/SVGExternalResourcesRequired.h" 27 #include "core/svg/SVGExternalResourcesRequired.h"
28 #include "core/svg/SVGGraphicsElement.h" 28 #include "core/svg/SVGGraphicsElement.h"
29 29
30 namespace WebCore { 30 namespace WebCore {
31 31
32 class SVGRectElement FINAL : public SVGGraphicsElement, 32 class SVGRectElement FINAL : public SVGGraphicsElement,
33 public SVGExternalResourcesRequired { 33 public SVGExternalResourcesRequired {
34 public: 34 public:
35 static PassRefPtr<SVGRectElement> create(const QualifiedName&, Document*); 35 static PassRefPtr<SVGRectElement> create(const QualifiedName&, Document&);
36 36
37 private: 37 private:
38 SVGRectElement(const QualifiedName&, Document*); 38 SVGRectElement(const QualifiedName&, Document&);
39 39
40 virtual bool isValid() const { return SVGTests::isValid(); } 40 virtual bool isValid() const { return SVGTests::isValid(); }
41 virtual bool supportsFocus() const OVERRIDE { return hasFocusEventListeners( ); } 41 virtual bool supportsFocus() const OVERRIDE { return hasFocusEventListeners( ); }
42 42
43 bool isSupportedAttribute(const QualifiedName&); 43 bool isSupportedAttribute(const QualifiedName&);
44 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 44 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
45 virtual void svgAttributeChanged(const QualifiedName&); 45 virtual void svgAttributeChanged(const QualifiedName&);
46 46
47 virtual bool selfHasRelativeLengths() const; 47 virtual bool selfHasRelativeLengths() const;
48 48
(...skipping 12 matching lines...) Expand all
61 61
62 inline SVGRectElement* toSVGRectElement(Node* node) 62 inline SVGRectElement* toSVGRectElement(Node* node)
63 { 63 {
64 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(SVGNames::rectTag )); 64 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(SVGNames::rectTag ));
65 return static_cast<SVGRectElement*>(node); 65 return static_cast<SVGRectElement*>(node);
66 } 66 }
67 67
68 } // namespace WebCore 68 } // namespace WebCore
69 69
70 #endif 70 #endif
OLDNEW
« no previous file with comments | « Source/core/svg/SVGRadialGradientElement.cpp ('k') | Source/core/svg/SVGRectElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698