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

Side by Side Diff: Source/core/svg/SVGTRefElement.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/SVGSymbolElement.cpp ('k') | Source/core/svg/SVGTRefElement.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, 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 13 matching lines...) Expand all
24 #include "core/svg/SVGTextPositioningElement.h" 24 #include "core/svg/SVGTextPositioningElement.h"
25 #include "core/svg/SVGURIReference.h" 25 #include "core/svg/SVGURIReference.h"
26 26
27 namespace WebCore { 27 namespace WebCore {
28 28
29 class SVGTRefTargetEventListener; 29 class SVGTRefTargetEventListener;
30 30
31 class SVGTRefElement FINAL : public SVGTextPositioningElement, 31 class SVGTRefElement FINAL : public SVGTextPositioningElement,
32 public SVGURIReference { 32 public SVGURIReference {
33 public: 33 public:
34 static PassRefPtr<SVGTRefElement> create(const QualifiedName&, Document*); 34 static PassRefPtr<SVGTRefElement> create(const QualifiedName&, Document&);
35 35
36 private: 36 private:
37 friend class SVGTRefTargetEventListener; 37 friend class SVGTRefTargetEventListener;
38 38
39 SVGTRefElement(const QualifiedName&, Document*); 39 SVGTRefElement(const QualifiedName&, Document&);
40 virtual ~SVGTRefElement(); 40 virtual ~SVGTRefElement();
41 41
42 bool isSupportedAttribute(const QualifiedName&); 42 bool isSupportedAttribute(const QualifiedName&);
43 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 43 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
44 virtual void svgAttributeChanged(const QualifiedName&); 44 virtual void svgAttributeChanged(const QualifiedName&);
45 45
46 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; 46 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE;
47 virtual bool childShouldCreateRenderer(const NodeRenderingContext&) const OV ERRIDE; 47 virtual bool childShouldCreateRenderer(const NodeRenderingContext&) const OV ERRIDE;
48 virtual bool rendererIsNeeded(const NodeRenderingContext&) OVERRIDE; 48 virtual bool rendererIsNeeded(const NodeRenderingContext&) OVERRIDE;
49 49
50 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; 50 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE;
51 virtual void removedFrom(ContainerNode*) OVERRIDE; 51 virtual void removedFrom(ContainerNode*) OVERRIDE;
52 52
53 void updateReferencedText(Element*); 53 void updateReferencedText(Element*);
54 54
55 void detachTarget(); 55 void detachTarget();
56 56
57 virtual void buildPendingResource(); 57 virtual void buildPendingResource();
58 58
59 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGTRefElement) 59 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGTRefElement)
60 DECLARE_ANIMATED_STRING(Href, href) 60 DECLARE_ANIMATED_STRING(Href, href)
61 END_DECLARE_ANIMATED_PROPERTIES 61 END_DECLARE_ANIMATED_PROPERTIES
62 62
63 RefPtr<SVGTRefTargetEventListener> m_targetListener; 63 RefPtr<SVGTRefTargetEventListener> m_targetListener;
64 }; 64 };
65 65
66 } // namespace WebCore 66 } // namespace WebCore
67 67
68 #endif 68 #endif
OLDNEW
« no previous file with comments | « Source/core/svg/SVGSymbolElement.cpp ('k') | Source/core/svg/SVGTRefElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698