WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WONTFIX
Bug 59021
[chromium] firstRectForCharacterRange returns wrong result in DRT
https://bugs.webkit.org/show_bug.cgi?id=59021
Summary
[chromium] firstRectForCharacterRange returns wrong result in DRT
Xiaomei Ji
Reported
2011-04-20 13:36:31 PDT
Created
attachment 90400
[details]
test case For the following test case, <div id="div" dir=ltr class="test_move_by_word" title="0 4 11 15|18 15 11 4 0" contenteditable>abc def hij opq</div> When caret is at the right of "opq", the caretRect returned from firstRectForCharacterRange() is NULL. Following is the gdb result. Breakpoint 1, WebKit::WebFrameImpl::firstRectForCharacterRange ( this=0x7fffe8097df0, location=18, length=0, rect=...) at third_party/WebKit/Source/WebKit/chromium/src/WebFrameImpl.cpp:1163 1163 if (!range) (gdb) p range $4 = {m_ptr = 0x0} (gdb) p scope->nodeType() $5 = WebCore::Node::ELEMENT_NODE (gdb) where 3 #0 WebKit::WebFrameImpl::firstRectForCharacterRange (this=0x7fffe8097df0, location=18, length=0, rect=...) at third_party/WebKit/Source/WebKit/chromium/src/WebFrameImpl.cpp:1163 #1 0x000000000045b658 in TextInputController::firstRectForCharacterRange ( this=0x7fffe8097590, arguments=..., result=0x7fffffffb5c0) at third_party/WebKit/Tools/DumpRenderTree/chromium/TextInputController.cpp:192 #2 0x000000000045c42a in CppBoundClass::MemberCallback<TextInputController>::run (this=0x7fffe8089b00, arguments=..., result=0x7fffffffb5c0) at third_party/WebKit/Tools/DumpRenderTree/chromium/CppBoundClass.h:125 (More stack frames follow...) scope is the <div> node. TextIterator::rangeFromLocationAndLength(<div> node, 18, 0) returns NULL range.
Attachments
test case
(1.20 KB, text/html)
2011-04-20 13:36 PDT
,
Xiaomei Ji
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Xiaomei Ji
Comment 1
2011-04-20 14:57:12 PDT
related chromium's bug:
http://code.google.com/p/chromium/issues/detail?id=3273
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