mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 20:05:49 +00:00
fix assertions when manipulating the MathML attribute style sheet, b=188103, r+sr=bzbarsky
This commit is contained in:
parent
a834e8a209
commit
de2b601b8f
@ -556,6 +556,9 @@ GetMathMLAttributeStyleSheet(nsIPresContext* aPresContext,
|
||||
cssSheet->SetDefaultNameSpaceID(kNameSpaceID_MathML);
|
||||
nsCOMPtr<nsIStyleSheet> sheet(do_QueryInterface(cssSheet));
|
||||
|
||||
// all done, no further activity from the net involved, so we better do this
|
||||
sheet->SetComplete();
|
||||
|
||||
// insert the stylesheet into the styleset without notifying observers
|
||||
styleSet->AppendAgentStyleSheet(sheet);
|
||||
*aSheet = sheet;
|
||||
@ -653,8 +656,6 @@ nsMathMLFrame::MapAttributesIntoCSS(nsIPresContext* aPresContext,
|
||||
// that may come from reconstructing the frame tree. Our rules only need
|
||||
// a re-resolve of style data and a reflow, not a reconstruct-all...
|
||||
sheet->SetOwningDocument(nsnull);
|
||||
// We're about to manipulate the CSSOM, so we better do this
|
||||
sheet->SetComplete();
|
||||
}
|
||||
|
||||
// check for duplicate, if a similar rule is already there, don't bother to add another one
|
||||
|
Loading…
Reference in New Issue
Block a user