table cell selection now shows up background. also small fix for nsBlockFrame to do the right thing for mouse capture.

git-svn-id: svn://10.0.0.236/trunk@65860 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mjudge%netscape.com
2000-04-13 20:21:32 +00:00
parent c74a04e3a6
commit b5c40f47f1
13 changed files with 249 additions and 6 deletions

View File

@@ -6081,6 +6081,14 @@ nsBlockFrame::HandleEvent(nsIPresContext* aPresContext,
if (aEvent->message == NS_MOUSE_LEFT_BUTTON_DOWN || aEvent->message == NS_MOUSE_MOVE ||
aEvent->message == NS_MOUSE_LEFT_DOUBLECLICK ) {
//we have to add this because any frame that overrides nsFrame::HandleEvent for mouse down MUST capture the mouse events!!
if (aEvent->message == NS_MOUSE_LEFT_BUTTON_DOWN)
{
if (!IsMouseCaptured(aPresContext))
CaptureMouse(aPresContext, PR_TRUE);
}
nsresult result;
nsIFrame *resultFrame = nsnull;//this will be passed the handle event when we
//can tell who to pass it to