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

Unified Diff: third_party/WebKit/Source/core/html/TimeRanges.cpp

Issue 2615953003: Rename IGNORE_EXCEPTION to IGNORE_EXCEPTION_FOR_TESTING (Closed)
Patch Set: temp Created 3 years, 11 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
Index: third_party/WebKit/Source/core/html/TimeRanges.cpp
diff --git a/third_party/WebKit/Source/core/html/TimeRanges.cpp b/third_party/WebKit/Source/core/html/TimeRanges.cpp
index 6771c922766c31374af54fadf8b544f2c0663319..bba54a1470ec4663f70d6a13decb0a1033c1d7e8 100644
--- a/third_party/WebKit/Source/core/html/TimeRanges.cpp
+++ b/third_party/WebKit/Source/core/html/TimeRanges.cpp
@@ -172,7 +172,8 @@ void TimeRanges::add(double start, double end) {
bool TimeRanges::contain(double time) const {
for (unsigned n = 0; n < length(); n++) {
- if (time >= start(n, IGNORE_EXCEPTION) && time <= end(n, IGNORE_EXCEPTION))
+ if (time >= start(n, IGNORE_EXCEPTION_FOR_TESTING) &&
+ time <= end(n, IGNORE_EXCEPTION_FOR_TESTING))
return true;
}
return false;
@@ -184,8 +185,8 @@ double TimeRanges::nearest(double newPlaybackPosition,
double bestMatch = 0;
double bestDelta = std::numeric_limits<double>::infinity();
for (unsigned ndx = 0; ndx < count; ndx++) {
- double startTime = start(ndx, IGNORE_EXCEPTION);
- double endTime = end(ndx, IGNORE_EXCEPTION);
+ double startTime = start(ndx, IGNORE_EXCEPTION_FOR_TESTING);
+ double endTime = end(ndx, IGNORE_EXCEPTION_FOR_TESTING);
if (newPlaybackPosition >= startTime && newPlaybackPosition <= endTime)
return newPlaybackPosition;
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLTitleElement.cpp ('k') | third_party/WebKit/Source/core/html/TimeRangesTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698