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

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGAngleTearOff.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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/svg/SVGAngleTearOff.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/SVGPropertyTearOff.h" 35 #include "core/svg/properties/SVGPropertyTearOff.h"
36 #include "platform/bindings/ScriptWrappable.h" 36 #include "platform/bindings/ScriptWrappable.h"
37 37
38 namespace blink { 38 namespace blink {
39 39
40 class SVGAngleTearOff final : public SVGPropertyTearOff<SVGAngle>, 40 class SVGAngleTearOff final : public SVGPropertyTearOff<SVGAngle>,
41 public ScriptWrappable { 41 public ScriptWrappable {
42 DEFINE_WRAPPERTYPEINFO(); 42 DEFINE_WRAPPERTYPEINFO();
43 43
44 public: 44 public:
45 static SVGAngleTearOff* Create( 45 static SVGAngleTearOff* Create(SVGAngle* target,
46 SVGAngle* 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 SVGAngleTearOff(target, context_element, property_is_anim_val, 49 return new SVGAngleTearOff(target, context_element, property_is_anim_val,
51 attribute_name); 50 attribute_name);
52 } 51 }
52 static SVGAngleTearOff* CreateDetached();
53 53
54 enum { 54 enum {
55 kSvgAngletypeUnknown = SVGAngle::kSvgAngletypeUnknown, 55 kSvgAngletypeUnknown = SVGAngle::kSvgAngletypeUnknown,
56 kSvgAngletypeUnspecified = SVGAngle::kSvgAngletypeUnspecified, 56 kSvgAngletypeUnspecified = SVGAngle::kSvgAngletypeUnspecified,
57 kSvgAngletypeDeg = SVGAngle::kSvgAngletypeDeg, 57 kSvgAngletypeDeg = SVGAngle::kSvgAngletypeDeg,
58 kSvgAngletypeRad = SVGAngle::kSvgAngletypeRad, 58 kSvgAngletypeRad = SVGAngle::kSvgAngletypeRad,
59 kSvgAngletypeGrad = SVGAngle::kSvgAngletypeGrad 59 kSvgAngletypeGrad = SVGAngle::kSvgAngletypeGrad
60 }; 60 };
61 61
62 ~SVGAngleTearOff() override; 62 ~SVGAngleTearOff() override;
(...skipping 29 matching lines...) Expand all
92 const QualifiedName&); 92 const QualifiedName&);
93 93
94 bool HasExposedAngleUnit() { 94 bool HasExposedAngleUnit() {
95 return Target()->UnitType() <= SVGAngle::kSvgAngletypeGrad; 95 return Target()->UnitType() <= SVGAngle::kSvgAngletypeGrad;
96 } 96 }
97 }; 97 };
98 98
99 } // namespace blink 99 } // namespace blink
100 100
101 #endif // SVGAngleTearOff_h 101 #endif // SVGAngleTearOff_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/svg/SVGAngleTearOff.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698