Closed
Bug 344514
Opened 18 years ago
Closed 18 years ago
Simplify handling of the eSelectNoAmount case in nsFrame::PeekOffset
Categories
(Core :: DOM: Selection, defect)
Core
DOM: Selection
Tracking
()
RESOLVED
FIXED
mozilla1.9alpha1
People
(Reporter: uriber, Assigned: uriber)
Details
Attachments
(1 file)
2.09 KB,
patch
|
roc
:
review+
roc
:
superreview+
|
Details | Diff | Splinter Review |
While working on bug 343763, I noticed that the eSelectNoAmount case in nsFrame::PeekOffset appears to be using mDesiredX, and calling GetContentOffsetsFromPoint. This seemed bogus,as mDesiredX is not even set to any meaningful value in this case. Tracing through the code path confirmed that after doing all kinds of geometrical calculations, eventually what happened was a simple call to GetRangeForFrame. I suggest replacing the call GetContentOffsetsFromPoint with a direct call to GetRangeForFrame. Patch coming immediately.
Assignee | ||
Comment 1•18 years ago
|
||
Attachment #229078 -
Flags: review?(roc)
Assignee | ||
Updated•18 years ago
|
Status: NEW → ASSIGNED
Attachment #229078 -
Flags: superreview+
Attachment #229078 -
Flags: review?(roc)
Attachment #229078 -
Flags: review+
Assignee | ||
Comment 2•18 years ago
|
||
Checking in layout/generic/nsFrame.cpp; /cvsroot/mozilla/layout/generic/nsFrame.cpp,v <-- nsFrame.cpp new revision: 3.660; previous revision: 3.659 done
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9alpha
You need to log in
before you can comment on or make changes to this bug.
Description
•