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

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

Issue 99083002: WIP: Migrate generated bindings to new ExceptionState constructor. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase. Created 7 years 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/TextTrackCue.h ('k') | Source/core/html/track/vtt/VTTCue.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/track/TextTrackCue.cpp
diff --git a/Source/core/html/track/TextTrackCue.cpp b/Source/core/html/track/TextTrackCue.cpp
index 50a3205296cbcf68ad3b6aecb4101237c07ee8b4..139328918db3f101a939ac00a9a1b5f3f4d0cb9d 100644
--- a/Source/core/html/track/TextTrackCue.cpp
+++ b/Source/core/html/track/TextTrackCue.cpp
@@ -42,10 +42,10 @@ namespace WebCore {
static const int invalidCueIndex = -1;
-bool TextTrackCue::isInfiniteOrNonNumber(double value, const char* method, ExceptionState& exceptionState)
+bool TextTrackCue::isInfiniteOrNonNumber(double value, ExceptionState& exceptionState)
{
if (!std::isfinite(value)) {
- exceptionState.throwTypeError(ExceptionMessages::failedToSet(method, "TextTrackCue", ExceptionMessages::notAFiniteNumber(value)));
+ exceptionState.throwTypeError(ExceptionMessages::notAFiniteNumber(value));
return true;
}
return false;
@@ -101,7 +101,7 @@ void TextTrackCue::setId(const String& id)
void TextTrackCue::setStartTime(double value, ExceptionState& exceptionState)
{
// NaN, Infinity and -Infinity values should trigger a TypeError.
- if (isInfiniteOrNonNumber(value, "startTime", exceptionState))
+ if (isInfiniteOrNonNumber(value, exceptionState))
return;
// TODO(93143): Add spec-compliant behavior for negative time values.
@@ -116,7 +116,7 @@ void TextTrackCue::setStartTime(double value, ExceptionState& exceptionState)
void TextTrackCue::setEndTime(double value, ExceptionState& exceptionState)
{
// NaN, Infinity and -Infinity values should trigger a TypeError.
- if (isInfiniteOrNonNumber(value, "endTime", exceptionState))
+ if (isInfiniteOrNonNumber(value, exceptionState))
return;
// TODO(93143): Add spec-compliant behavior for negative time values.
« no previous file with comments | « Source/core/html/track/TextTrackCue.h ('k') | Source/core/html/track/vtt/VTTCue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698