StyleResolverChange StyleEngine::resolverChanged(RecalcStyleTime time, StyleResolverUpdateMode mode) { StyleResolverChange change; if (!isMaster()) { if (Document* master = this->master()) master->styleResolverChanged(time, mode); return change; } // Don't bother updating, since we haven't loaded all our style info yet // and haven't calculated the style selector for the first time. if (!m_document.isActive() || shouldClearResolver()) { clearResolver(); return change; } m_didCalculateResolver = true; if (m_document.didLayoutWithPendingStylesheets() && !hasPendingSheets()) change.setNeedsRepaint(); if (updateActiveStyleSheets(mode)) change.setNeedsStyleRecalc(); return change; }
void StyleEngine::resolverChanged(StyleResolverUpdateMode mode) { if (!isMaster()) { if (Document* master = this->master()) master->styleResolverChanged(mode); return; } // Don't bother updating, since we haven't loaded all our style info yet // and haven't calculated the style selector for the first time. if (!document().isActive()) { clearResolver(); return; } updateActiveStyleSheets(mode); }