summaryrefslogtreecommitdiff
path: root/Source/WebCore
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore')
-rw-r--r--Source/WebCore/ChangeLog14
-rw-r--r--Source/WebCore/dom/Document.cpp2
2 files changed, 16 insertions, 0 deletions
diff --git a/Source/WebCore/ChangeLog b/Source/WebCore/ChangeLog
index 0ffc27370..5b5e4bc47 100644
--- a/Source/WebCore/ChangeLog
+++ b/Source/WebCore/ChangeLog
@@ -1,3 +1,17 @@
+2012-01-05 Antti Koivisto <antti@apple.com>
+
+ REGRESSION (r104060): fast/forms/textarea-metrics.html is failing
+ https://bugs.webkit.org/show_bug.cgi?id=75644
+
+ Reviewed by Alexey Proskuryakov.
+
+ We need to clear the style selector on doc type change as the doc type
+ may affect interpretation of the stylesheets. r104060 extended the life
+ of the style selector in some cases, exposing this problem.
+
+ * dom/Document.cpp:
+ (WebCore::Document::setDocType):
+
2012-01-06 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
[Qt] Move listing of include paths and libs to pri files in sources
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()