Closed
Bug 566092
Opened 14 years ago
Closed 12 years ago
Inspector highlight doesn't handle reflows correctly
Categories
(DevTools :: General, defect, P2)
Tracking
(firefox11 wontfix)
RESOLVED
FIXED
Firefox 12
Tracking | Status | |
---|---|---|
firefox11 | --- | wontfix |
People
(Reporter: ehsan.akhgari, Assigned: msucan)
References
Details
(Whiteboard: [minotaur][best: 1d; likely: 4d; worst: 2w])
Attachments
(1 file, 1 obsolete file)
4.88 KB,
patch
|
rcampbell
:
review+
akeybl
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
STR: 1. Go to a bug, and highlight the status combobox. 2. Click in the comment box to make it larger. Screenshot: http://grab.by/4o1S
Comment 1•14 years ago
|
||
We need a reflow event in order to fix this properly. We have a bug 453650 on file to create that.
Updated•14 years ago
|
Severity: normal → blocker
Comment 2•14 years ago
|
||
Reprioritizing bugs. You can filter the mail on the word TEABAGS.
Severity: blocker → normal
Updated•13 years ago
|
Whiteboard: [minotaur]
Comment 3•13 years ago
|
||
Can't we use MozAfterPaint?
Comment 4•13 years ago
|
||
(In reply to comment #3) > Can't we use MozAfterPaint? that might work.
Comment 5•13 years ago
|
||
tricky estimate. The MozAfterPaint experiment could Just Work or we might spend a bunch of time on it.
Priority: -- → P2
Whiteboard: [minotaur] → [minotaur][best: 1d; likely: 4d; worst: 2w]
Updated•13 years ago
|
Assignee: nobody → rcampbell
Status: NEW → ASSIGNED
Updated•13 years ago
|
Assignee: rcampbell → mihai.sucan
Assignee | ||
Comment 6•13 years ago
|
||
The STR provided in comment #0 is fixed by the patch from bug 566085. Please let me know if that is sufficient or further action is needed to fix this bug. Thank you!
Comment 9•13 years ago
|
||
Updated•13 years ago
|
Attachment #587446 -
Flags: review?(rcampbell)
Comment 10•13 years ago
|
||
Comment on attachment 587446 [details] [diff] [review] patch v1 yup. we could add a simple test for this.
Attachment #587446 -
Flags: review?(rcampbell) → review+
Comment 11•13 years ago
|
||
What's the point of the scroll event listener at this point?
Comment 12•13 years ago
|
||
(In reply to Dão Gottwald [:dao] from comment #11) > What's the point of the scroll event listener at this point? From what I can see, the scroll events are fired much more frequently than the MozAfterPaint events. Using only MozAfterPaint makes the scrolling animation too slow.
Comment 13•13 years ago
|
||
Apparently, that breaks a couple of tests: https://tbpl.mozilla.org/?tree=Try&rev=49785393e690
Comment 14•12 years ago
|
||
So I thought it might be a good idea to make some test before call highlight: > let newRect = aEvent.boundingClientRect; > if (this._oldAfterPainRect) { > // Are we getter the same rect again? (like a video being played for > // example) > if (this._oldAfterPainRect.top == newRect.top && > this._oldAfterPainRect.left == newRect.left && > this._oldAfterPainRect.width == newRect.width && > this._oldAfterPainRect.height == newRect.height) { > break; > } > > // Are the changes happening inside the current selection? > if (this._contentRect && > newRect.top >= this._contentRect.top && > newRect.left >= this._contentRect.left && > newRect.width <= this._contentRect.width && > newRect.height <= this._contentRect.height) { > break; > } > } else { > this._oldAfterPainRect = {}; > } > this._oldAfterPainRect.top = newRect.top; > this._oldAfterPainRect.left = newRect.left; > this._oldAfterPainRect.width = newRect.width; > this._oldAfterPainRect.height = newRect.height; But this is seriously slowing down the redraw. So I won't do that.
Comment 15•12 years ago
|
||
Updated•12 years ago
|
Attachment #587446 -
Attachment is obsolete: true
Comment 16•12 years ago
|
||
Comment on attachment 588598 [details] [diff] [review] patch - v1 - with test re-asking review because test added and based on the new highlighter code.
Updated•12 years ago
|
Attachment #588598 -
Flags: review?(rcampbell)
Comment 18•12 years ago
|
||
Apparently, this is green enough.
Comment 19•12 years ago
|
||
Comment on attachment 588598 [details] [diff] [review] patch - v1 - with test looks good.
Attachment #588598 -
Flags: review?(rcampbell) → review+
Comment 20•12 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/10825497af66
Whiteboard: [minotaur][best: 1d; likely: 4d; worst: 2w] → [minotaur][best: 1d; likely: 4d; worst: 2w][fixed-in-fx-team]
Comment 21•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/10825497af66
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [minotaur][best: 1d; likely: 4d; worst: 2w][fixed-in-fx-team] → [minotaur][best: 1d; likely: 4d; worst: 2w]
Target Milestone: --- → Firefox 12
Comment 22•12 years ago
|
||
Comment on attachment 588598 [details] [diff] [review] patch - v1 - with test [Approval Request Comment] Regression caused by (bug #): Not a regression. An improvement. User impact if declined: Users won't get updated highlighter rectangles on document reflow. Their nodes will be all awry! Testing completed (on m-c, etc.): on m-c Risk to taking this patch (and alternatives if risky): Limited risk. This tested out fine on our systems.
Attachment #588598 -
Flags: approval-mozilla-aurora?
Comment 23•12 years ago
|
||
Comment on attachment 588598 [details] [diff] [review] patch - v1 - with test [Triage Comment] In support of a new FF10 feature - approved for Aurora 11.
Attachment #588598 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Updated•12 years ago
|
status-firefox11:
--- → wontfix
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•