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

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

Issue 2251073002: CSS: SVG use elements replicate updates to style (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: instance not <use> subtree Created 4 years, 4 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, 2014 Apple Inc. All rights reserved. 4 * Copyright (C) 2009, 2014 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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 WTF_MAKE_NONCOPYABLE(InstanceUpdateBlocker); 173 WTF_MAKE_NONCOPYABLE(InstanceUpdateBlocker);
174 public: 174 public:
175 InstanceUpdateBlocker(SVGElement* targetElement); 175 InstanceUpdateBlocker(SVGElement* targetElement);
176 ~InstanceUpdateBlocker(); 176 ~InstanceUpdateBlocker();
177 177
178 private: 178 private:
179 Member<SVGElement> m_targetElement; 179 Member<SVGElement> m_targetElement;
180 }; 180 };
181 181
182 void invalidateInstances(); 182 void invalidateInstances();
183 void instancesNeedsStyleRecalc(StyleChangeType, const StyleChangeReasonForTr acing&);
rune 2016/08/18 23:43:07 Name sounds like returning a bool to me. How about
Eric Willigers 2016/08/19 00:44:19 Done.
183 184
184 DECLARE_VIRTUAL_TRACE(); 185 DECLARE_VIRTUAL_TRACE();
185 186
186 static const AtomicString& eventParameterName(); 187 static const AtomicString& eventParameterName();
187 188
188 bool isPresentationAttribute(const QualifiedName&) const override; 189 bool isPresentationAttribute(const QualifiedName&) const override;
189 virtual bool isPresentationAttributeWithSVGDOM(const QualifiedName&) const { return false; } 190 virtual bool isPresentationAttributeWithSVGDOM(const QualifiedName&) const { return false; }
190 191
191 protected: 192 protected:
192 SVGElement(const QualifiedName&, Document&, ConstructionType = CreateSVGElem ent); 193 SVGElement(const QualifiedName&, Document&, ConstructionType = CreateSVGElem ent);
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 template<typename T> inline bool is##thisType(const T* node) { return is##th isType(node); } \ 281 template<typename T> inline bool is##thisType(const T* node) { return is##th isType(node); } \
281 template<typename T> inline bool is##thisType(const Member<T>& node) { retur n is##thisType(node.get()); } \ 282 template<typename T> inline bool is##thisType(const Member<T>& node) { retur n is##thisType(node.get()); } \
282 template <> inline bool isElementOfType<const thisType>(const SVGElement& el ement) { return is##thisType(element); } \ 283 template <> inline bool isElementOfType<const thisType>(const SVGElement& el ement) { return is##thisType(element); } \
283 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) 284 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType)
284 285
285 } // namespace blink 286 } // namespace blink
286 287
287 #include "core/SVGElementTypeHelpers.h" 288 #include "core/SVGElementTypeHelpers.h"
288 289
289 #endif // SVGElement_h 290 #endif // SVGElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698