MCPcopy Create free account
hub / github.com/SpartanJ/eepp / nodeHash

Method nodeHash

src/eepp/ui/css/stylesheet.cpp:28–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28size_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
37void StyleSheet::invalidateCache() {
38 mNodeCache.clear();

Callers 2

addStyleToNodeIndexMethod · 0.95
getElementStylesMethod · 0.95

Calls 2

HashCombineFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected