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)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: rbs, Assigned: caillon)

Details

Attachments

(3 files)

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.
OS: Windows 2000 → All
Hardware: PC → All
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...
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....
Put a cool scroll method on our flasher interface, and make it use nsIPresShell::ScrollFrameIntoView()
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 on attachment 106333 [details] [diff] [review] Using scrollFrameIntoView r/sr=bzbarsky.... I need to start thinking outside the box...
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+
Checked in.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Product: Core → Other Applications
QA Contact: timeless → dom-inspector
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: