diff options
Diffstat (limited to 'WebCore/rendering/RenderText.cpp')
-rw-r--r-- | WebCore/rendering/RenderText.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/WebCore/rendering/RenderText.cpp b/WebCore/rendering/RenderText.cpp index c70ac58..bd050d8 100644 --- a/WebCore/rendering/RenderText.cpp +++ b/WebCore/rendering/RenderText.cpp @@ -140,9 +140,8 @@ bool RenderText::isWordBreak() const void RenderText::updateNeedsTranscoding() { - const AtomicString& fontFamily = style()->font().family().family(); const TextEncoding* encoding = document()->decoder() ? &document()->decoder()->encoding() : 0; - m_needsTranscoding = fontTranscoder().needsTranscoding(fontFamily, encoding); + m_needsTranscoding = fontTranscoder().needsTranscoding(style()->font().fontDescription(), encoding); } void RenderText::styleDidChange(StyleDifference diff, const RenderStyle* oldStyle) @@ -1044,9 +1043,8 @@ void RenderText::setTextInternal(PassRefPtr<StringImpl> text) ASSERT(text); m_text = text; if (m_needsTranscoding) { - const AtomicString& fontFamily = style()->font().family().family(); const TextEncoding* encoding = document()->decoder() ? &document()->decoder()->encoding() : 0; - fontTranscoder().convert(m_text, fontFamily, encoding); + fontTranscoder().convert(m_text, style()->font().fontDescription(), encoding); } ASSERT(m_text); |