Index: Source/core/html/track/TextTrack.cpp |
diff --git a/Source/core/html/track/TextTrack.cpp b/Source/core/html/track/TextTrack.cpp |
index 4128731e792f19cec34bb601f4921cea258fe928..178c29d6718dc8276c57610f4785624646cb2499 100644 |
--- a/Source/core/html/track/TextTrack.cpp |
+++ b/Source/core/html/track/TextTrack.cpp |
@@ -272,7 +272,7 @@ void TextTrack::removeCue(TextTrackCue* cue, ExceptionCode& ec) |
// 2. Remove cue from the method's TextTrack object's text track's text track list of cues. |
if (!m_cues || !m_cues->remove(cue)) { |
- ec = INVALID_STATE_ERR; |
+ ec = InvalidStateError; |
return; |
} |
@@ -352,7 +352,7 @@ void TextTrack::removeRegion(TextTrackRegion* region, ExceptionCode &ec) |
} |
if (!m_regions || !m_regions->remove(region)) { |
- ec = INVALID_STATE_ERR; |
+ ec = InvalidStateError; |
return; |
} |