cleaned up cursor style handling

This commit is contained in:
peterl@netscape.com
1998-11-18 02:11:54 +00:00
parent b8c981218c
commit baefdbc1e7
20 changed files with 68 additions and 191 deletions

View File

@@ -367,8 +367,13 @@ NS_METHOD nsContainerFrame::GetCursorAndContentAt(nsIPresContext& aPresContext,
nsIContent** aContent,
PRInt32& aCursor)
{
aCursor = NS_STYLE_CURSOR_INHERIT;
const nsStyleColor* color = (const nsStyleColor*)
mStyleContext->GetStyleData(eStyleStruct_Color);
if (NS_STYLE_CURSOR_AUTO != color->mCursor) {
aCursor = color->mCursor;
}
*aContent = mContent;
*aFrame = this;
nsIFrame* kid;
FirstChild(nsnull, kid);