// Clean up the styling information we added to the styling engine.
// This should be done in reverse order.
// First we remove the theme style sheet(s).
if (themeStyleSheets != null) {
themeStyleSheets.popAll(formatStylingEngine);
}
// else, allow tests to run without the above. Dodgy.
// Then we remove the layout style sheet.
formatStylingEngine.popStyleSheet(layoutStyleSheet);