Commit 579c7272 authored by eric.carlson@apple.com's avatar eric.carlson@apple.com
Browse files

Allow ports to override text track rendering style

https://bugs.webkit.org/show_bug.cgi?id=97800
<rdar://problem/12044964>

Unreviewed Build fix.
        
CGFloat is already a float in a 32-bit build so narrowPrecisionToFloat() is unnecessary

* page/CaptionUserPreferencesMac.mm:
(WebCore::CaptionUserPreferencesMac::captionFontSizeScale):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132356 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 06119ec6
2012-10-24 Eric Carlson <eric.carlson@apple.com>
Allow ports to override text track rendering style
https://bugs.webkit.org/show_bug.cgi?id=97800
<rdar://problem/12044964>
Unreviewed Build fix.
CGFloat is already a float in a 32-bit build so narrowPrecisionToFloat() is unnecessary
* page/CaptionUserPreferencesMac.mm:
(WebCore::CaptionUserPreferencesMac::captionFontSizeScale):
2012-10-24 Eric Carlson <eric.carlson@apple.com>
 
Allow ports to override text track rendering style
......@@ -303,7 +303,11 @@ float CaptionUserPreferencesMac::captionFontSizeScale() const
if (!wkCaptionAppearanceGetRelativeCharacterSize(&scaleAdjustment))
return characterScale;
#if defined(__LP64__) && __LP64__
return narrowPrecisionToFloat(scaleAdjustment * characterScale);
#else
return scaleAdjustment * characterScale;
#endif
}
void CaptionUserPreferencesMac::captionPreferencesChanged()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment