Closed Bug 200027 Opened 23 years ago Closed 1 year ago

home and end snap inside of links when link is the first of last thing on the line

Categories

(Core :: DOM: Selection, defect)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1357365
mozilla1.5alpha

People

(Reporter: mjudge, Unassigned)

References

Details

(Keywords: topembed+, Whiteboard: editorbase+)

Attachments

(2 files, 1 obsolete file)

open composer, drop link. click somewhere on page. hit home, type. see how the link is continued and you cannot get out of the link without clicking.
Attached patch patch for layout\html\base\src (obsolete) — Splinter Review
patch that stops getcontentandoffsetsfrompoint from traversing children of a frame that is a link. ONLY if the point passed in is outside of that frame.
marking editorbase for someone to + it
Status: NEW → ASSIGNED
Whiteboard: editorbase
Keywords: topembed
Whiteboard: editorbase → editorbase+
Keywords: topembedtopembed+
re did patch. previous patch was confusing with the cvs diff options. this basically shows the new GetContentOffsetsFromPoint method.
Attachment #118999 - Attachment is obsolete: true
Attachment #120635 - Flags: review?(kaie)
Comment on attachment 120635 [details] [diff] [review] nicer patch for nsFrame.cpp 1) You do result = GetRect(thisRect); but you are not checking result. Should you? 2) You are calling GetClosestViewForFrame() (existing call) and directly after it you are you calling GetOffsetFromView(). Might you be able to get rid of the call to GetClosesViewForFrame(), and check the view returned from GetOffsetFromView for being not null? 3) What about renaming "isLink" to "pointIsOutsideLink"?
Attachment #120635 - Flags: review?(kaie) → review-
just have to fixup possibly bitrotted code and resubmit patch for review.
Target Milestone: --- → mozilla1.5alpha
Blocks: PhtN6
Assignee: mjudge → nobody
Status: ASSIGNED → NEW
QA Contact: pmac → selection

Mass-removing myself from cc; search for 12b9dfe4-ece3-40dc-8d23-60e179f64ac1 or any reasonable part thereof, to mass-delete these notifications (and sorry!)

Severity: normal → S3

Now, Home and End should put caret before/after the first/last link.

Status: NEW → RESOLVED
Closed: 1 year ago
Duplicate of bug: 1357365
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: