Closed
Bug 400208
Opened 17 years ago
Closed 17 years ago
nsViewManager mScrollCnt "leaks", causing flicker
Categories
(Core :: Web Painting, defect)
Core
Web Painting
Tracking
()
RESOLVED
FIXED
People
(Reporter: roc, Assigned: roc)
Details
Attachments
(2 files)
1.80 KB,
patch
|
bzbarsky
:
review+
bzbarsky
:
superreview+
beltzner
:
approvalM9+
beltzner
:
approval1.9+
|
Details | Diff | Splinter Review |
1.00 KB,
text/html
|
Details |
nsViewManager::UpdateViewAfterScroll takes a couple of early-exit paths that don't decrement mScrollCnt. This is really bad because it means mScrollCnt will be permanently > 0. And that means we will never flush reflows/restyles when painting, which can lead to flicker.
Requesting blocking because this is hurting a new version of a major app by a certain Large Internet Company. The bug is very hard to diagnose or work around, and the patch I will attach is very safe.
Flags: blocking1.9?
Attachment #285277 -
Flags: superreview?(bzbarsky)
Attachment #285277 -
Flags: review?(bzbarsky)
Assignee | ||
Comment 1•17 years ago
|
||
this test shows the bug. we don't have an easy way to reftest this, though, because drawWindow flushes...
changing the width of the "i" DIV to something nonzero makes the bug go away --- when the width is zero, we're exiting early from UpdateViewAfterScroll because the rect is empty.
![]() |
||
Comment 2•17 years ago
|
||
Comment on attachment 285277 [details] [diff] [review]
obvious patch
Indeed.
Attachment #285277 -
Flags: superreview?(bzbarsky)
Attachment #285277 -
Flags: superreview+
Attachment #285277 -
Flags: review?(bzbarsky)
Attachment #285277 -
Flags: review+
Assignee | ||
Updated•17 years ago
|
Attachment #285277 -
Flags: approval1.9?
Assignee | ||
Updated•17 years ago
|
Flags: blocking1.9? → blocking1.9+
Assignee | ||
Updated•17 years ago
|
Whiteboard: [needs approval/landing]
Assignee | ||
Comment 3•17 years ago
|
||
Comment on attachment 285277 [details] [diff] [review]
obvious patch
Simple safe fix for a bug is causing weird, hard-to-diagnose problems in web applications by Large Internet Companies
Attachment #285277 -
Flags: approval1.9? → approvalM9?
Comment 4•17 years ago
|
||
Comment on attachment 285277 [details] [diff] [review]
obvious patch
a=endgame drivers for M9 landing
Attachment #285277 -
Flags: approvalM9?
Attachment #285277 -
Flags: approvalM9+
Attachment #285277 -
Flags: approval1.9+
Assignee | ||
Comment 5•17 years ago
|
||
checked in.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Whiteboard: [needs approval/landing]
Updated•7 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
•