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

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

Issue 2623513005: Introduce Element::AttributeModificationParams (Closed)
Patch Set: Created 3 years, 11 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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 static const AtomicString& eventParameterName(); 204 static const AtomicString& eventParameterName();
205 205
206 bool isPresentationAttribute(const QualifiedName&) const override; 206 bool isPresentationAttribute(const QualifiedName&) const override;
207 virtual bool isPresentationAttributeWithSVGDOM(const QualifiedName&) const; 207 virtual bool isPresentationAttributeWithSVGDOM(const QualifiedName&) const;
208 208
209 protected: 209 protected:
210 SVGElement(const QualifiedName&, 210 SVGElement(const QualifiedName&,
211 Document&, 211 Document&,
212 ConstructionType = CreateSVGElement); 212 ConstructionType = CreateSVGElement);
213 213
214 void parseAttribute(const QualifiedName&, 214 void parseAttribute(const AttributeModificationParams&) override;
215 const AtomicString&, 215 void attributeChanged(const AttributeModificationParams&) override;
216 const AtomicString&) override;
217
218 void attributeChanged(const QualifiedName&,
219 const AtomicString&,
220 const AtomicString&,
221 AttributeModificationReason) override;
222 216
223 void collectStyleForPresentationAttribute(const QualifiedName&, 217 void collectStyleForPresentationAttribute(const QualifiedName&,
224 const AtomicString&, 218 const AtomicString&,
225 MutableStylePropertySet*) override; 219 MutableStylePropertySet*) override;
226 220
227 InsertionNotificationRequest insertedInto(ContainerNode*) override; 221 InsertionNotificationRequest insertedInto(ContainerNode*) override;
228 void removedFrom(ContainerNode*) override; 222 void removedFrom(ContainerNode*) override;
229 void childrenChanged(const ChildrenChange&) override; 223 void childrenChanged(const ChildrenChange&) override;
230 224
231 static CSSPropertyID cssPropertyIdForSVGAttributeName(const QualifiedName&); 225 static CSSPropertyID cssPropertyIdForSVGAttributeName(const QualifiedName&);
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 inline bool isElementOfType<const thisType>(const SVGElement& element) { \ 330 inline bool isElementOfType<const thisType>(const SVGElement& element) { \
337 return is##thisType(element); \ 331 return is##thisType(element); \
338 } \ 332 } \
339 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) 333 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType)
340 334
341 } // namespace blink 335 } // namespace blink
342 336
343 #include "core/SVGElementTypeHelpers.h" 337 #include "core/SVGElementTypeHelpers.h"
344 338
345 #endif // SVGElement_h 339 #endif // SVGElement_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGAnimationElement.cpp ('k') | third_party/WebKit/Source/core/svg/SVGElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698