Closed Bug 312106 Opened 19 years ago Closed 18 years ago

Caret never gets unpainted

Categories

(Core :: Graphics, defect)

x86
All
defect
Not set
normal

Tracking

()

VERIFIED FIXED

People

(Reporter: djcater+bugzilla, Unassigned)

References

Details

(Keywords: testcase, Whiteboard: cairo)

Attachments

(2 files)

Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a1) Gecko/20051009 Firefox/1.6a1

Place caret in location bar at end of URL.
Hold down left arrow.
View textbox full of carets.

I tried to screenshot this behaviour, but when I do the window sort of refreshes
and they disappear. Basically a caret after every letter, unblinking.

Any sort of reflow removes the carets.
Attached image Screenshot of problem
Here's a screenshot from Windows XP (also showing that it's not a Linux-specific problem).
*** Bug 324718 has been marked as a duplicate of this bug. ***
OS: Linux → All
This is due to XOR/InvertRect no longer doing a bitwise XOR operation.  We don't really have a good solution to that problem.

One idea for fixing this include having the caret code blit from the backbuffer to the front and then draw the caret on the front.  when it wants to undraw, it should just copy from the back buffer.

I'm sure there are some other ways as well.
can this one be resolved Stuart ?

Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a1) Gecko/20060210 Firefox/1.6a1 ID:2006021023 / Cairo

WFM
No, it's still an issue, just not as visible -- try moving the caret with the cursor keys in an entry box.
As was noted on MozillaZine, aside from sometimes cutting off letters, the current hack-fix erases the caret by drawing it over with white - on a site with dark textboxes, you get white leftovers (if you have good eyes you can see this with the yellow address bar on https sites like bugzilla).
Attached file testcase
Whiteboard: cairo
Also drawing it over with white is very visible on yellow https url.

There's a related problem (worthy of another bug entry ?). 
With some large url (that also have an rss feed ?), when you move and scroll to the end of the url, the caret gets actually badly positionned wrt the characters in addition to the bad redrawing.

The "Bugs Filed Today" url on bugzilla is a good exemple :
https://bugzilla.mozilla.org/buglist.cgi?product=Core&product=Firefox&product=Mozilla+Application+Suite&product=Thunderbird&product=Toolkit&bug_status=UNCONFIRMED,NEW,ASSIGNED,REOPENED,RESOLVED&chfield=%5BBug%20creation%5D&chfieldfrom=-0d
The patch in bug 287813 should fix this.
Depends on: 287813
*** Bug 332507 has been marked as a duplicate of this bug. ***
*** Bug 333753 has been marked as a duplicate of this bug. ***
Flags: blocking1.9a1?
This is fixed by bug 287813. (I confirmed on Windows)

-> FIXED
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Sorry, I reopen this. The caret is drawn by black, not invert.

-> REOPEN
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
if the caret gets unpainted lets close this.  open another bug on the blackness of the caret.
Status: REOPENED → RESOLVED
Closed: 18 years ago18 years ago
Resolution: --- → FIXED
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a1) Gecko/20060418 Firefox/3.0a1 ID:2006041810 [cairo]

verified
Status: RESOLVED → VERIFIED
(In reply to comment #14)
> if the caret gets unpainted lets close this.  open another bug on the blackness
> of the caret.
> 

I opended bug 334635.
*** Bug 331195 has been marked as a duplicate of this bug. ***
Flags: blocking1.9a1?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: