Bug 1246892 - pass aCTF as a reference instead of value. r?roc draft
authorBogdan Postelnicu <bogdan.postelnicu@softvision.ro>
Tue, 09 Feb 2016 12:00:59 +0200
changeset 329775 b6f59fa841d2e9c4dcb604f23771507d42517be4
parent 329566 815d689a6e1e7187b10238f2f840d49201d67c2b
child 514029 3dd0efcf61c2bf508bdb2244a512bae8489ce6ab
push id10602
push userBogdan.Postelnicu@softvision.ro
push dateTue, 09 Feb 2016 10:02:09 +0000
reviewersroc
bugs1246892
milestone47.0a1
Bug 1246892 - pass aCTF as a reference instead of value. r?roc
layout/base/nsDisplayList.cpp
--- a/layout/base/nsDisplayList.cpp
+++ b/layout/base/nsDisplayList.cpp
@@ -344,17 +344,17 @@ static void AddTransformFunctions(nsCSSV
       }
       default:
         NS_ERROR("Function not handled yet!");
     }
   }
 }
 
 static TimingFunction
-ToTimingFunction(Maybe<ComputedTimingFunction> aCTF)
+ToTimingFunction(const Maybe<ComputedTimingFunction>& aCTF)
 {
   if (aCTF.isNothing()) {
     return TimingFunction(null_t());
   }
 
   if (aCTF->HasSpline()) {
     const nsSMILKeySpline* spline = aCTF->GetFunction();
     return TimingFunction(CubicBezierFunction(spline->X1(), spline->Y1(),