Closed
Bug 118308
Opened 23 years ago
Closed 17 years ago
NS_THEME_TEXTFIELD_CARET implementation (GTK)
Categories
(Core Graveyard :: Skinability, enhancement)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: ian, Assigned: ventnor.bugzilla)
References
Details
Attachments
(1 file, 1 obsolete file)
13.13 KB,
patch
|
roc
:
review+
roc
:
superreview+
|
Details | Diff | Splinter Review |
This covers the GTK implementation of NS_THEME_TEXTFIELD_CARET. See bug 115761
for the XP side of this code (hooking nsITheme to PaintCaret).
Reporter | ||
Updated•23 years ago
|
Updated•21 years ago
|
Assignee: blizzard → p_ch
Assignee | ||
Comment 1•17 years ago
|
||
This covers the XP part of hooking up nsCaret to the theme system. It also provides native drawing hooks for GTK so this will also fix bug 252242.
Assignee: p_ch → ventnor.bugzilla
Status: NEW → ASSIGNED
Attachment #326234 -
Flags: superreview?(roc)
Attachment #326234 -
Flags: review?(roc)
+ nscoord caretWidth = 0;
+ if (aCaretHeight && mCaretAspectRatio) {
+ caretWidth = aCaretHeight * mCaretAspectRatio;
+ }
absolutely no point in avoid multiplications here. Just do 'caretWidth = ... * ..."
The native caret is not aware of the bidi state so this disables the bidi "hook" caret when the native caret is used. We probably shouldn't do that. The lowest-risk thing to do is to not use the native caret if GetHookRect() is nonempty.
Assignee | ||
Comment 3•17 years ago
|
||
Fix comments.
Attachment #326234 -
Attachment is obsolete: true
Attachment #326241 -
Flags: superreview?(roc)
Attachment #326241 -
Flags: review?(roc)
Attachment #326234 -
Flags: superreview?(roc)
Attachment #326234 -
Flags: review?(roc)
Attachment #326241 -
Flags: superreview?(roc)
Attachment #326241 -
Flags: superreview+
Attachment #326241 -
Flags: review?(roc)
Attachment #326241 -
Flags: review+
Assignee | ||
Updated•17 years ago
|
Keywords: checkin-needed
Assignee | ||
Comment 4•17 years ago
|
||
Checked in
ba1a2dc688af
Updated•16 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•