RESOLVED INVALID Bug 139345
RenderObject::absoluteBoundingBoxRect() returns an incorrect height for inline images
https://bugs.webkit.org/show_bug.cgi?id=139345
Summary RenderObject::absoluteBoundingBoxRect() returns an incorrect height for inlin...
Myles C. Maxfield
Reported 2014-12-06 11:56:26 PST
RenderInline::generateCulledLineBoxRects() disregards the height of inline boxes (such as images). Instead, it always uses the font metrics's line height for the line.
Attachments
Test (2.29 KB, patch)
2014-12-08 17:02 PST, Myles C. Maxfield
no flags
Myles C. Maxfield
Comment 1 2014-12-06 12:04:52 PST
int logicalTop = rootBox.logicalTop() + (rootBox.lineStyle().font().fontMetrics().ascent() - containerStyle.font().fontMetrics().ascent()); int logicalHeight = containerStyle.font().fontMetrics().height();
Myles C. Maxfield
Comment 2 2014-12-08 17:02:45 PST
Myles C. Maxfield
Comment 3 2014-12-08 17:14:29 PST
Turns out this is correct behavior.
Note You need to log in before you can comment on or make changes to this bug.