correctly detect duplicate layers

This commit is contained in:
Konstantin Käfer
2014-07-03 12:30:42 +02:00
parent 1b2c48027e
commit 59226af665
2 changed files with 1 additions and 4 deletions

View File

@@ -102,9 +102,6 @@ private:
// This maps ids to Layer objects, with all items being at the root level.
std::unordered_map<std::string, std::pair<JSVal, std::shared_ptr<StyleLayer>>> layers;
// Layer IDs that we have encountered previously while parsing this stylesheet.
std::set<std::string> existing_layer_ids;
// Store a stack of layers we're parsing right now. This is to prevent reference cycles.
std::forward_list<StyleLayer *> stack;