зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset d90ec14fc8e3 (bug 1817608) for causing reftest failures in 1329849-1.svg CLOSED TREE
This commit is contained in:
Родитель
8f72da76f1
Коммит
f98b8cdeb7
|
@ -128,11 +128,18 @@ SVGFilterFrame* SVGFilterFrame::GetReferencedFilter() {
|
|||
this->mNoHRefURI = aHref.IsEmpty();
|
||||
};
|
||||
|
||||
return do_QueryFrame(SVGObserverUtils::GetAndObserveTemplate(this, GetHref));
|
||||
nsIFrame* tframe = SVGObserverUtils::GetAndObserveTemplate(this, GetHref);
|
||||
if (tframe) {
|
||||
LayoutFrameType frameType = tframe->Type();
|
||||
if (frameType == LayoutFrameType::SVGFilter) {
|
||||
return static_cast<SVGFilterFrame*>(tframe);
|
||||
}
|
||||
// We don't call SVGObserverUtils::RemoveTemplateObserver and set
|
||||
// `mNoHRefURI = false` here since we want to be invalidated if the ID
|
||||
// specified by our href starts resolving to a different/valid element.
|
||||
}
|
||||
|
||||
// We don't call SVGObserverUtils::RemoveTemplateObserver and set
|
||||
// `mNoHRefURI = false` on failure since we want to be invalidated if the ID
|
||||
// specified by our href starts resolving to a different/valid element.
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
nsresult SVGFilterFrame::AttributeChanged(int32_t aNameSpaceID,
|
||||
|
|
Загрузка…
Ссылка в новой задаче