Changeset 156613 in webkit for trunk/Source/WebCore/rendering/RenderImage.cpp
- Timestamp:
- Sep 28, 2013, 9:34:37 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/rendering/RenderImage.cpp
r155908 r156613 128 128 129 129 const Font& font = style()->font(); 130 IntSize paddedTextSize(paddingWidth + min(ceilf(font.width(RenderBlock::constructTextRun(this, font, m_altText, style()))), maxAltTextWidth), paddingHeight + min(font.fontMetrics().height(), maxAltTextHeight));130 IntSize paddedTextSize(paddingWidth + min(ceilf(font.width(RenderBlock::constructTextRun(this, font, m_altText, *style()))), maxAltTextWidth), paddingHeight + min(font.fontMetrics().height(), maxAltTextHeight)); 131 131 imageSize = imageSize.expandedTo(paddedTextSize); 132 132 } … … 393 393 // Only draw the alt text if it'll fit within the content box, 394 394 // and only if it fits above the error image. 395 TextRun textRun = RenderBlock::constructTextRun(this, font, text, style());395 TextRun textRun = RenderBlock::constructTextRun(this, font, text, *style()); 396 396 LayoutUnit textWidth = font.width(textRun); 397 397 if (errorPictureDrawn) {
Note:
See TracChangeset
for help on using the changeset viewer.