Unreviewed, another fix for the Windows build after r148050.
authoreric.carlson@apple.com <eric.carlson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 9 Apr 2013 22:52:04 +0000 (22:52 +0000)
committereric.carlson@apple.com <eric.carlson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 9 Apr 2013 22:52:04 +0000 (22:52 +0000)
* html/track/TextTrackCueGeneric.cpp:
(WebCore::TextTrackCueGeneric::setFontSize): Use lround().

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@148058 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/html/track/TextTrackCueGeneric.cpp

index 5e518a5..4928cd7 100644 (file)
@@ -1,3 +1,10 @@
+2013-04-09  Eric Carlson  <eric.carlson@apple.com>
+
+        Unreviewed, another fix for the Windows build after r148050.
+
+        * html/track/TextTrackCueGeneric.cpp:
+        (WebCore::TextTrackCueGeneric::setFontSize): Use lround().
+
 2013-04-09  Bem Jones-Bey  <bjonesbe@adobe.com>
 
         [CSS Exclusions] Properly position multiple stacked floats with non rectangular shape outside
index b7756d6..8e10a37 100644 (file)
@@ -146,9 +146,9 @@ void TextTrackCueGeneric::setFontSize(int fontSize, const IntSize& videoSize, bo
     double size = videoSize.height() * baseFontSizeRelativeToVideoHeight() / 100;
     if (fontSizeMultiplier())
         size *= fontSizeMultiplier() / 100;
-    element()->setInlineStyleProperty(CSSPropertyFontSize, String::number(lrintf(size)) + "px");
+    element()->setInlineStyleProperty(CSSPropertyFontSize, String::number(lround(size)) + "px");
 
-    LOG(Media, "TextTrackCueGeneric::setFontSize - setting cue font size to %li", lrintf(size));
+    LOG(Media, "TextTrackCueGeneric::setFontSize - setting cue font size to %li", lround(size));
 }
     
 bool TextTrackCueGeneric::operator==(const TextTrackCue& cue) const