[Webkit-unassigned] [Bug 37016] New: WebHTMLView.firstRectForCharacterRange returns wrong y for line beginning of multiline <pre>
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Apr 2 00:27:27 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=37016
Summary: WebHTMLView.firstRectForCharacterRange returns wrong y
for line beginning of multiline <pre>
Product: WebKit
Version: 528+ (Nightly build)
Platform: PC
OS/Version: Mac OS X 10.5
Status: UNCONFIRMED
Severity: Normal
Priority: P3
Component: WebKit API
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: morrita at google.com
Created an attachment (id=52394)
--> (https://bugs.webkit.org/attachment.cgi?id=52394)
reproduce (for DRT)
WebHTMLView.firstRectForCharacterRange returns NSRect with wrong y value.
To reproduce, run attached file on DRT, that will results following text:
You can see a pump "y:600" on y value at the beginning of the line.
----
Ignore me; this block is just a place holder to make the test result
significant.
ABC
DEF
abc
def
2
i:0
x:16 y:364
x:24 y:364
x:32 y:364
x:8 y:349
x:16 y:349
x:24 y:349
x:32 y:349
i:1
x:16 y:321
x:24 y:321
x:32 y:321
x:0 y:600
x:16 y:306
x:24 y:306
x:32 y:306
----
This problem is observable only from WebKit API, and not visible from DOM.
The test case uses textInputController.firstRectForCharacterRange() to reveal
it.
The expectation for LayoutTest/editing/selection/move-left-right.html is also
suffered by this problem,
although its difference is minor issue for that test case.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list