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 7950c0b649446db5c431f1712fc874ddaa956d0d..a9a87fb0165ac028837a37056ad0e4109c5296bb 100644 |
--- a/third_party/WebKit/Source/core/dom/StyleEngine.cpp |
+++ b/third_party/WebKit/Source/core/dom/StyleEngine.cpp |
@@ -388,7 +388,7 @@ const ActiveStyleSheetVector StyleEngine::activeStyleSheetsForInspector() { |
} |
void StyleEngine::shadowRootRemovedFromDocument(ShadowRoot* shadowRoot) { |
- m_styleSheetCollectionMap.remove(shadowRoot); |
+ m_styleSheetCollectionMap.erase(shadowRoot); |
m_activeTreeScopes.remove(shadowRoot); |
m_dirtyTreeScopes.remove(shadowRoot); |
resetAuthorStyle(*shadowRoot); |