Reviewed by Maciej.
authordarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 3 Apr 2006 16:04:42 +0000 (16:04 +0000)
committerdarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 3 Apr 2006 16:04:42 +0000 (16:04 +0000)
        - Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=8079
        REGRESSION: Redraw from page cache does not show visited links

        * page/Frame.cpp: (WebCore::Frame::reparseConfiguration): Added back
        updateStyleSelector call that was removed as part of the patch for bug 7907.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@13649 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/page/Frame.cpp

index 5df0f4850b62f2bb21bf0d30fce207420ee4ee25..3492e600c50b67f45dba74c0f0ca9fb584853eb4 100644 (file)
@@ -1,3 +1,13 @@
+2006-04-02  David Kilzer  <ddkilzer@kilzer.net>
+
+        Reviewed by Maciej.
+
+        - Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=8079
+        REGRESSION: Redraw from page cache does not show visited links
+
+        * page/Frame.cpp: (WebCore::Frame::reparseConfiguration): Added back
+        updateStyleSelector call that was removed as part of the patch for bug 7907.
+
 2006-04-02  Maciej Stachowiak  <mjs@apple.com>
 
         Reviewed by Hyatt.
index d4fdfea1f17af68b59dcea3e612d67750e2888fa..23aafdc062e208169ebf8afbacba0ee39379988a 100644 (file)
@@ -1640,6 +1640,13 @@ void Frame::reparseConfiguration()
         setUserStyleSheetLocation(userStyleSheetLocation);
     else
         setUserStyleSheet(String());
+
+    // FIXME: It's not entirely clear why the following is needed.
+    // The document automatically does this as required when you set the style sheet.
+    // But we had problems when this code was removed. Details are in
+    // <http://bugzilla.opendarwin.org/show_bug.cgi?id=8079>.
+    if (d->m_doc)
+        d->m_doc->updateStyleSelector();
 }
 
 bool Frame::shouldDragAutoNode(Node *node, const IntPoint& point) const