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

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

Issue 423093014: [SVG2] Make transform, gradientTransform and patternTransform presentation attributes. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebaseline for mac/win Created 6 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
« no previous file with comments | « Source/core/svg/GradientAttributes.h ('k') | Source/core/svg/SVGElement.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, 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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 private: 184 private:
185 RawPtrWillBeMember<SVGElement> m_targetElement; 185 RawPtrWillBeMember<SVGElement> m_targetElement;
186 }; 186 };
187 187
188 void invalidateInstances(); 188 void invalidateInstances();
189 189
190 virtual void trace(Visitor*) OVERRIDE; 190 virtual void trace(Visitor*) OVERRIDE;
191 191
192 static const AtomicString& eventParameterName(); 192 static const AtomicString& eventParameterName();
193 193
194 bool getStyleTransform(AffineTransform& matrix) const;
195
194 protected: 196 protected:
195 SVGElement(const QualifiedName&, Document&, ConstructionType = CreateSVGElem ent); 197 SVGElement(const QualifiedName&, Document&, ConstructionType = CreateSVGElem ent);
196 198
197 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 199 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
198 200
199 // FIXME: |parseAttributeNew| is a new implementation of parseAttribute 201 // FIXME: |parseAttributeNew| is a new implementation of parseAttribute
200 // which maps attribute using |m_attributeToPropertyMap|. 202 // which maps attribute using |m_attributeToPropertyMap|.
201 // This is to replace |parseAttribute()| after all derived class switch to c all this. 203 // This is to replace |parseAttribute()| after all derived class switch to c all this.
202 void parseAttributeNew(const QualifiedName&, const AtomicString&); 204 void parseAttributeNew(const QualifiedName&, const AtomicString&);
203 205
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 template<typename T> inline bool is##thisType(const PassRefPtr<T>& node) { r eturn is##thisType(node.get()); } \ 291 template<typename T> inline bool is##thisType(const PassRefPtr<T>& node) { r eturn is##thisType(node.get()); } \
290 template<typename T> inline bool is##thisType(const RefPtr<T>& node) { retur n is##thisType(node.get()); } \ 292 template<typename T> inline bool is##thisType(const RefPtr<T>& node) { retur n is##thisType(node.get()); } \
291 template <> inline bool isElementOfType<const thisType>(const SVGElement& el ement) { return is##thisType(element); } \ 293 template <> inline bool isElementOfType<const thisType>(const SVGElement& el ement) { return is##thisType(element); } \
292 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) 294 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType)
293 295
294 } 296 }
295 297
296 #include "core/SVGElementTypeHelpers.h" 298 #include "core/SVGElementTypeHelpers.h"
297 299
298 #endif 300 #endif
OLDNEW
« no previous file with comments | « Source/core/svg/GradientAttributes.h ('k') | Source/core/svg/SVGElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698