Bug 139345

Summary: RenderObject::absoluteBoundingBoxRect() returns an incorrect height for inline images
Product: WebKit Reporter: Myles C. Maxfield <mmaxfield>
Component: Layout and RenderingAssignee: Myles C. Maxfield <mmaxfield>
Status: RESOLVED INVALID    
Severity: Normal CC: simon.fraser
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Test none

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.