WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
6246
TextIterator::rangeFromLocationAndLength() returns nil range for an empty document
https://bugs.webkit.org/show_bug.cgi?id=6246
Summary
TextIterator::rangeFromLocationAndLength() returns nil range for an empty doc...
Alexey Proskuryakov
Reported
2005-12-26 13:45:54 PST
If a document is such that TextIterator(rangeOfContents(doc).get()).atEnd() is true, TextIterator::rangeFromLocationAndLength() returns a nil range, which makes all functions that use it (e.g. firstRectForCharacterRange) very unhappy.
Attachments
proposed patch
(5.29 KB, patch)
2005-12-26 13:53 PST
,
Alexey Proskuryakov
mjs
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Alexey Proskuryakov
Comment 1
2005-12-26 13:53:07 PST
Created
attachment 5291
[details]
proposed patch
Maciej Stachowiak
Comment 2
2005-12-27 01:38:28 PST
Comment on
attachment 5291
[details]
proposed patch r=me
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug