Bug 502937. Part 3. Implement lazy frame construction. r=bzbarsky sr=roc

This commit is contained in:
Timothy Nikkel
2010-01-18 03:26:40 -06:00
parent 58288238ff
commit b1d23a2b58
5 changed files with 310 additions and 24 deletions

View File

@@ -2609,7 +2609,9 @@ nsGenericElement::BindToTree(nsIDocument* aDocument, nsIContent* aParent,
mParentPtrBits |= PARENT_BIT_INDOCUMENT;
// Unset this flag since we now really are in a document.
UnsetFlags(NODE_FORCE_XBL_BINDINGS);
UnsetFlags(NODE_FORCE_XBL_BINDINGS |
// And clear the lazy frame construction bits.
NODE_NEEDS_FRAME | NODE_DESCENDANTS_NEED_FRAMES);
}
// If NODE_FORCE_XBL_BINDINGS was set we might have anonymous children