Title: [104290] trunk/Source/WebCore
Revision
104290
Author
[email protected]
Date
2012-01-06 06:48:23 -0800 (Fri, 06 Jan 2012)

Log Message

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):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (104289 => 104290)


--- trunk/Source/WebCore/ChangeLog	2012-01-06 14:25:39 UTC (rev 104289)
+++ trunk/Source/WebCore/ChangeLog	2012-01-06 14:48:23 UTC (rev 104290)
@@ -1,3 +1,17 @@
+2012-01-05  Antti Koivisto  <[email protected]>
+
+        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ø  <[email protected]>
 
         [Qt] Move listing of include paths and libs to pri files in sources

Modified: trunk/Source/WebCore/dom/Document.cpp (104289 => 104290)


--- trunk/Source/WebCore/dom/Document.cpp	2012-01-06 14:25:39 UTC (rev 104289)
+++ trunk/Source/WebCore/dom/Document.cpp	2012-01-06 14:48:23 UTC (rev 104290)
@@ -713,6 +713,8 @@
     m_docType = docType;
     if (m_docType)
         m_docType->setTreeScopeRecursively(this);
+    // Doctype affects the interpretation of the stylesheets.
+    m_styleSelector.clear();
 }
 
 DOMImplementation* Document::implementation()
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to