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

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

Issue 2024663002: Implement SetWrapperReferenceTo idl attribute within traceWrappers for svg elements (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 SVGAnimatedAngle::~SVGAnimatedAngle() 43 SVGAnimatedAngle::~SVGAnimatedAngle()
44 { 44 {
45 } 45 }
46 46
47 DEFINE_TRACE(SVGAnimatedAngle) 47 DEFINE_TRACE(SVGAnimatedAngle)
48 { 48 {
49 visitor->trace(m_orientType); 49 visitor->trace(m_orientType);
50 SVGAnimatedProperty<SVGAngle>::trace(visitor); 50 SVGAnimatedProperty<SVGAngle>::trace(visitor);
51 } 51 }
52 52
53 DEFINE_TRACE_WRAPPERS(SVGAnimatedAngle)
54 {
55 visitor->traceWrappers(contextElement());
56 }
57
53 bool SVGAnimatedAngle::needsSynchronizeAttribute() 58 bool SVGAnimatedAngle::needsSynchronizeAttribute()
54 { 59 {
55 return m_orientType->needsSynchronizeAttribute() 60 return m_orientType->needsSynchronizeAttribute()
56 || SVGAnimatedProperty<SVGAngle>::needsSynchronizeAttribute(); 61 || SVGAnimatedProperty<SVGAngle>::needsSynchronizeAttribute();
57 } 62 }
58 63
59 void SVGAnimatedAngle::synchronizeAttribute() 64 void SVGAnimatedAngle::synchronizeAttribute()
60 { 65 {
61 // If the current value is not an <angle> we synchronize the value of the 66 // If the current value is not an <angle> we synchronize the value of the
62 // wrapped enumeration. 67 // wrapped enumeration.
(...skipping 10 matching lines...) Expand all
73 m_orientType->setAnimatedValue(currentValue()->orientType()); 78 m_orientType->setAnimatedValue(currentValue()->orientType());
74 } 79 }
75 80
76 void SVGAnimatedAngle::animationEnded() 81 void SVGAnimatedAngle::animationEnded()
77 { 82 {
78 SVGAnimatedProperty<SVGAngle>::animationEnded(); 83 SVGAnimatedProperty<SVGAngle>::animationEnded();
79 m_orientType->animationEnded(); 84 m_orientType->animationEnded();
80 } 85 }
81 86
82 } // namespace blink 87 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGAnimatedAngle.h ('k') | third_party/WebKit/Source/core/svg/SVGAnimatedBoolean.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698