Closed
Bug 546033
Opened 14 years ago
Closed 14 years ago
Scrolling while the viewport has a focus rectangle causes smearing
Categories
(Core :: Web Painting, defect, P2)
Core
Web Painting
Tracking
()
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
blocking2.0 | --- | final+ |
People
(Reporter: ori, Assigned: roc)
References
Details
Attachments
(1 file, 1 obsolete file)
4.25 KB,
patch
|
enndeakin
:
review+
|
Details | Diff | Splinter Review |
Steps to reproduce: 1) Alt-tab until the entire viewport is in "focus" and has a rectangle around it. 2) Scroll up/down. Results: The focus rect's dotted line will smear. I found this happening beginning with the 2010-01-12 nightly builds. Previously, the focus rect would immediately disappear after scrolling, so no smearing is possible. I assume bug 526394 is to blame.
Updated•14 years ago
|
OS: Linux → All
Hardware: x86 → All
Updated•14 years ago
|
Assignee | ||
Updated•14 years ago
|
Assignee: nobody → roc
blocking2.0: --- → ?
Assignee | ||
Comment 1•14 years ago
|
||
Oops. When nsCanvasFrame::Init is called, the root nsHTMLScrollFrame has not yet been attached to the frame tree. Instead, let's just add the scroll position listener when the nsCanvasFrame actually gets focus ... and to avoid adding it multiple times, remove it when we lose focus.
Attachment #428639 -
Flags: review?(matspal)
Assignee | ||
Updated•14 years ago
|
Whiteboard: [needs review]
Comment 2•14 years ago
|
||
Do you need to also remove the listener in RemoveScrollPositionListener?
Comment 3•14 years ago
|
||
Comment on attachment 428639 [details] [diff] [review] fix You also need to deal with the case of a scroll changing mDoPaintFocus.
Comment 4•14 years ago
|
||
Bah, that's what I meant to say, but failed. I wanted to say remove the listener in ScrollPositionWillChange.
Assignee | ||
Comment 5•14 years ago
|
||
Good catch! RemoveScrollPositionListener during the callback is bad. This approach is simpler. Just AddScrollPositionListener once when we first get focus.
Attachment #428639 -
Attachment is obsolete: true
Attachment #428842 -
Flags: review?(enndeakin)
Attachment #428639 -
Flags: review?(matspal)
Updated•14 years ago
|
Attachment #428842 -
Flags: review?(enndeakin) → review+
Assignee | ||
Updated•14 years ago
|
Whiteboard: [needs review] → [needs landing]
Assignee | ||
Comment 6•14 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/34b13470f8ef
Status: NEW → RESOLVED
Closed: 14 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Whiteboard: [needs landing]
Assignee | ||
Updated•14 years ago
|
blocking2.0: ? → final+
Priority: -- → P2
Updated•6 years ago
|
Component: Layout: View Rendering → Layout: Web Painting
You need to log in
before you can comment on or make changes to this bug.
Description
•