diff options
author | Simon Hausmann <simon.hausmann@nokia.com> | 2012-01-06 16:29:20 +0100 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@nokia.com> | 2012-01-06 16:29:20 +0100 |
commit | 6300a96eca9f152b379f1bcf3d9efdc5572d989a (patch) | |
tree | 7846dd5390cafcdfe12a110f5e8b95ac8c4c725a /Source/WebCore/dom/Document.cpp | |
parent | 40736c5763bf61337c8c14e16d8587db021a87d4 (diff) | |
download | qtwebkit-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.cpp | 2 |
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() |