diff --git a/layout/style/ServoBindings.cpp b/layout/style/ServoBindings.cpp index a12ffbcba40f..34db95101da1 100644 --- a/layout/style/ServoBindings.cpp +++ b/layout/style/ServoBindings.cpp @@ -266,10 +266,8 @@ Gecko_SetMozBinding(nsStyleDisplay* aDisplay, RefPtr urlBuffer = nsCSSValue::BufferFromString(url); aDisplay->mBinding = - new css::URLValue(urlBuffer, - nsMainThreadPtrHandle(aBaseURI), - nsMainThreadPtrHandle(aReferrer), - nsMainThreadPtrHandle(aPrincipal)); + new css::URLValue(urlBuffer, do_AddRef(aBaseURI), + do_AddRef(aReferrer), do_AddRef(aPrincipal)); } void