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

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

Issue 24469004: Amusingly deprecate the generic version of 'ExceptionState::throwDOMException'. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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/MediaController.cpp ('k') | Source/core/html/canvas/CanvasGradient.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/TimeRanges.cpp
diff --git a/Source/core/html/TimeRanges.cpp b/Source/core/html/TimeRanges.cpp
index 7d42425555170f989617997efb1e08439324f78a..71fd4fde32ec606d5c613a3eaee6ec5d8d5dd508 100644
--- a/Source/core/html/TimeRanges.cpp
+++ b/Source/core/html/TimeRanges.cpp
@@ -105,7 +105,7 @@ void TimeRanges::unionWith(const TimeRanges* other)
double TimeRanges::start(unsigned index, ExceptionState& es) const
{
if (index >= length()) {
- es.throwDOMException(IndexSizeError);
+ es.throwUninformativeAndGenericDOMException(IndexSizeError);
return 0;
}
return m_ranges[index].m_start;
@@ -114,7 +114,7 @@ double TimeRanges::start(unsigned index, ExceptionState& es) const
double TimeRanges::end(unsigned index, ExceptionState& es) const
{
if (index >= length()) {
- es.throwDOMException(IndexSizeError);
+ es.throwUninformativeAndGenericDOMException(IndexSizeError);
return 0;
}
return m_ranges[index].m_end;
« no previous file with comments | « Source/core/html/MediaController.cpp ('k') | Source/core/html/canvas/CanvasGradient.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698