Ignore:
Timestamp:
Sep 28, 2013, 9:34:37 PM (12 years ago)
Author:
Antti Koivisto
Message:

Switch inline boxes to use const RenderStyle&
https://bugs.webkit.org/show_bug.cgi?id=122068

Reviewed by Sam Weinig.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/rendering/RenderImage.cpp

    r155908 r156613  
    128128
    129129        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));
    131131        imageSize = imageSize.expandedTo(paddedTextSize);
    132132    }
     
    393393                // Only draw the alt text if it'll fit within the content box,
    394394                // 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());
    396396                LayoutUnit textWidth = font.width(textRun);
    397397                if (errorPictureDrawn) {
Note: See TracChangeset for help on using the changeset viewer.