| Index: Source/core/dom/StyleEngine.cpp
|
| diff --git a/Source/core/dom/StyleEngine.cpp b/Source/core/dom/StyleEngine.cpp
|
| index 5014a8d903bfcc8988a84db6b3852ca87c218bcb..4702dcdbe60af43dd33f49a5b7617d3801296189 100644
|
| --- a/Source/core/dom/StyleEngine.cpp
|
| +++ b/Source/core/dom/StyleEngine.cpp
|
| @@ -346,8 +346,8 @@ bool StyleEngine::shouldUpdateShadowTreeStyleSheetCollection(StyleResolverUpdate
|
|
|
| void StyleEngine::clearMediaQueryRuleSetOnTreeScopeStyleSheets(TreeScopeSet treeScopes)
|
| {
|
| - for (TreeScopeSet::iterator it = treeScopes.begin(); it != treeScopes.end(); ++it) {
|
| - TreeScope& treeScope = **it;
|
| + for (auto it : treeScopes) {
|
| + TreeScope& treeScope = *it;
|
| ASSERT(treeScope != m_document);
|
| ShadowTreeStyleSheetCollection* collection = static_cast<ShadowTreeStyleSheetCollection*>(styleSheetCollectionFor(treeScope));
|
| ASSERT(collection);
|
| @@ -386,8 +386,8 @@ void StyleEngine::updateActiveStyleSheets(StyleResolverUpdateMode updateMode)
|
| TreeScopeSet treeScopes = updateMode == FullStyleUpdate ? m_activeTreeScopes : m_dirtyTreeScopes;
|
| HashSet<TreeScope*> treeScopesRemoved;
|
|
|
| - for (TreeScopeSet::iterator it = treeScopes.begin(); it != treeScopes.end(); ++it) {
|
| - TreeScope* treeScope = *it;
|
| + for (auto it : treeScopes) {
|
| + TreeScope* treeScope = it;
|
| ASSERT(treeScope != m_document);
|
| ShadowTreeStyleSheetCollection* collection = static_cast<ShadowTreeStyleSheetCollection*>(styleSheetCollectionFor(*treeScope));
|
| ASSERT(collection);
|
|
|