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

Unified Diff: third_party/WebKit/Source/core/svg/SVGNumberTearOff.h

Issue 2912663002: Clean up creation of "detached" SVG* data type objects (Closed)
Patch Set: Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/svg/SVGNumberTearOff.h
diff --git a/third_party/WebKit/Source/core/svg/SVGNumberTearOff.h b/third_party/WebKit/Source/core/svg/SVGNumberTearOff.h
index 903e9c6e213dbe64503c959f87f6da593a42dcf4..d05f6b4d9e65a46020455724111e14d68d96445a 100644
--- a/third_party/WebKit/Source/core/svg/SVGNumberTearOff.h
+++ b/third_party/WebKit/Source/core/svg/SVGNumberTearOff.h
@@ -42,14 +42,14 @@ class SVGNumberTearOff : public SVGPropertyTearOff<SVGNumber>,
DEFINE_WRAPPERTYPEINFO();
public:
- static SVGNumberTearOff* Create(
- SVGNumber* target,
- SVGElement* context_element,
- PropertyIsAnimValType property_is_anim_val,
- const QualifiedName& attribute_name = QualifiedName::Null()) {
+ static SVGNumberTearOff* Create(SVGNumber* target,
+ SVGElement* context_element,
+ PropertyIsAnimValType property_is_anim_val,
+ const QualifiedName& attribute_name) {
return new SVGNumberTearOff(target, context_element, property_is_anim_val,
attribute_name);
}
+ static SVGNumberTearOff* CreateDetached();
DECLARE_VIRTUAL_TRACE_WRAPPERS();
@@ -60,7 +60,7 @@ class SVGNumberTearOff : public SVGPropertyTearOff<SVGNumber>,
SVGNumberTearOff(SVGNumber*,
SVGElement* context_element,
PropertyIsAnimValType,
- const QualifiedName& attribute_name = QualifiedName::Null());
+ const QualifiedName& attribute_name);
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGNumberListTearOff.h ('k') | third_party/WebKit/Source/core/svg/SVGNumberTearOff.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698