WebCore:
Reviewed by Dave.
WebCore part of fix for:
<rdar://problem/
3759187> REGRESSION (Mail): implement firstRectForCharacterRange:
* kwq/WebCoreBridge.h:
* kwq/WebCoreBridge.mm:
(-[WebCoreBridge firstRectForDOMRange:]): New method to compute the rect for a
DOMRange, or if the range is split into multiple lines, the rect for the part on
the first line only.
* khtml/rendering/render_object.cpp:
(RenderObject::caretRect): Added extraWidthToEndOfLine parameter and ditto
for the overrides below.
* khtml/rendering/render_object.h:
* khtml/rendering/render_box.cpp:
(RenderBox::caretRect):
* khtml/rendering/render_box.h:
* khtml/rendering/render_br.cpp:
(RenderBR::caretRect):
* khtml/rendering/render_br.h:
* khtml/rendering/render_flow.cpp:
(RenderFlow::caretRect):
* khtml/rendering/render_flow.h:
* khtml/rendering/render_text.cpp:
(RenderText::caretRect):
WebKit:
Reviewed by Dave.
WebKit part of fix for:
<rdar://problem/
3759187> REGRESSION (Mail): implement firstRectForCharacterRange:
* WebView.subproj/WebHTMLView.m:
(-[WebHTMLView firstRectForCharacterRange:]): Call the appropriate new bridge method,
and translate to screen coordinates.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@7500
268f45cc-cd09-0410-ab3c-
d52691b4dbfc