Commit de2b601b authored by rbs%maths.uq.edu.au's avatar rbs%maths.uq.edu.au
Browse files

fix assertions when manipulating the MathML attribute style sheet, b=188103, r+sr=bzbarsky

parent a834e8a2
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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