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

Unified Diff: third_party/WebKit/Source/core/html/track/vtt/VTTRegion.cpp

Issue 2910143002: DOMTokenList: Rename add() and remove() with single string argument. (Closed)
Patch Set: Created 3 years, 7 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/track/vtt/VTTRegion.cpp
diff --git a/third_party/WebKit/Source/core/html/track/vtt/VTTRegion.cpp b/third_party/WebKit/Source/core/html/track/vtt/VTTRegion.cpp
index 8516ecb215a29867d657dc8111318e11182516f7..7c16eb500fa954aa1ba07ad8f63bc08add64121c 100644
--- a/third_party/WebKit/Source/core/html/track/vtt/VTTRegion.cpp
+++ b/third_party/WebKit/Source/core/html/track/vtt/VTTRegion.cpp
@@ -288,8 +288,7 @@ void VTTRegion::WillRemoveVTTCueBox(VTTCueBox* box) {
double box_height = box->getBoundingClientRect()->height();
- cue_container_->classList().remove(TextTrackCueContainerScrollingClass(),
- ASSERT_NO_EXCEPTION);
+ cue_container_->classList().Remove(TextTrackCueContainerScrollingClass());
current_top_ += box_height;
cue_container_->SetInlineStyleProperty(CSSPropertyTop, current_top_,
@@ -319,8 +318,7 @@ void VTTRegion::DisplayLastVTTCueBox() {
// If it's a scrolling region, add the scrolling class.
if (IsScrollingRegion())
- cue_container_->classList().add(TextTrackCueContainerScrollingClass(),
- ASSERT_NO_EXCEPTION);
+ cue_container_->classList().Add(TextTrackCueContainerScrollingClass());
float region_bottom = region_display_tree_->getBoundingClientRect()->bottom();

Powered by Google App Engine
This is Rietveld 408576698