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

Unified Diff: third_party/WebKit/Source/core/svg/SVGNumberOptionalNumber.h

Issue 1419623009: SVG Web Animations: Add SVGNumberOptionalNumberInterpolationType (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tests Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/svg/SVGNumberOptionalNumber.h
diff --git a/third_party/WebKit/Source/core/svg/SVGNumberOptionalNumber.h b/third_party/WebKit/Source/core/svg/SVGNumberOptionalNumber.h
index ae3c398c000dd4b297cf63976e954edfa31e8628..f4606f8c59570f6fca71604b9b2931422cc85b73 100644
--- a/third_party/WebKit/Source/core/svg/SVGNumberOptionalNumber.h
+++ b/third_party/WebKit/Source/core/svg/SVGNumberOptionalNumber.h
@@ -59,8 +59,8 @@ public:
static AnimatedPropertyType classType() { return AnimatedNumberOptionalNumber; }
- PassRefPtrWillBeRawPtr<SVGNumber> firstNumber() { return m_firstNumber; }
- PassRefPtrWillBeRawPtr<SVGNumber> secondNumber() { return m_secondNumber; }
+ PassRefPtrWillBeRawPtr<SVGNumber> firstNumber() const { return m_firstNumber; }
+ PassRefPtrWillBeRawPtr<SVGNumber> secondNumber() const { return m_secondNumber; }
DECLARE_VIRTUAL_TRACE();
@@ -78,6 +78,12 @@ inline PassRefPtrWillBeRawPtr<SVGNumberOptionalNumber> toSVGNumberOptionalNumber
return static_pointer_cast<SVGNumberOptionalNumber>(base.release());
}
+inline const SVGNumberOptionalNumber& toSVGNumberOptionalNumber(const SVGPropertyBase& base)
+{
+ ASSERT(base.type() == SVGNumberOptionalNumber::classType());
+ return static_cast<const SVGNumberOptionalNumber&>(base);
+}
+
} // namespace blink
#endif // SVGNumberOptionalNumber_h
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698