Bug 8062

Summary: Caret color in new text field should take background color and foreground color into consideration
Product: WebKit Reporter: Adele Peterson <adele>
Component: FormsAssignee: Adele Peterson <adele>
Status: RESOLVED FIXED    
Severity: Normal CC: ian
Priority: P2    
Version: 420+   
Hardware: Mac   
OS: OS X 10.4   
Attachments:
Description Flags
test
none
patch
adele: review-
new patch hyatt: review+

Description Adele Peterson 2006-03-29 15:11:43 PST
Caret color in new text field should match text color
Comment 1 Adele Peterson 2006-03-30 13:08:43 PST
Created attachment 7399 [details]
test
Comment 2 Adele Peterson 2006-03-30 13:09:43 PST
Created attachment 7401 [details]
patch
Comment 3 Adele Peterson 2006-03-30 15:48:39 PST
Comment on attachment 7401 [details]
patch

Hyatt and I talked about this.  We may want to only do this for text fields... or just use the color of the rootEditableElement....or add a new css property -khtml-caret-color with good default values.
Comment 4 Maciej Stachowiak 2006-04-02 23:25:37 PDT
These are all text field regressions so they should all be P1.
Comment 5 Maciej Stachowiak 2006-04-02 23:29:14 PDT
It's odd that text fields ever did this - rich text NSTextViews don't seem to.
Comment 6 Adele Peterson 2006-04-03 00:18:17 PDT
The old text fields didn't do this.  Hyatt and I discussed adding this feature.  Bumping back down to P2 since its not a regression.
Comment 7 Adele Peterson 2006-08-25 13:26:23 PDT
Changing title to reflect new goal.  We want to choose a white or black caret based on the background color and foreground colors.
Comment 8 Adele Peterson 2006-11-27 13:23:43 PST
Created attachment 11646 [details]
new patch

Hyatt and I discussed this new approach for this bug.  This patch just gets the caret color from the root editable element.  This will work well for text controls, and also will work for editable WebViews by just getting the color from the body element.
Comment 9 Dave Hyatt 2006-11-27 13:38:55 PST
Comment on attachment 11646 [details]
new patch

r=me
Comment 10 Adele Peterson 2006-11-27 13:42:11 PST
Committed revision 17885

worldofwarcraft.com users, rejoice!