Bug 1275766 - Invoke the proper URLValue constructor from Servo. r=heycam

Right now these are just coercing the values and invoking the main thread
constructor.
This commit is contained in:
Bobby Holley 2016-05-24 22:04:50 -07:00
Родитель 8f26af0110
Коммит d578dbf50c
1 изменённых файлов: 2 добавлений и 4 удалений

Просмотреть файл

@ -266,10 +266,8 @@ Gecko_SetMozBinding(nsStyleDisplay* aDisplay,
RefPtr<nsStringBuffer> urlBuffer = nsCSSValue::BufferFromString(url);
aDisplay->mBinding =
new css::URLValue(urlBuffer,
nsMainThreadPtrHandle<nsIURI>(aBaseURI),
nsMainThreadPtrHandle<nsIURI>(aReferrer),
nsMainThreadPtrHandle<nsIPrincipal>(aPrincipal));
new css::URLValue(urlBuffer, do_AddRef(aBaseURI),
do_AddRef(aReferrer), do_AddRef(aPrincipal));
}
void