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

Side by Side Diff: Source/core/svg/SVGAElement.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/scripts/make_names.pl ('k') | Source/core/svg/SVGAElement.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, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org>
4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org>
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 15 matching lines...) Expand all
26 #include "core/svg/SVGExternalResourcesRequired.h" 26 #include "core/svg/SVGExternalResourcesRequired.h"
27 #include "core/svg/SVGGraphicsElement.h" 27 #include "core/svg/SVGGraphicsElement.h"
28 #include "core/svg/SVGURIReference.h" 28 #include "core/svg/SVGURIReference.h"
29 29
30 namespace WebCore { 30 namespace WebCore {
31 31
32 class SVGAElement FINAL : public SVGGraphicsElement, 32 class SVGAElement FINAL : public SVGGraphicsElement,
33 public SVGURIReference, 33 public SVGURIReference,
34 public SVGExternalResourcesRequired { 34 public SVGExternalResourcesRequired {
35 public: 35 public:
36 static PassRefPtr<SVGAElement> create(const QualifiedName&, Document*); 36 static PassRefPtr<SVGAElement> create(const QualifiedName&, Document&);
37 37
38 private: 38 private:
39 SVGAElement(const QualifiedName&, Document*); 39 SVGAElement(const QualifiedName&, Document&);
40 40
41 virtual bool isValid() const { return SVGTests::isValid(); } 41 virtual bool isValid() const { return SVGTests::isValid(); }
42 42
43 virtual String title() const; 43 virtual String title() const;
44 virtual String target() const { return svgTargetCurrentValue(); } 44 virtual String target() const { return svgTargetCurrentValue(); }
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 49
(...skipping 14 matching lines...) Expand all
64 // That's why it has been renamed to "svgTarget", the CodeGenerators tak e care of calling svgTargetAnimated() instead of targetAnimated(), see CodeGener ator.pm. 64 // That's why it has been renamed to "svgTarget", the CodeGenerators tak e care of calling svgTargetAnimated() instead of targetAnimated(), see CodeGener ator.pm.
65 DECLARE_ANIMATED_STRING(SVGTarget, svgTarget) 65 DECLARE_ANIMATED_STRING(SVGTarget, svgTarget)
66 DECLARE_ANIMATED_STRING(Href, href) 66 DECLARE_ANIMATED_STRING(Href, href)
67 DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesReq uired) 67 DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesReq uired)
68 END_DECLARE_ANIMATED_PROPERTIES 68 END_DECLARE_ANIMATED_PROPERTIES
69 }; 69 };
70 70
71 } // namespace WebCore 71 } // namespace WebCore
72 72
73 #endif // SVGAElement_h 73 #endif // SVGAElement_h
OLDNEW
« no previous file with comments | « Source/core/scripts/make_names.pl ('k') | Source/core/svg/SVGAElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698