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

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGStringListTearOff.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 28 matching lines...) Expand all
39 39
40 class SVGStringListTearOff : public SVGPropertyTearOff<SVGStringList>, 40 class SVGStringListTearOff : public SVGPropertyTearOff<SVGStringList>,
41 public ScriptWrappable { 41 public ScriptWrappable {
42 DEFINE_WRAPPERTYPEINFO(); 42 DEFINE_WRAPPERTYPEINFO();
43 43
44 public: 44 public:
45 static SVGStringListTearOff* Create( 45 static SVGStringListTearOff* Create(
46 SVGStringList* target, 46 SVGStringList* target,
47 SVGElement* context_element, 47 SVGElement* context_element,
48 PropertyIsAnimValType property_is_anim_val, 48 PropertyIsAnimValType property_is_anim_val,
49 const QualifiedName& attribute_name = QualifiedName::Null()) { 49 const QualifiedName& attribute_name) {
50 return new SVGStringListTearOff(target, context_element, 50 return new SVGStringListTearOff(target, context_element,
51 property_is_anim_val, attribute_name); 51 property_is_anim_val, attribute_name);
52 } 52 }
53 53
54 // SVGStringList DOM interface: 54 // SVGStringList DOM interface:
55 55
56 // WebIDL requires "unsigned long" type instead of size_t. 56 // WebIDL requires "unsigned long" type instead of size_t.
57 unsigned long length() { return Target()->length(); } 57 unsigned long length() { return Target()->length(); }
58 58
59 void clear(ExceptionState& exception_state) { 59 void clear(ExceptionState& exception_state) {
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 protected: 135 protected:
136 SVGStringListTearOff(SVGStringList*, 136 SVGStringListTearOff(SVGStringList*,
137 SVGElement*, 137 SVGElement*,
138 PropertyIsAnimValType, 138 PropertyIsAnimValType,
139 const QualifiedName&); 139 const QualifiedName&);
140 }; 140 };
141 141
142 } // namespace blink 142 } // namespace blink
143 143
144 #endif // SVGStringListTearOff_h 144 #endif // SVGStringListTearOff_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGSVGElement.cpp ('k') | third_party/WebKit/Source/core/svg/SVGTextContentElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698