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

Unified Diff: Source/WebCore/dom/ProcessingInstruction.cpp

Issue 10809085: Merge 123128 - Crash in WebCore::StyleResolver::collectMatchingRulesForList (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1180/
Patch Set: Created 8 years, 5 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 | « LayoutTests/fast/css/xml-stylesheet-removed-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/dom/ProcessingInstruction.cpp
===================================================================
--- Source/WebCore/dom/ProcessingInstruction.cpp (revision 123527)
+++ Source/WebCore/dom/ProcessingInstruction.cpp (working copy)
@@ -312,7 +312,8 @@
m_sheet = 0;
}
- if (m_cachedSheet)
+ // If we're in document teardown, then we don't need to do any notification of our sheet's removal.
+ if (document()->renderer())
document()->styleResolverChanged(DeferRecalcStyle);
}
« no previous file with comments | « LayoutTests/fast/css/xml-stylesheet-removed-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698