Removed GetCursorAt code
git-svn-id: svn://10.0.0.236/trunk@5348 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
8ede9c3501
commit
ee315c54c3
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user