mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1066270 - Don't crash when attempting to resolve a filter from an external resource document that hasn't undergone frame construction yet. r=roc
This commit is contained in:
parent
968abaa2ac
commit
b5474436e3
@ -144,8 +144,9 @@ nsSVGFilterInstance::GetFilterFrame()
|
||||
|
||||
// Get the frame of the filter element.
|
||||
nsIFrame* frame = element->GetPrimaryFrame();
|
||||
if (frame->GetType() != nsGkAtoms::svgFilterFrame) {
|
||||
// The URL points to an element that's not an SVG filter element.
|
||||
if (!frame || frame->GetType() != nsGkAtoms::svgFilterFrame) {
|
||||
// The URL points to an element that's not an SVG filter element, or to an
|
||||
// element that hasn't had its frame constructed yet.
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user