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

Side by Side Diff: Source/core/svg/SVGAnimatedAngle.cpp

Issue 208133002: [SVG] Remove "New" prefix from properties implementation. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/svg/SVGAnimatedAngle.h ('k') | Source/core/svg/SVGAnimatedBoolean.h » ('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 20 matching lines...) Expand all
31 #include "config.h" 31 #include "config.h"
32 #include "core/svg/SVGAnimatedAngle.h" 32 #include "core/svg/SVGAnimatedAngle.h"
33 33
34 #include "SVGNames.h" 34 #include "SVGNames.h"
35 #include "core/svg/SVGAngleTearOff.h" 35 #include "core/svg/SVGAngleTearOff.h"
36 #include "core/svg/SVGMarkerElement.h" 36 #include "core/svg/SVGMarkerElement.h"
37 37
38 namespace WebCore { 38 namespace WebCore {
39 39
40 SVGAnimatedAngle::SVGAnimatedAngle(SVGMarkerElement* contextElement) 40 SVGAnimatedAngle::SVGAnimatedAngle(SVGMarkerElement* contextElement)
41 : NewSVGAnimatedProperty<SVGAngle>(contextElement, SVGNames::orientAttr, SVG Angle::create()) 41 : SVGAnimatedProperty<SVGAngle>(contextElement, SVGNames::orientAttr, SVGAng le::create())
42 , m_orientType(SVGAnimatedEnumeration<SVGMarkerOrientType>::create(contextEl ement, SVGNames::orientAttr, baseValue()->orientType())) 42 , m_orientType(SVGAnimatedEnumeration<SVGMarkerOrientType>::create(contextEl ement, SVGNames::orientAttr, baseValue()->orientType()))
43 { 43 {
44 } 44 }
45 45
46 SVGAnimatedAngle::~SVGAnimatedAngle() 46 SVGAnimatedAngle::~SVGAnimatedAngle()
47 { 47 {
48 } 48 }
49 49
50 void SVGAnimatedAngle::synchronizeAttribute() 50 void SVGAnimatedAngle::synchronizeAttribute()
51 { 51 {
52 ASSERT(needsSynchronizeAttribute()); 52 ASSERT(needsSynchronizeAttribute());
53 53
54 AtomicString value; 54 AtomicString value;
55 if (m_orientType->currentValue()->enumValue() == SVGMarkerOrientAuto) 55 if (m_orientType->currentValue()->enumValue() == SVGMarkerOrientAuto)
56 value = "auto"; 56 value = "auto";
57 else 57 else
58 value = AtomicString(currentValue()->valueAsString()); 58 value = AtomicString(currentValue()->valueAsString());
59 59
60 contextElement()->setSynchronizedLazyAttribute(attributeName(), value); 60 contextElement()->setSynchronizedLazyAttribute(attributeName(), value);
61 } 61 }
62 62
63 void SVGAnimatedAngle::animationStarted() 63 void SVGAnimatedAngle::animationStarted()
64 { 64 {
65 NewSVGAnimatedProperty<SVGAngle>::animationStarted(); 65 SVGAnimatedProperty<SVGAngle>::animationStarted();
66 m_orientType->animationStarted(); 66 m_orientType->animationStarted();
67 } 67 }
68 68
69 void SVGAnimatedAngle::setAnimatedValue(PassRefPtr<NewSVGPropertyBase> value) 69 void SVGAnimatedAngle::setAnimatedValue(PassRefPtr<SVGPropertyBase> value)
70 { 70 {
71 NewSVGAnimatedProperty<SVGAngle>::setAnimatedValue(value); 71 SVGAnimatedProperty<SVGAngle>::setAnimatedValue(value);
72 m_orientType->setAnimatedValue(currentValue()->orientType()); 72 m_orientType->setAnimatedValue(currentValue()->orientType());
73 } 73 }
74 74
75 void SVGAnimatedAngle::animationEnded() 75 void SVGAnimatedAngle::animationEnded()
76 { 76 {
77 NewSVGAnimatedProperty<SVGAngle>::animationEnded(); 77 SVGAnimatedProperty<SVGAngle>::animationEnded();
78 m_orientType->animationEnded(); 78 m_orientType->animationEnded();
79 } 79 }
80 80
81 } 81 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGAnimatedAngle.h ('k') | Source/core/svg/SVGAnimatedBoolean.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698