Bug 775304 - Don't visit the descendant frames for the nsChangeHint_UpdateEffects hint. r=roc, r=dbaron.

--HG--
extra : rebase_source : 11996bd6194d62f98eba81d5e3a13d29eaacd62b
This commit is contained in:
Jonathan Watt 2012-07-19 15:44:04 -04:00
parent fb0d7755f0
commit 2e72406ef8
3 changed files with 4 additions and 11 deletions

View File

@ -112,6 +112,7 @@ enum nsChangeHint {
*/
nsChangeHint_NonInherited_Hints =
nsChangeHint_UpdateTransformLayer |
nsChangeHint_UpdateEffects |
nsChangeHint_UpdateOpacityLayer |
nsChangeHint_UpdateOverflow |
nsChangeHint_ChildrenOnlyTransform |

View File

@ -316,7 +316,7 @@ struct nsStyleBackground {
#ifdef DEBUG
static nsChangeHint MaxDifference();
#endif
static bool ForceCompare() { return false; }
static bool ForceCompare() { return true; }
struct Position;
friend struct Position;
@ -2158,7 +2158,7 @@ struct nsStyleSVG {
#ifdef DEBUG
static nsChangeHint MaxDifference();
#endif
static bool ForceCompare() { return false; }
static bool ForceCompare() { return true; }
nsStyleSVGPaint mFill; // [inherited]
nsStyleSVGPaint mStroke; // [inherited]
@ -2204,7 +2204,7 @@ struct nsStyleSVGReset {
#ifdef DEBUG
static nsChangeHint MaxDifference();
#endif
static bool ForceCompare() { return false; }
static bool ForceCompare() { return true; }
nsCOMPtr<nsIURI> mClipPath; // [reset]
nsCOMPtr<nsIURI> mFilter; // [reset]

View File

@ -473,14 +473,6 @@ nsSVGEffects::UpdateEffects(nsIFrame *aFrame)
GetEffectProperty(style->mMarkerEnd, aFrame, MarkerEndProperty(),
CreateMarkerProperty);
}
nsIFrame *kid = aFrame->GetFirstPrincipalChild();
while (kid) {
if (kid->GetContent()->IsElement()) {
UpdateEffects(kid);
}
kid = kid->GetNextSibling();
}
}
nsSVGFilterProperty *