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

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

Issue 266063002: Store SVGElement instead of SVGElementInstance for instancesForElement (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Also check that ShadowRoot type is UserAgentShadowRoot Created 6 years, 7 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
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 * Copyright (C) 2009 Apple Inc. All rights reserved. 4 * Copyright (C) 2009 Apple Inc. All rights reserved.
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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 void sendSVGLoadEventIfPossible(bool sendParentLoadEvents = false); 101 void sendSVGLoadEventIfPossible(bool sendParentLoadEvents = false);
102 void sendSVGLoadEventIfPossibleAsynchronously(); 102 void sendSVGLoadEventIfPossibleAsynchronously();
103 void svgLoadEventTimerFired(Timer<SVGElement>*); 103 void svgLoadEventTimerFired(Timer<SVGElement>*);
104 virtual Timer<SVGElement>* svgLoadEventTimer(); 104 virtual Timer<SVGElement>* svgLoadEventTimer();
105 105
106 virtual AffineTransform* supplementalTransform() { return 0; } 106 virtual AffineTransform* supplementalTransform() { return 0; }
107 107
108 void invalidateSVGAttributes() { ensureUniqueElementData().m_animatedSVGAttr ibutesAreDirty = true; } 108 void invalidateSVGAttributes() { ensureUniqueElementData().m_animatedSVGAttr ibutesAreDirty = true; }
109 void invalidateSVGPresentationAttributeStyle() { ensureUniqueElementData().m _presentationAttributeStyleIsDirty = true; } 109 void invalidateSVGPresentationAttributeStyle() { ensureUniqueElementData().m _presentationAttributeStyleIsDirty = true; }
110 110
111 const HashSet<SVGElementInstance*>& instancesForElement() const; 111 const HashSet<SVGElement*>& instancesForElement() const;
112 112
113 bool getBoundingBox(FloatRect&); 113 bool getBoundingBox(FloatRect&);
114 114
115 void setCursorElement(SVGCursorElement*); 115 void setCursorElement(SVGCursorElement*);
116 void setCursorImageValue(CSSCursorImageValue*); 116 void setCursorImageValue(CSSCursorImageValue*);
117 #if !ENABLE(OILPAN) 117 #if !ENABLE(OILPAN)
118 void cursorElementRemoved(); 118 void cursorElementRemoved();
119 void cursorImageValueRemoved(); 119 void cursorImageValueRemoved();
120 #endif 120 #endif
121 121
122 SVGElement* correspondingElement(); 122 SVGElement* correspondingElement();
123 void setCorrespondingElement(SVGElement*); 123 void setCorrespondingElement(SVGElement*);
124 SVGUseElement* correspondingUseElement();
pdr. 2014/05/04 00:03:03 SVGUseElement* correspondingUseElement() const;
124 125
125 void synchronizeAnimatedSVGAttribute(const QualifiedName&) const; 126 void synchronizeAnimatedSVGAttribute(const QualifiedName&) const;
126 127
127 virtual PassRefPtr<RenderStyle> customStyleForRenderer() OVERRIDE FINAL; 128 virtual PassRefPtr<RenderStyle> customStyleForRenderer() OVERRIDE FINAL;
128 129
129 virtual void synchronizeRequiredFeatures() { } 130 virtual void synchronizeRequiredFeatures() { }
130 virtual void synchronizeRequiredExtensions() { } 131 virtual void synchronizeRequiredExtensions() { }
131 virtual void synchronizeSystemLanguage() { } 132 virtual void synchronizeSystemLanguage() { }
132 133
133 #ifndef NDEBUG 134 #ifndef NDEBUG
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 static bool equal(const QualifiedName& a, const QualifiedName& b) { return a .matches(b); } 233 static bool equal(const QualifiedName& a, const QualifiedName& b) { return a .matches(b); }
233 }; 234 };
234 235
235 DEFINE_ELEMENT_TYPE_CASTS(SVGElement, isSVGElement()); 236 DEFINE_ELEMENT_TYPE_CASTS(SVGElement, isSVGElement());
236 237
237 template <> inline bool isElementOfType<const SVGElement>(const Node& node) { re turn node.isSVGElement(); } 238 template <> inline bool isElementOfType<const SVGElement>(const Node& node) { re turn node.isSVGElement(); }
238 239
239 } 240 }
240 241
241 #endif 242 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698