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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user