void StyleSheetContents::notifyLoadedSheet(const CSSStyleSheetResource* sheet) { ASSERT(sheet); m_didLoadErrorOccur |= sheet->errorOccurred(); // updateLayoutIgnorePendingStyleSheets can cause us to create the RuleSet on // this sheet before its imports have loaded. So clear the RuleSet when the // imports load since the import's subrules are flattened into its parent // sheet's RuleSet. clearRuleSet(); }
/* RuleEngineStatus getRuleEngineMemStatus() { return _ruleEngineMemStatus; } void setAppRuleSetStatus(RuleEngineStatus s) { _ruleEngineStatus = s; } RuleEngineStatus getAppRuleSetStatus() { return _ruleEngineStatus; } void setRuleEngineMemStatus(RuleEngineStatus s) { _ruleEngineMemStatus = s; } */ int clearResources( int resources ) { clearFuncDescIndex( APP, app ); clearFuncDescIndex( SYS, sys ); clearFuncDescIndex( CORE, core ); clearFuncDescIndex( EXT, ext ); clearRegion( APP, app ); clearRegion( SYS, sys ); clearRegion( CORE, core ); clearRegion( EXT, ext ); clearRuleSet( APP, app ); clearRuleSet( CORE, core ); clearRuleSet( EXT, ext ); if ( ( resources & RESC_CACHE ) && isComponentAllocated( ruleEngineConfig.cacheStatus ) ) { free( ruleEngineConfig.address ); ruleEngineConfig.address = NULL; ruleEngineConfig.cacheStatus = UNINITIALIZED; } return 0; }