Bug 832788. Part 2: AudioEventTimeline::IsValid needs to accept double. r=ehsan
authorRobert O'Callahan <robert@ocallahan.org>
Tue, 29 Jan 2013 14:40:26 +1300
changeset 130055 fcd774dbc6c3d1516edb21b88de508d58f7b73ac
parent 130054 0d4873554deefef2140c7c979c30ec8f8f00cc15
child 130056 cfd6d79d73fa71773853d92d7ce6440c171e6bc8
push id2323
push userbbajaj@mozilla.com
push dateMon, 01 Apr 2013 19:47:02 +0000
treeherdermozilla-beta@7712be144d91 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersehsan
bugs832788
milestone21.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 832788. Part 2: AudioEventTimeline::IsValid needs to accept double. r=ehsan
content/media/webaudio/AudioEventTimeline.h
--- a/content/media/webaudio/AudioEventTimeline.h
+++ b/content/media/webaudio/AudioEventTimeline.h
@@ -67,17 +67,17 @@ private:
     union {
       double mTime;
       float* mCurve;
     };
     double mTimeConstant;
     double mDuration;
 
   private:
-    static bool IsValid(float value)
+    static bool IsValid(double value)
     {
       return MOZ_DOUBLE_IS_FINITE(value);
     }
   };
 
 public:
   explicit AudioEventTimeline(float aDefaultValue)
     : mValue(aDefaultValue)