Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(314)

Unified Diff: third_party/WebKit/Source/core/dom/StyleEngine.cpp

Issue 2450353002: Clear m_treeBoundaryCrossingScopes when reconstructing StyleResolver. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/css/boundary-crossing-scopes-null-resolver-crash.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2c1ab5550ef6c6a909628ea901a1c6758c288845..27d80372c8c18532a0e09e740a25d1d8ed127395 100644
--- a/third_party/WebKit/Source/core/dom/StyleEngine.cpp
+++ b/third_party/WebKit/Source/core/dom/StyleEngine.cpp
@@ -455,6 +455,8 @@ void StyleEngine::clearResolver() {
for (TreeScope* treeScope : m_activeTreeScopes)
treeScope->clearScopedStyleResolver();
+ m_treeBoundaryCrossingScopes.clear();
+
if (m_resolver) {
TRACE_EVENT1("blink", "StyleEngine::clearResolver", "frame",
document().frame());
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/css/boundary-crossing-scopes-null-resolver-crash.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698