From 6d01924c3c7f5cea91ec4255d68ea1748e0dd90e Mon Sep 17 00:00:00 2001 From: "joki%netscape.com" Date: Wed, 19 May 1999 23:28:18 +0000 Subject: [PATCH] Partial fix for 3289, reduce number of repaints/reflow when mousing over toolbar buttons. A:chofmann --- content/events/src/nsEventStateManager.cpp | 4 ---- layout/events/src/nsEventStateManager.cpp | 4 ---- 2 files changed, 8 deletions(-) diff --git a/content/events/src/nsEventStateManager.cpp b/content/events/src/nsEventStateManager.cpp index 39528506a9b0..b736417b83f0 100644 --- a/content/events/src/nsEventStateManager.cpp +++ b/content/events/src/nsEventStateManager.cpp @@ -339,10 +339,6 @@ nsEventStateManager::GenerateMouseEnterExit(nsIPresContext& aPresContext, nsGUIE } } - if (nsEventStatus_eConsumeNoDefault != status) { - SetContentState(nsnull, NS_EVENT_STATE_HOVER); - } - //Now dispatch to the frame if (nsnull != mLastMouseOverFrame) { //XXX Get the new frame diff --git a/layout/events/src/nsEventStateManager.cpp b/layout/events/src/nsEventStateManager.cpp index 39528506a9b0..b736417b83f0 100644 --- a/layout/events/src/nsEventStateManager.cpp +++ b/layout/events/src/nsEventStateManager.cpp @@ -339,10 +339,6 @@ nsEventStateManager::GenerateMouseEnterExit(nsIPresContext& aPresContext, nsGUIE } } - if (nsEventStatus_eConsumeNoDefault != status) { - SetContentState(nsnull, NS_EVENT_STATE_HOVER); - } - //Now dispatch to the frame if (nsnull != mLastMouseOverFrame) { //XXX Get the new frame