Blank page except for inner iframes because pending stylesheets cause style.isNotFina...
[WebKit-https.git] / Source / WebCore / html / HTMLLinkElement.cpp
index 1584014..8404e34 100644 (file)
@@ -365,10 +365,12 @@ void HTMLLinkElement::removedFromAncestor(RemovalType removalType, ContainerNode
 
     m_linkLoader.cancelLoad();
 
+    bool wasLoading = styleSheetIsLoading();
+
     if (m_sheet)
         clearSheet();
 
-    if (styleSheetIsLoading())
+    if (wasLoading)
         removePendingSheet();
     
     if (m_styleScope) {