From ee315c54c351cb9d82fbde75b77febf71d60e7fe Mon Sep 17 00:00:00 2001 From: kipp Date: Sat, 11 Jul 1998 03:48:33 +0000 Subject: [PATCH] Removed GetCursorAt code git-svn-id: svn://10.0.0.236/trunk@5348 18797224-902f-48f8-a5cc-f745e15eee43 --- .../layout/css/layout/src/nsCSSBlockFrame.cpp | 28 ------------------- 1 file changed, 28 deletions(-) diff --git a/mozilla/layout/css/layout/src/nsCSSBlockFrame.cpp b/mozilla/layout/css/layout/src/nsCSSBlockFrame.cpp index 86d8202d2c0..d5691065d20 100644 --- a/mozilla/layout/css/layout/src/nsCSSBlockFrame.cpp +++ b/mozilla/layout/css/layout/src/nsCSSBlockFrame.cpp @@ -145,10 +145,6 @@ public: NS_IMETHOD HandleEvent(nsIPresContext& aPresContext, nsGUIEvent* aEvent, nsEventStatus& aEventStatus); - NS_IMETHOD GetCursorAt(nsIPresContext& aPresContext, - const nsPoint& aPoint, - nsIFrame** aFrame, - PRInt32& aCursor); NS_IMETHOD List(FILE* out, PRInt32 aIndent) const; NS_IMETHOD ListTag(FILE* out) const; NS_IMETHOD VerifyTree() const; @@ -3821,30 +3817,6 @@ nsCSSBlockFrame::HandleEvent(nsIPresContext& aPresContext, return NS_OK; } -// XXX move into nsFrame -NS_IMETHODIMP -nsCSSBlockFrame::GetCursorAt(nsIPresContext& aPresContext, - const nsPoint& aPoint, - nsIFrame** aFrame, - PRInt32& aCursor) -{ - aCursor = NS_STYLE_CURSOR_INHERIT; - - nsIFrame* kid = (nsnull == mLines) ? nsnull : mLines->mFirstChild; - nsPoint tmp; - while (nsnull != kid) { - nsRect kidRect; - kid->GetRect(kidRect); - if (kidRect.Contains(aPoint)) { - tmp.MoveTo(aPoint.x - kidRect.x, aPoint.y - kidRect.y); - kid->GetCursorAt(aPresContext, tmp, aFrame, aCursor); - break; - } - kid->GetNextSibling(kid); - } - return NS_OK; -} - ////////////////////////////////////////////////////////////////////// // Debugging