| Index: third_party/WebKit/Source/core/dom/StyleEngine.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/StyleEngine.cpp b/third_party/WebKit/Source/core/dom/StyleEngine.cpp
|
| index 6a5d1cee16dcd80a5e82f980cc0b12abbbd8b548..19826f40af5ae0c3d3799d4cb5d02e72990ddc6e 100644
|
| --- a/third_party/WebKit/Source/core/dom/StyleEngine.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/StyleEngine.cpp
|
| @@ -337,7 +337,7 @@ void StyleEngine::updateActiveStyleSheets() {
|
| updateActiveStyleSheetsInShadow(treeScope, treeScopesRemoved);
|
| }
|
| for (TreeScope* treeScope : treeScopesRemoved)
|
| - m_activeTreeScopes.remove(treeScope);
|
| + m_activeTreeScopes.erase(treeScope);
|
| }
|
|
|
| InspectorInstrumentation::activeStyleSheetsUpdated(m_document);
|
| @@ -389,8 +389,8 @@ const ActiveStyleSheetVector StyleEngine::activeStyleSheetsForInspector() {
|
|
|
| void StyleEngine::shadowRootRemovedFromDocument(ShadowRoot* shadowRoot) {
|
| m_styleSheetCollectionMap.erase(shadowRoot);
|
| - m_activeTreeScopes.remove(shadowRoot);
|
| - m_dirtyTreeScopes.remove(shadowRoot);
|
| + m_activeTreeScopes.erase(shadowRoot);
|
| + m_dirtyTreeScopes.erase(shadowRoot);
|
| resetAuthorStyle(*shadowRoot);
|
| }
|
|
|
|
|