Title: [148058] trunk/Source/WebCore
- Revision
- 148058
- Author
- [email protected]
- Date
- 2013-04-09 15:52:04 -0700 (Tue, 09 Apr 2013)
Log Message
Unreviewed, another fix for the Windows build after r148050.
* html/track/TextTrackCueGeneric.cpp:
(WebCore::TextTrackCueGeneric::setFontSize): Use lround().
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (148057 => 148058)
--- trunk/Source/WebCore/ChangeLog 2013-04-09 22:37:58 UTC (rev 148057)
+++ trunk/Source/WebCore/ChangeLog 2013-04-09 22:52:04 UTC (rev 148058)
@@ -1,3 +1,10 @@
+2013-04-09 Eric Carlson <[email protected]>
+
+ Unreviewed, another fix for the Windows build after r148050.
+
+ * html/track/TextTrackCueGeneric.cpp:
+ (WebCore::TextTrackCueGeneric::setFontSize): Use lround().
+
2013-04-09 Bem Jones-Bey <[email protected]>
[CSS Exclusions] Properly position multiple stacked floats with non rectangular shape outside
Modified: trunk/Source/WebCore/html/track/TextTrackCueGeneric.cpp (148057 => 148058)
--- trunk/Source/WebCore/html/track/TextTrackCueGeneric.cpp 2013-04-09 22:37:58 UTC (rev 148057)
+++ trunk/Source/WebCore/html/track/TextTrackCueGeneric.cpp 2013-04-09 22:52:04 UTC (rev 148058)
@@ -146,9 +146,9 @@
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
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes