| 183 | } |
| 184 | |
| 185 | void StyleSheet::addStyle( std::shared_ptr<StyleSheetStyle> node ) { |
| 186 | if ( addStyleToNodeIndex( node.get() ) ) { |
| 187 | mNodes.push_back( node ); |
| 188 | } |
| 189 | addMediaQueryList( node->getMediaQueryList() ); |
| 190 | mVersion++; |
| 191 | } |
| 192 | |
| 193 | bool StyleSheet::isEmpty() const { |
| 194 | return mNodes.empty(); |
no test coverage detected