Make presshell batch processing of style changes (using BeginUpdate/EndUpdate

notifications).  Bug 200931, r=peterv, sr=jst


git-svn-id: svn://10.0.0.236/trunk@147516 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu
2003-10-02 21:29:40 +00:00
parent b1387a710d
commit 62c2420626
35 changed files with 289 additions and 324 deletions

View File

@@ -1164,7 +1164,9 @@ CSSLoaderImpl::InsertSheetInDoc(nsICSSStyleSheet* aSheet,
linkingElement->SetStyleSheet(aSheet); // This sets the ownerNode on the sheet
}
aDocument->BeginUpdate(UPDATE_STYLE);
aDocument->InsertStyleSheetAt(aSheet, insertionPoint);
aDocument->EndUpdate(UPDATE_STYLE);
LOG((" Inserting into document at position %d", insertionPoint));
return NS_OK;