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

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

Issue 2912663002: Clean up creation of "detached" SVG* data type objects (Closed)
Patch Set: Created 3 years, 6 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) 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 24 matching lines...) Expand all
35 #include "core/svg/properties/SVGListPropertyTearOffHelper.h" 35 #include "core/svg/properties/SVGListPropertyTearOffHelper.h"
36 36
37 namespace blink { 37 namespace blink {
38 38
39 class SVGPointListTearOff final 39 class SVGPointListTearOff final
40 : public SVGListPropertyTearOffHelper<SVGPointListTearOff, SVGPointList>, 40 : public SVGListPropertyTearOffHelper<SVGPointListTearOff, SVGPointList>,
41 public ScriptWrappable { 41 public ScriptWrappable {
42 DEFINE_WRAPPERTYPEINFO(); 42 DEFINE_WRAPPERTYPEINFO();
43 43
44 public: 44 public:
45 static SVGPointListTearOff* Create( 45 static SVGPointListTearOff* Create(SVGPointList* target,
46 SVGPointList* target, 46 SVGElement* context_element,
47 SVGElement* context_element, 47 PropertyIsAnimValType property_is_anim_val,
48 PropertyIsAnimValType property_is_anim_val, 48 const QualifiedName& attribute_name) {
49 const QualifiedName& attribute_name = QualifiedName::Null()) {
50 return new SVGPointListTearOff(target, context_element, 49 return new SVGPointListTearOff(target, context_element,
51 property_is_anim_val, attribute_name); 50 property_is_anim_val, attribute_name);
52 } 51 }
53 52
54 DEFINE_INLINE_VIRTUAL_TRACE_WRAPPERS() { 53 DEFINE_INLINE_VIRTUAL_TRACE_WRAPPERS() {
55 visitor->TraceWrappers(contextElement()); 54 visitor->TraceWrappers(contextElement());
56 } 55 }
57 56
58 private: 57 private:
59 SVGPointListTearOff( 58 SVGPointListTearOff(SVGPointList* target,
60 SVGPointList* target, 59 SVGElement* context_element,
61 SVGElement* context_element, 60 PropertyIsAnimValType property_is_anim_val,
62 PropertyIsAnimValType property_is_anim_val, 61 const QualifiedName& attribute_name)
63 const QualifiedName& attribute_name = QualifiedName::Null())
64 : SVGListPropertyTearOffHelper<SVGPointListTearOff, SVGPointList>( 62 : SVGListPropertyTearOffHelper<SVGPointListTearOff, SVGPointList>(
65 target, 63 target,
66 context_element, 64 context_element,
67 property_is_anim_val, 65 property_is_anim_val,
68 attribute_name) {} 66 attribute_name) {}
69 }; 67 };
70 68
71 } // namespace blink 69 } // namespace blink
72 70
73 #endif // SVGPointListTearOff_h 71 #endif // SVGPointListTearOff_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGPathElement.cpp ('k') | third_party/WebKit/Source/core/svg/SVGPointTearOff.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698