| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |