зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1494604. Remove nsSVGUtils::NotifyAncestorsOfFilterRegionChange. r=longsonr
Differential Revision: https://phabricator.services.mozilla.com/D7072 --HG-- extra : rebase_source : 846bccfd360b0468047445459eb51b33a7cf507d extra : amend_source : 0f7283efd3ea538de00573b9b5896f2f43ba0212
This commit is contained in:
Родитель
5c1dd39583
Коммит
64d88eee9b
|
@ -210,10 +210,6 @@ nsSVGDisplayContainerFrame::RemoveFrame(ChildListID aListID,
|
|||
mContent->AsElement(), nsRestyleHint(0), nsChangeHint_UpdateOverflow);
|
||||
|
||||
nsSVGContainerFrame::RemoveFrame(aListID, aOldFrame);
|
||||
|
||||
if (!(GetStateBits() & (NS_FRAME_IS_NONDISPLAY | NS_STATE_IS_OUTER_SVG))) {
|
||||
nsSVGUtils::NotifyAncestorsOfFilterRegionChange(this);
|
||||
}
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
|
@ -263,27 +263,6 @@ nsSVGUtils::NeedsReflowSVG(nsIFrame *aFrame)
|
|||
return NS_SUBTREE_DIRTY(aFrame);
|
||||
}
|
||||
|
||||
void
|
||||
nsSVGUtils::NotifyAncestorsOfFilterRegionChange(nsIFrame *aFrame)
|
||||
{
|
||||
MOZ_ASSERT(!(aFrame->GetStateBits() & NS_STATE_IS_OUTER_SVG),
|
||||
"Not expecting to be called on the outer SVG Frame");
|
||||
|
||||
aFrame = aFrame->GetParent();
|
||||
|
||||
while (aFrame) {
|
||||
if (aFrame->GetStateBits() & NS_STATE_IS_OUTER_SVG)
|
||||
return;
|
||||
|
||||
SVGFilterObserverListForCSSProp* observers =
|
||||
SVGObserverUtils::GetFilterObserverList(aFrame);
|
||||
if (observers) {
|
||||
observers->Invalidate();
|
||||
}
|
||||
aFrame = aFrame->GetParent();
|
||||
}
|
||||
}
|
||||
|
||||
Size
|
||||
nsSVGUtils::GetContextSize(const nsIFrame* aFrame)
|
||||
{
|
||||
|
|
|
@ -228,11 +228,6 @@ public:
|
|||
*/
|
||||
static bool NeedsReflowSVG(nsIFrame *aFrame);
|
||||
|
||||
/*
|
||||
* Update the filter invalidation region for ancestor frames, if relevant.
|
||||
*/
|
||||
static void NotifyAncestorsOfFilterRegionChange(nsIFrame *aFrame);
|
||||
|
||||
/**
|
||||
* Percentage lengths in SVG are resolved against the width/height of the
|
||||
* nearest viewport (or its viewBox, if set). This helper returns the size
|
||||
|
|
Загрузка…
Ссылка в новой задаче