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

Unified Diff: third_party/WebKit/Source/core/svg/SVGRectTearOff.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/SVGRectTearOff.h
diff --git a/third_party/WebKit/Source/core/svg/SVGRectTearOff.h b/third_party/WebKit/Source/core/svg/SVGRectTearOff.h
index b959b219df1c849cd80ae9eeb56db3e7861c3692..366a1dd9786c562d28e6747e2989ed728e7b4bb0 100644
--- a/third_party/WebKit/Source/core/svg/SVGRectTearOff.h
+++ b/third_party/WebKit/Source/core/svg/SVGRectTearOff.h
@@ -42,14 +42,14 @@ class SVGRectTearOff : public SVGPropertyTearOff<SVGRect>,
DEFINE_WRAPPERTYPEINFO();
public:
- static SVGRectTearOff* Create(
- SVGRect* target,
- SVGElement* context_element,
- PropertyIsAnimValType property_is_anim_val,
- const QualifiedName& attribute_name = QualifiedName::Null()) {
+ static SVGRectTearOff* Create(SVGRect* target,
+ SVGElement* context_element,
+ PropertyIsAnimValType property_is_anim_val,
+ const QualifiedName& attribute_name) {
return new SVGRectTearOff(target, context_element, property_is_anim_val,
attribute_name);
}
+ static SVGRectTearOff* CreateDetached(const FloatRect&);
void setX(float, ExceptionState&);
void setY(float, ExceptionState&);
@@ -66,7 +66,7 @@ class SVGRectTearOff : public SVGPropertyTearOff<SVGRect>,
SVGRectTearOff(SVGRect*,
SVGElement* context_element,
PropertyIsAnimValType,
- const QualifiedName& attribute_name = QualifiedName::Null());
+ const QualifiedName& attribute_name);
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698