[Webkit-unassigned] [Bug 12278] REGRESSION(r13070): Dragged image size includes padding

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jan 15 23:28:21 PST 2007


http://bugs.webkit.org/show_bug.cgi?id=12278





------- Comment #2 from darin at apple.com  2007-01-15 23:28 PDT -------
The bug here is in -[WebElementDictionary _imageRect], which calls
HitTestResult::boundingBox.

There's been an attempt to generalize things too much. An image's rect is not
the same thing as the absoluteBoundingBoxRect, which is what
HitTestResult::boundingBox computes. To find the image's rect, we need to take
the margin and border into account as RenderImage::paint does.

I suggest we add a function to HitTestResult called imageRect and use that.


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list