mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 832120 cursor: auto; should be cursor: text; on editable element r=dbaron
This commit is contained in:
parent
5a451d0261
commit
12e37ff264
@ -3682,7 +3682,10 @@ nsFrame::GetCursor(const nsPoint& aPoint,
|
||||
{
|
||||
FillCursorInformationFromStyle(GetStyleUserInterface(), aCursor);
|
||||
if (NS_STYLE_CURSOR_AUTO == aCursor.mCursor) {
|
||||
aCursor.mCursor = NS_STYLE_CURSOR_DEFAULT;
|
||||
// If this is editable, I-beam cursor is better for most elements.
|
||||
aCursor.mCursor =
|
||||
(mContent && mContent->IsEditable()) ? NS_STYLE_CURSOR_TEXT :
|
||||
NS_STYLE_CURSOR_DEFAULT;
|
||||
}
|
||||
|
||||
|
||||
|
@ -4270,6 +4270,10 @@ nsTextFrame::GetCursor(const nsPoint& aPoint,
|
||||
FillCursorInformationFromStyle(GetStyleUserInterface(), aCursor);
|
||||
if (NS_STYLE_CURSOR_AUTO == aCursor.mCursor) {
|
||||
aCursor.mCursor = NS_STYLE_CURSOR_TEXT;
|
||||
// If this is editable, we should ignore tabindex value.
|
||||
if (mContent->IsEditable()) {
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
// If tabindex >= 0, use default cursor to indicate it's not selectable
|
||||
nsIFrame *ancestorFrame = this;
|
||||
|
Loading…
Reference in New Issue
Block a user