summaryrefslogtreecommitdiff
path: root/Source/WebCore/dom/Document.cpp
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@nokia.com>2012-01-06 16:29:20 +0100
committerSimon Hausmann <simon.hausmann@nokia.com>2012-01-06 16:29:20 +0100
commit6300a96eca9f152b379f1bcf3d9efdc5572d989a (patch)
tree7846dd5390cafcdfe12a110f5e8b95ac8c4c725a /Source/WebCore/dom/Document.cpp
parent40736c5763bf61337c8c14e16d8587db021a87d4 (diff)
downloadqtwebkit-6300a96eca9f152b379f1bcf3d9efdc5572d989a.tar.gz
Imported WebKit commit e5cf15db144eb534fdd94be50a07fc2026e967c3 (http://svn.webkit.org/repository/webkit/trunk@104291)
Diffstat (limited to 'Source/WebCore/dom/Document.cpp')
-rw-r--r--Source/WebCore/dom/Document.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/WebCore/dom/Document.cpp b/Source/WebCore/dom/Document.cpp
index d202a1bf8..66fb4738e 100644
--- a/Source/WebCore/dom/Document.cpp
+++ b/Source/WebCore/dom/Document.cpp
@@ -713,6 +713,8 @@ void Document::setDocType(PassRefPtr<DocumentType> docType)
m_docType = docType;
if (m_docType)
m_docType->setTreeScopeRecursively(this);
+ // Doctype affects the interpretation of the stylesheets.
+ m_styleSelector.clear();
}
DOMImplementation* Document::implementation()