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

Side by Side Diff: Source/core/svg/properties/NewSVGAnimatedProperty.h

Issue 141793002: Allow determining if an SVG value has been specified (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase again. Created 6 years, 11 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 G* * Redistributions in binary form must reproduce the above 10 G* * Redistributions in binary form must reproduce the above
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 virtual void animValDidChange(); 60 virtual void animValDidChange();
61 61
62 virtual bool needsSynchronizeAttribute() = 0; 62 virtual bool needsSynchronizeAttribute() = 0;
63 virtual void synchronizeAttribute(); 63 virtual void synchronizeAttribute();
64 64
65 AnimatedPropertyType type() const 65 AnimatedPropertyType type() const
66 { 66 {
67 return m_type; 67 return m_type;
68 } 68 }
69 69
70 SVGElement* contextElement() 70 SVGElement* contextElement() const
71 { 71 {
72 return m_contextElement; 72 return m_contextElement;
73 } 73 }
74 74
75 const QualifiedName& attributeName() const 75 const QualifiedName& attributeName() const
76 { 76 {
77 return m_attributeName; 77 return m_attributeName;
78 } 78 }
79 79
80 bool isAnimating() const 80 bool isAnimating() const
81 { 81 {
82 return m_isAnimating; 82 return m_isAnimating;
83 } 83 }
84 84
85 bool isReadOnly() const 85 bool isReadOnly() const
86 { 86 {
87 return m_isReadOnly; 87 return m_isReadOnly;
88 } 88 }
89 89
90 void setReadOnly() 90 void setReadOnly()
91 { 91 {
92 m_isReadOnly = true; 92 m_isReadOnly = true;
93 } 93 }
94 94
95 bool isSpecified() const;
96
95 protected: 97 protected:
96 NewSVGAnimatedPropertyBase(AnimatedPropertyType, SVGElement*, const Qualifie dName& attributeName); 98 NewSVGAnimatedPropertyBase(AnimatedPropertyType, SVGElement*, const Qualifie dName& attributeName);
97 void commitChange(); 99 void commitChange();
98 100
99 private: 101 private:
100 const AnimatedPropertyType m_type; 102 const AnimatedPropertyType m_type;
101 bool m_isReadOnly; 103 bool m_isReadOnly;
102 bool m_isAnimating; 104 bool m_isAnimating;
103 105
104 // This reference is kept alive from V8 wrapper 106 // This reference is kept alive from V8 wrapper
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 , m_baseValueUpdated(false) 316 , m_baseValueUpdated(false)
315 { 317 {
316 } 318 }
317 319
318 bool m_baseValueUpdated; 320 bool m_baseValueUpdated;
319 }; 321 };
320 322
321 } 323 }
322 324
323 #endif // NewSVGAnimatedProperty_h 325 #endif // NewSVGAnimatedProperty_h
OLDNEW
« no previous file with comments | « Source/core/svg/SVGRadialGradientElement.cpp ('k') | Source/core/svg/properties/NewSVGAnimatedProperty.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698