Open Bug 15284 Opened 20 years ago Updated 11 years ago

caret code should respect style context settings

Categories

(Core :: DOM: Selection, defect, P4)

defect

Tracking

()

Future

People

(Reporter: buster, Unassigned)

Details

(Keywords: polish, Whiteboard: [nsbeta3-][expired?])

today, caret painting is boolean based on the frame type and the pres shell
setting.
all the UI properties from CSS-3 are implemented in gecko, so we should start
using them.  Caret painting can be controlled by looking at the
nsStyleUserInterface part of the nsStyleContext.  In particular,
the user_modifiable property implies whether the caret should be displayed or
not.
OS: Windows NT → All
Hardware: PC → All
Target Milestone: M14
change to all platforms; set to M14 (post-beta)
Status: NEW → ASSIGNED
Target Milestone: M14 → M15
M16
Target Milestone: M15 → M16
m17
Target Milestone: M16 → M17
this should also include the caret height, this is correctness and polish
Keywords: correctness, polish
Target Milestone: M17 → M19
setting to nsbeta3+
Keywords: nsbeta3
Whiteboard: nsbeta3+
Target Milestone: M19 → M18
adding brackets to status whiteboard
Whiteboard: nsbeta3+ → [nsbeta3+]
setting priority in status whiteboard
Whiteboard: [nsbeta3+] → [nsbeta3+][p:4]
Priority: P3 → P4
*SPAM*: Changing the QA contact of all open/resolved Selection bugs from 
elig@netscape.com to BlakeR1234@aol.com.  After the many great years of service 
Eli has given to Mozilla, it's time for him to move on; he has accepted a 
position at Eazel.  We'll be sad to see him go, and I'll do my best to fill his 
spot...
QA Contact: elig → BlakeR1234
It turns out that user-modify style is set to NS_STYLE_USER_MODIFY_READ_ONLY for 
the content of text fields and in composer, since this is the default. To make 
this work, we'd need to have CSS that sets user-modify 
NS_STYLE_USER_MODIFY_READ_WRITE wherever we do editing. This seems like too big a 
change to do now. I'll leave some code #ifdeffed in nsCaret to support this.

Removing status whiteboard entries.
Whiteboard: [nsbeta3+][p:4]
Target Milestone: M18 → Future
excellent debugging and analysis -- setting to nsbeta3-
Whiteboard: [nsbeta3-]
QA Contact: blaker → tpreston
removing myself from the cc list
Note that at least on Windows the caret is always visible in textfields whether
they are editable or not, and IMHO it is a bug that this isn't true in Mozilla.
Assignee: sfraser_bugs → nobody
URL: N/A
QA Contact: tpreston → selection
Whiteboard: [nsbeta3-] → [nsbeta3-][expired?]
Status: ASSIGNED → NEW
You need to log in before you can comment on or make changes to this bug.