Index: Source/core/dom/StyleEngine.h |
diff --git a/Source/core/dom/StyleEngine.h b/Source/core/dom/StyleEngine.h |
index 0912ff8dc0ce7fb2473507117956c6d76854a080..5f6e0e14c6eed29b93abae050ec7b1ee5b500c65 100644 |
--- a/Source/core/dom/StyleEngine.h |
+++ b/Source/core/dom/StyleEngine.h |
@@ -28,6 +28,7 @@ |
#ifndef StyleEngine_h |
#define StyleEngine_h |
+#include "core/css/resolver/StyleResolver.h" |
#include "core/dom/Document.h" |
#include "core/dom/DocumentOrderedList.h" |
#include "core/dom/DocumentStyleSheetCollection.h" |
@@ -140,8 +141,11 @@ public: |
StyleResolver* resolver() |
{ |
- if (!m_resolver) |
+ if (!m_resolver) { |
createResolver(); |
+ } else if (m_resolver->hasPendingAuthorStyleSheets()) { |
+ m_resolver->appendPendingAuthorStyleSheets(); |
+ } |
return m_resolver.get(); |
} |