Bug 25193

Summary: rangeFromLocationAndLength may set a Range endpoint to a non-range compliant Position
Product: WebKit Reporter: Justin Garcia <justin.garcia>
Component: HTML EditingAssignee: Justin Garcia <justin.garcia>
Status: NEW    
Severity: Normal CC: ahmad.saleem792, ap, rniwa, tony, wenson_hsieh
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.5   

Justin Garcia
Reported 2009-04-14 17:11:34 PDT
TextIterator::rangeFromLocationAndLength does: Position runEnd = VisiblePosition(runStart).next().deepEquivalent(); if (runEnd.isNotNull()) { ExceptionCode ec = 0; textRunRange->setEnd(runEnd.node(), runEnd.m_offset, ec); ASSERT(!ec); } runEnd may not be Range compliant.
Attachments
Ahmad Saleem
Comment 1 2022-12-16 16:46:50 PST
I am only able to find "rangeFromLocationAndLength" in three files: Internals.cpp ; Internals.h ; CompositeEditCommand.cpp For the last, it was in the comment. Further, this commit delete this function - https://github.com/WebKit/WebKit/commit/b19656cfb6c28634404b0f8f9ccaf553638bedb5 Do we need to keep this open? Thanks!
Note You need to log in before you can comment on or make changes to this bug.