mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1028497 - Part 5: Implement document.fonts. r=bzbarsky
This commit is contained in:
parent
1ab9074459
commit
1af7e9d722
@ -12419,6 +12419,17 @@ nsAutoSyncOperation::~nsAutoSyncOperation()
|
|||||||
FontFaceSet*
|
FontFaceSet*
|
||||||
nsIDocument::GetFonts(ErrorResult& aRv)
|
nsIDocument::GetFonts(ErrorResult& aRv)
|
||||||
{
|
{
|
||||||
aRv.Throw(NS_ERROR_FAILURE);
|
nsIPresShell* shell = GetShell();
|
||||||
return nullptr;
|
if (!shell) {
|
||||||
|
aRv.Throw(NS_ERROR_FAILURE);
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
|
nsPresContext* presContext = shell->GetPresContext();
|
||||||
|
if (!presContext) {
|
||||||
|
aRv.Throw(NS_ERROR_FAILURE);
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
|
return presContext->Fonts();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user