зеркало из https://github.com/mozilla/pjs.git
Fix for 115919, r=dbaron for me, r=hyatt for dbaron, sr=brendan, a=brendan
This commit is contained in:
Родитель
dd31be6532
Коммит
8e63b25b22
|
@ -1485,7 +1485,12 @@ DocumentViewerImpl::SetDOMDocument(nsIDOMDocument *aDocument)
|
|||
NS_IMETHODIMP
|
||||
DocumentViewerImpl::SetUAStyleSheet(nsIStyleSheet* aUAStyleSheet)
|
||||
{
|
||||
mUAStyleSheet = dont_QueryInterface(aUAStyleSheet);
|
||||
if (aUAStyleSheet) {
|
||||
nsCOMPtr<nsICSSStyleSheet> sheet(do_QueryInterface(aUAStyleSheet));
|
||||
nsCOMPtr<nsICSSStyleSheet> newSheet;
|
||||
sheet->Clone(*getter_AddRefs(newSheet));
|
||||
mUAStyleSheet = newSheet;
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
|
@ -1485,7 +1485,12 @@ DocumentViewerImpl::SetDOMDocument(nsIDOMDocument *aDocument)
|
|||
NS_IMETHODIMP
|
||||
DocumentViewerImpl::SetUAStyleSheet(nsIStyleSheet* aUAStyleSheet)
|
||||
{
|
||||
mUAStyleSheet = dont_QueryInterface(aUAStyleSheet);
|
||||
if (aUAStyleSheet) {
|
||||
nsCOMPtr<nsICSSStyleSheet> sheet(do_QueryInterface(aUAStyleSheet));
|
||||
nsCOMPtr<nsICSSStyleSheet> newSheet;
|
||||
sheet->Clone(*getter_AddRefs(newSheet));
|
||||
mUAStyleSheet = newSheet;
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче