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

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

Issue 311803003: [oilpan]: Avoid refcounting QualifiedName's nullQName when tracing. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 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 | Annotate | Revision Log
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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 void setBaseVal(PrimitiveType value, WebCore::ExceptionState& exceptionState ) 201 void setBaseVal(PrimitiveType value, WebCore::ExceptionState& exceptionState )
202 { 202 {
203 if (this->isReadOnly()) { 203 if (this->isReadOnly()) {
204 exceptionState.throwDOMException(NoModificationAllowedError, "The at tribute is read-only."); 204 exceptionState.throwDOMException(NoModificationAllowedError, "The at tribute is read-only.");
205 return; 205 return;
206 } 206 }
207 207
208 this->baseValue()->setValue(value); 208 this->baseValue()->setValue(value);
209 m_baseValueUpdated = true; 209 m_baseValueUpdated = true;
210 210
211 ASSERT(this->attributeName() != nullQName()); 211 ASSERT(this->attributeName() != QualifiedName::null());
212 this->contextElement()->invalidateSVGAttributes(); 212 this->contextElement()->invalidateSVGAttributes();
213 this->contextElement()->svgAttributeChanged(this->attributeName()); 213 this->contextElement()->svgAttributeChanged(this->attributeName());
214 } 214 }
215 215
216 PrimitiveType animVal() 216 PrimitiveType animVal()
217 { 217 {
218 return this->currentValue()->value(); 218 return this->currentValue()->value();
219 } 219 }
220 220
221 protected: 221 protected:
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 // When animated: 300 // When animated:
301 // m_animValTearOff targets m_currentValue. 301 // m_animValTearOff targets m_currentValue.
302 // m_baseValTearOff targets m_baseValue. 302 // m_baseValTearOff targets m_baseValue.
303 RefPtr<TearOffType> m_baseValTearOff; 303 RefPtr<TearOffType> m_baseValTearOff;
304 RefPtr<TearOffType> m_animValTearOff; 304 RefPtr<TearOffType> m_animValTearOff;
305 }; 305 };
306 306
307 } 307 }
308 308
309 #endif // SVGAnimatedProperty_h 309 #endif // SVGAnimatedProperty_h
OLDNEW
« no previous file with comments | « Source/core/svg/SVGTransformTearOff.h ('k') | Source/core/svg/properties/SVGAnimatedProperty.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698