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

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

Issue 2478233002: Make 'transform' a presentation attribute on SVG elements (Closed)
Patch Set: Rebase Created 4 years 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) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 27 matching lines...) Expand all
38 namespace blink { 38 namespace blink {
39 39
40 // SVG Spec: 40 // SVG Spec:
41 // http://www.w3.org/TR/SVG11/coords.html#InterfaceSVGAnimatedTransformList 41 // http://www.w3.org/TR/SVG11/coords.html#InterfaceSVGAnimatedTransformList
42 class SVGAnimatedTransformList final 42 class SVGAnimatedTransformList final
43 : public SVGAnimatedProperty<SVGTransformList>, 43 : public SVGAnimatedProperty<SVGTransformList>,
44 public ScriptWrappable { 44 public ScriptWrappable {
45 DEFINE_WRAPPERTYPEINFO(); 45 DEFINE_WRAPPERTYPEINFO();
46 46
47 public: 47 public:
48 static SVGAnimatedTransformList* create(SVGElement* contextElement, 48 static SVGAnimatedTransformList* create(
49 const QualifiedName& attributeName) { 49 SVGElement* contextElement,
50 return new SVGAnimatedTransformList(contextElement, attributeName); 50 const QualifiedName& attributeName,
51 CSSPropertyID cssPropertyId = CSSPropertyInvalid) {
52 return new SVGAnimatedTransformList(contextElement, attributeName,
53 cssPropertyId);
51 } 54 }
52 55
53 DEFINE_INLINE_VIRTUAL_TRACE_WRAPPERS() { 56 DEFINE_INLINE_VIRTUAL_TRACE_WRAPPERS() {
54 visitor->traceWrappers(contextElement()); 57 visitor->traceWrappers(contextElement());
55 } 58 }
56 59
57 protected: 60 protected:
58 SVGAnimatedTransformList(SVGElement* contextElement, 61 SVGAnimatedTransformList(SVGElement* contextElement,
59 const QualifiedName& attributeName) 62 const QualifiedName& attributeName,
63 CSSPropertyID cssPropertyId)
60 : SVGAnimatedProperty<SVGTransformList>(contextElement, 64 : SVGAnimatedProperty<SVGTransformList>(contextElement,
61 attributeName, 65 attributeName,
62 SVGTransformList::create()) {} 66 SVGTransformList::create(),
67 cssPropertyId) {}
63 }; 68 };
64 69
65 } // namespace blink 70 } // namespace blink
66 71
67 #endif 72 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698