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

Unified Diff: third_party/WebKit/Source/core/svg/SVGPointTearOff.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/SVGPointTearOff.h
diff --git a/third_party/WebKit/Source/core/svg/SVGPointTearOff.h b/third_party/WebKit/Source/core/svg/SVGPointTearOff.h
index 5057fdf894dc93940d6fe098762c385a883fd3c5..3a5869da520e3ffd060a2968ad27cc68643cfa16 100644
--- a/third_party/WebKit/Source/core/svg/SVGPointTearOff.h
+++ b/third_party/WebKit/Source/core/svg/SVGPointTearOff.h
@@ -44,14 +44,14 @@ class SVGPointTearOff : public SVGPropertyTearOff<SVGPoint>,
DEFINE_WRAPPERTYPEINFO();
public:
- static SVGPointTearOff* Create(
- SVGPoint* target,
- SVGElement* context_element,
- PropertyIsAnimValType property_is_anim_val,
- const QualifiedName& attribute_name = QualifiedName::Null()) {
+ static SVGPointTearOff* Create(SVGPoint* target,
+ SVGElement* context_element,
+ PropertyIsAnimValType property_is_anim_val,
+ const QualifiedName& attribute_name) {
return new SVGPointTearOff(target, context_element, property_is_anim_val,
attribute_name);
}
+ static SVGPointTearOff* CreateDetached(const FloatPoint&);
void setX(float, ExceptionState&);
void setY(float, ExceptionState&);
@@ -66,7 +66,7 @@ class SVGPointTearOff : public SVGPropertyTearOff<SVGPoint>,
SVGPointTearOff(SVGPoint*,
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/SVGPointListTearOff.h ('k') | third_party/WebKit/Source/core/svg/SVGPointTearOff.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698