2007-02-16 Ada Chan <adachan@apple.com>
authoradachan <adachan@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 17 Feb 2007 04:39:57 +0000 (04:39 +0000)
committeradachan <adachan@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 17 Feb 2007 04:39:57 +0000 (04:39 +0000)
        Reviewed by Adam and Maciej.

        Use a RefPtr to store the old hover node.

        * rendering/RenderLayer.cpp:
        (WebCore::RenderLayer::updateHoverActiveState):

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

WebCore/ChangeLog
WebCore/rendering/RenderLayer.cpp

index a25370c..2dc3371 100644 (file)
@@ -1,3 +1,12 @@
+2007-02-16  Ada Chan  <adachan@apple.com>
+
+        Reviewed by Adam and Maciej.
+
+        Use a RefPtr to store the old hover node.
+
+        * rendering/RenderLayer.cpp:
+        (WebCore::RenderLayer::updateHoverActiveState):
+
 2007-02-16  Darin Adler  <darin@apple.com>
 
         Reviewed by Adele.
index 0a7a07b..1d0c876 100644 (file)
@@ -1910,7 +1910,7 @@ void RenderLayer::updateHoverActiveState(const HitTestRequest& request, HitTestR
 
     // Check to see if the hovered node has changed.  If not, then we don't need to
     // do anything.  
-    Node* oldHoverNode = doc->hoverNode();
+    RefPtr<Node> oldHoverNode = doc->hoverNode();
     Node* newHoverNode = result.innerNode();
 
     // Update our current hover node.