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

Side by Side Diff: Source/core/svg/SVGUseElement.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/SVGUnknownElement.cpp ('k') | Source/core/svg/SVGUseElement.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, 2008 Nikolas Zimmermann <zimmermann@kde .org> 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde .org>
3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007 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 21 matching lines...) Expand all
32 namespace WebCore { 32 namespace WebCore {
33 33
34 class DocumentResource; 34 class DocumentResource;
35 class SVGElementInstance; 35 class SVGElementInstance;
36 36
37 class SVGUseElement FINAL : public SVGGraphicsElement, 37 class SVGUseElement FINAL : public SVGGraphicsElement,
38 public SVGExternalResourcesRequired, 38 public SVGExternalResourcesRequired,
39 public SVGURIReference, 39 public SVGURIReference,
40 public DocumentResourceClient { 40 public DocumentResourceClient {
41 public: 41 public:
42 static PassRefPtr<SVGUseElement> create(const QualifiedName&, Document*, boo l wasInsertedByParser); 42 static PassRefPtr<SVGUseElement> create(const QualifiedName&, Document&, boo l wasInsertedByParser);
43 virtual ~SVGUseElement(); 43 virtual ~SVGUseElement();
44 44
45 SVGElementInstance* instanceRoot(); 45 SVGElementInstance* instanceRoot();
46 SVGElementInstance* animatedInstanceRoot() const; 46 SVGElementInstance* animatedInstanceRoot() const;
47 SVGElementInstance* instanceForShadowTreeElement(Node*) const; 47 SVGElementInstance* instanceForShadowTreeElement(Node*) const;
48 void invalidateShadowTree(); 48 void invalidateShadowTree();
49 void invalidateDependentShadowTrees(); 49 void invalidateDependentShadowTrees();
50 50
51 RenderObject* rendererClipChild() const; 51 RenderObject* rendererClipChild() const;
52 52
53 private: 53 private:
54 SVGUseElement(const QualifiedName&, Document*, bool wasInsertedByParser); 54 SVGUseElement(const QualifiedName&, Document&, bool wasInsertedByParser);
55 55
56 virtual bool isValid() const { return SVGTests::isValid(); } 56 virtual bool isValid() const { return SVGTests::isValid(); }
57 virtual bool supportsFocus() const OVERRIDE { return hasFocusEventListeners( ); } 57 virtual bool supportsFocus() const OVERRIDE { return hasFocusEventListeners( ); }
58 58
59 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; 59 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE;
60 virtual void removedFrom(ContainerNode*) OVERRIDE; 60 virtual void removedFrom(ContainerNode*) OVERRIDE;
61 virtual void buildPendingResource(); 61 virtual void buildPendingResource();
62 62
63 bool isSupportedAttribute(const QualifiedName&); 63 bool isSupportedAttribute(const QualifiedName&);
64 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 64 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 128
129 inline SVGUseElement* toSVGUseElement(Node* node) 129 inline SVGUseElement* toSVGUseElement(Node* node)
130 { 130 {
131 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(SVGNames::useTag) ); 131 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(SVGNames::useTag) );
132 return static_cast<SVGUseElement*>(node); 132 return static_cast<SVGUseElement*>(node);
133 } 133 }
134 134
135 } 135 }
136 136
137 #endif 137 #endif
OLDNEW
« no previous file with comments | « Source/core/svg/SVGUnknownElement.cpp ('k') | Source/core/svg/SVGUseElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698