Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(724)

Unified Diff: Source/core/html/track/TextTrackRegion.cpp

Issue 21735005: Use "int" instead of "long" for bindings where the WebIDL uses "long". (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/track/TextTrackRegion.h ('k') | Source/core/xml/XMLHttpRequest.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/track/TextTrackRegion.cpp
diff --git a/Source/core/html/track/TextTrackRegion.cpp b/Source/core/html/track/TextTrackRegion.cpp
index 236f2f788e325d9f5e1e4f1faba78e83af99763c..7c2a517aeb1de1a9224d2b54b2ede0378b4fa599 100644
--- a/Source/core/html/track/TextTrackRegion.cpp
+++ b/Source/core/html/track/TextTrackRegion.cpp
@@ -54,7 +54,7 @@ namespace WebCore {
static const float defaultWidth = 100;
// The region has, by default, 3 lines of text.
-static const long defaultHeightInLines = 3;
+static const int defaultHeightInLines = 3;
// The region and viewport are anchored in the bottom left corner.
static const float defaultAnchorPointX = 0;
@@ -114,7 +114,7 @@ void TextTrackRegion::setWidth(double value, ExceptionCode& ec)
m_width = value;
}
-void TextTrackRegion::setHeight(long value, ExceptionCode& ec)
+void TextTrackRegion::setHeight(int value, ExceptionCode& ec)
{
if (value < 0) {
ec = IndexSizeError;
« no previous file with comments | « Source/core/html/track/TextTrackRegion.h ('k') | Source/core/xml/XMLHttpRequest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698