void StyleEngine::createResolver() { // It is a programming error to attempt to resolve style on a Document // which is not in a frame. Code which hits this should have checked // Document::isActive() before calling into code which could get here. ASSERT(document().frame()); m_resolver = adoptPtr(new StyleResolver(*m_document)); addScopedStyleResolver(&m_document->ensureScopedStyleResolver()); appendActiveAuthorStyleSheets(); }
void StyleEngine::createResolver() { // It is a programming error to attempt to resolve style on a Document // which is not in a frame. Code which hits this should have checked // Document::isActive() before calling into code which could get here. ASSERT(m_document.frame()); ASSERT(m_fontSelector); m_resolver = adoptPtr(new StyleResolver(m_document)); appendActiveAuthorStyleSheets(); m_fontSelector->registerForInvalidationCallbacks(m_resolver.get()); combineCSSFeatureFlags(m_resolver->ensureRuleFeatureSet()); }