зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
8f26af0110
Коммит
d578dbf50c
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче