formatStylingEngine.pushStyleSheet(layoutStyleSheet);
// Then add the theme style sheet(s) into the styling engine.
CompiledStyleSheetCollection themeStyleSheets =
context.getThemeStyleSheets();
if (themeStyleSheets != null) {
themeStyleSheets.pushAll(formatStylingEngine);
}
// else, allow tests to run without doing the above. Dodgy.
// Process a nested inclusion, this is done after the page context has been
// updated in order to make sure that the nesting depth is correct.