| 26 | } |
| 27 | |
| 28 | size_t StyleSheet::nodeHash( const std::string& tag, const std::string& id ) { |
| 29 | size_t seed = 0; |
| 30 | if ( !tag.empty() ) |
| 31 | seed = std::hash<std::string>()( tag ); |
| 32 | if ( !id.empty() ) |
| 33 | HashCombine( seed, id ); |
| 34 | return seed; |
| 35 | } |
| 36 | |
| 37 | void StyleSheet::invalidateCache() { |
| 38 | mNodeCache.clear(); |
no test coverage detected