Closed
Bug 163137
Opened 22 years ago
Closed 22 years ago
DOM Inspector only scroll to the right element if it is HTML
Categories
(Other Applications :: DOM Inspector, defect)
Other Applications
DOM Inspector
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: rbs, Assigned: caillon)
Details
Attachments
(3 files)
4.48 KB,
text/html
|
Details | |
2.88 KB,
patch
|
Details | Diff | Splinter Review | |
5.50 KB,
patch
|
rbs
:
review+
bzbarsky
:
superreview+
bzbarsky
:
superreview+
|
Details | Diff | Splinter Review |
Follow-up to bug 112817.
The fix that was done only works for HTML documents (because the function used,
element.scrollIntoView, is only defined for the HTML DOM). So the whole world of
XML/XHTML/MathML was left out of the equation.
Comment 1•22 years ago
|
||
Actually, XHTML is fine, since it creates HTMLElement instances.... but yes, the
other stuff is not fine.
I'll see whether I can do this without messing with the selection too much...
Comment 2•22 years ago
|
||
Comment 3•22 years ago
|
||
Comment 4•22 years ago
|
||
This patch would be fine except for one little thing.... scrollSelectionIntoView
is broken at times. I have not figured out when exactly... if I use
ANCHOR_REGION, then scrolling to the last <li> in the testcase does not work.
If I use FOCUS_REGION I get weird things on tinderbox at times....
Assignee | ||
Comment 5•22 years ago
|
||
Put a cool scroll method on our flasher interface, and make it use
nsIPresShell::ScrollFrameIntoView()
Comment 6•22 years ago
|
||
Comment on attachment 106333 [details] [diff] [review]
Using scrollFrameIntoView
r/sr=bzbarsky.... I need to start thinking outside the box...
Attachment #106333 -
Flags: superreview+
Comment 7•22 years ago
|
||
Comment on attachment 106333 [details] [diff] [review]
Using scrollFrameIntoView
r/sr=bzbarsky.... I need to start thinking outside the box...
Comment 8•22 years ago
|
||
Wow. Bugzilla's not dealing well with submission during a backup... ;) anyway,
this is all your, Chris.
Assignee: bzbarsky → caillon
Comment on attachment 106333 [details] [diff] [review]
Using scrollFrameIntoView
r=rbs
For the curious, it works nice with MathML. Since MathML has a lot of tiny
frames, you can really appreciate the flasher there -- as you navigate in those
tiny frames. Turn View->ShowWhitespaceNodes off and point your inspector at
<math> nodes in:
http://www.mozilla.org/projects/mathml/start.xml
Attachment #106333 -
Flags: review+
Assignee | ||
Comment 10•22 years ago
|
||
Checked in.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Updated•20 years ago
|
Product: Core → Other Applications
Updated•17 years ago
|
QA Contact: timeless → dom-inspector
You need to log in
before you can comment on or make changes to this bug.
Description
•