| Index: Source/WebCore/dom/Document.cpp
|
| ===================================================================
|
| --- Source/WebCore/dom/Document.cpp (revision 135771)
|
| +++ Source/WebCore/dom/Document.cpp (working copy)
|
| @@ -794,14 +794,13 @@
|
| {
|
| if (m_compatibilityModeLocked || mode == m_compatibilityMode)
|
| return;
|
| - ASSERT(m_styleSheetCollection->activeAuthorStyleSheets().isEmpty());
|
| bool wasInQuirksMode = inQuirksMode();
|
| m_compatibilityMode = mode;
|
| selectorQueryCache()->invalidate();
|
| if (inQuirksMode() != wasInQuirksMode) {
|
| // All user stylesheets have to reparse using the different mode.
|
| m_styleSheetCollection->clearPageUserSheet();
|
| - m_styleSheetCollection->clearPageGroupUserSheets();
|
| + m_styleSheetCollection->invalidateInjectedStyleSheetCache();
|
| }
|
| }
|
|
|
|
|