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

Side by Side Diff: Source/core/svg/SVGUseElement.h

Issue 169103002: Drop [LegacyImplementedInBaseClass] from SVGURIReference IDL interface (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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/SVGURIReference.idl ('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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 void invalidateDependentShadowTrees(); 47 void invalidateDependentShadowTrees();
48 48
49 RenderObject* rendererClipChild() const; 49 RenderObject* rendererClipChild() const;
50 50
51 SVGAnimatedLength* x() const { return m_x.get(); } 51 SVGAnimatedLength* x() const { return m_x.get(); }
52 SVGAnimatedLength* y() const { return m_y.get(); } 52 SVGAnimatedLength* y() const { return m_y.get(); }
53 SVGAnimatedLength* width() const { return m_width.get(); } 53 SVGAnimatedLength* width() const { return m_width.get(); }
54 SVGAnimatedLength* height() const { return m_height.get(); } 54 SVGAnimatedLength* height() const { return m_height.get(); }
55 55
56 virtual void buildPendingResource() OVERRIDE; 56 virtual void buildPendingResource() OVERRIDE;
57 SVGAnimatedString* href() { return m_href.get(); }
58 57
59 private: 58 private:
60 SVGUseElement(Document&, bool wasInsertedByParser); 59 SVGUseElement(Document&, bool wasInsertedByParser);
61 60
62 virtual bool isStructurallyExternal() const OVERRIDE { return !m_href->curre ntValue()->value().isNull() && isExternalURIReference(m_href->currentValue()->va lue(), document()); } 61 virtual bool isStructurallyExternal() const OVERRIDE { return !hrefString(). isNull() && isExternalURIReference(hrefString(), document()); }
pdr. 2014/02/16 23:53:56 Is this null check needed?
Inactive 2014/02/17 00:30:36 I quickly checked and it seems like it is really n
63 62
64 virtual bool supportsFocus() const OVERRIDE { return hasFocusEventListeners( ); } 63 virtual bool supportsFocus() const OVERRIDE { return hasFocusEventListeners( ); }
65 64
66 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; 65 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE;
67 virtual void removedFrom(ContainerNode*) OVERRIDE; 66 virtual void removedFrom(ContainerNode*) OVERRIDE;
68 67
69 bool isSupportedAttribute(const QualifiedName&); 68 bool isSupportedAttribute(const QualifiedName&);
70 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 69 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
71 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; 70 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE;
72 71
(...skipping 24 matching lines...) Expand all
97 void associateInstancesWithShadowTreeElements(Node* target, SVGElementInstan ce* targetInstance); 96 void associateInstancesWithShadowTreeElements(Node* target, SVGElementInstan ce* targetInstance);
98 SVGElementInstance* instanceForShadowTreeElement(Node* element, SVGElementIn stance* instance) const; 97 SVGElementInstance* instanceForShadowTreeElement(Node* element, SVGElementIn stance* instance) const;
99 98
100 void transferUseAttributesToReplacedElement(SVGElement* from, SVGElement* to ) const; 99 void transferUseAttributesToReplacedElement(SVGElement* from, SVGElement* to ) const;
101 void transferEventListenersToShadowTree(SVGElementInstance* target); 100 void transferEventListenersToShadowTree(SVGElementInstance* target);
102 101
103 RefPtr<SVGAnimatedLength> m_x; 102 RefPtr<SVGAnimatedLength> m_x;
104 RefPtr<SVGAnimatedLength> m_y; 103 RefPtr<SVGAnimatedLength> m_y;
105 RefPtr<SVGAnimatedLength> m_width; 104 RefPtr<SVGAnimatedLength> m_width;
106 RefPtr<SVGAnimatedLength> m_height; 105 RefPtr<SVGAnimatedLength> m_height;
107 RefPtr<SVGAnimatedString> m_href;
108 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGUseElement) 106 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGUseElement)
109 END_DECLARE_ANIMATED_PROPERTIES 107 END_DECLARE_ANIMATED_PROPERTIES
110 108
111 bool resourceIsStillLoading(); 109 bool resourceIsStillLoading();
112 Document* externalDocument() const; 110 Document* externalDocument() const;
113 bool instanceTreeIsLoading(SVGElementInstance*); 111 bool instanceTreeIsLoading(SVGElementInstance*);
114 virtual void notifyFinished(Resource*) OVERRIDE; 112 virtual void notifyFinished(Resource*) OVERRIDE;
115 Document* referencedDocument() const; 113 Document* referencedDocument() const;
116 void setDocumentResource(ResourcePtr<DocumentResource>); 114 void setDocumentResource(ResourcePtr<DocumentResource>);
117 115
118 virtual Timer<SVGElement>* svgLoadEventTimer() OVERRIDE { return &m_svgLoadE ventTimer; } 116 virtual Timer<SVGElement>* svgLoadEventTimer() OVERRIDE { return &m_svgLoadE ventTimer; }
119 117
120 bool m_wasInsertedByParser; 118 bool m_wasInsertedByParser;
121 bool m_haveFiredLoadEvent; 119 bool m_haveFiredLoadEvent;
122 bool m_needsShadowTreeRecreation; 120 bool m_needsShadowTreeRecreation;
123 RefPtr<SVGElementInstance> m_targetElementInstance; 121 RefPtr<SVGElementInstance> m_targetElementInstance;
124 ResourcePtr<DocumentResource> m_resource; 122 ResourcePtr<DocumentResource> m_resource;
125 Timer<SVGElement> m_svgLoadEventTimer; 123 Timer<SVGElement> m_svgLoadEventTimer;
126 }; 124 };
127 125
128 DEFINE_NODE_TYPE_CASTS(SVGUseElement, hasTagName(SVGNames::useTag)); 126 DEFINE_NODE_TYPE_CASTS(SVGUseElement, hasTagName(SVGNames::useTag));
129 127
130 } 128 }
131 129
132 #endif 130 #endif
OLDNEW
« no previous file with comments | « Source/core/svg/SVGURIReference.idl ('k') | Source/core/svg/SVGUseElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698