Don't restyle slow selectors for changes to anonymous content (non-native-anonymous). (Bug 436453) r+sr=bzbarsky

This commit is contained in:
L. David Baron
2008-07-22 21:50:20 -07:00
parent 0ac0773b5a
commit b3eb6fb309
2 changed files with 7 additions and 7 deletions

View File

@@ -4635,7 +4635,7 @@ PresShell::CharacterDataChanged(nsIDocument *aDocument,
nsIContent *container = aContent->GetParent();
PRUint32 selectorFlags =
container ? (container->GetFlags() & NODE_ALL_SELECTOR_FLAGS) : 0;
if (selectorFlags != 0 && !aContent->IsRootOfNativeAnonymousSubtree()) {
if (selectorFlags != 0 && !aContent->IsRootOfAnonymousSubtree()) {
PRUint32 index;
if (aInfo->mAppend &&
container->GetChildAt((index = container->GetChildCount() - 1)) ==