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:
@@ -286,7 +286,7 @@ nsHTMLFramesetFrame::Observe(nsISupports* aObject, const char* aAction,
|
||||
if (prefName.Equals(NS_LITERAL_STRING(kFrameResizePref))) {
|
||||
nsCOMPtr<nsIDocument> doc = mContent->GetDocument();
|
||||
if (doc) {
|
||||
doc->BeginUpdate();
|
||||
doc->BeginUpdate(UPDATE_CONTENT_MODEL);
|
||||
doc->AttributeWillChange(mContent,
|
||||
kNameSpaceID_None,
|
||||
nsHTMLAtoms::frameborder);
|
||||
@@ -301,7 +301,7 @@ nsHTMLFramesetFrame::Observe(nsISupports* aObject, const char* aAction,
|
||||
kNameSpaceID_None,
|
||||
nsHTMLAtoms::frameborder,
|
||||
nsIDOMMutationEvent::MODIFICATION);
|
||||
doc->EndUpdate();
|
||||
doc->EndUpdate(UPDATE_CONTENT_MODEL);
|
||||
}
|
||||
}
|
||||
return NS_OK;
|
||||
|
||||
Reference in New Issue
Block a user