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

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

Issue 2682333002: Implement VTTCue.region and sync the VTTRegion interface (Closed)
Patch Set: Add DCHECK Created 3 years, 10 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/LoadableTextTrack.cpp
diff --git a/third_party/WebKit/Source/core/html/track/LoadableTextTrack.cpp b/third_party/WebKit/Source/core/html/track/LoadableTextTrack.cpp
index 6f7872b19fc9f0cc4c109bf350944bc70cec8e71..7d6c02ff6d92463e7d405a842fed072428068c10 100644
--- a/third_party/WebKit/Source/core/html/track/LoadableTextTrack.cpp
+++ b/third_party/WebKit/Source/core/html/track/LoadableTextTrack.cpp
@@ -55,10 +55,8 @@ void LoadableTextTrack::setMode(const AtomicString& mode) {
void LoadableTextTrack::addRegions(
const HeapVector<Member<VTTRegion>>& newRegions) {
- for (const auto& region : newRegions) {
- region->setTrack(this);
+ for (const auto& region : newRegions)
regions()->add(region);
- }
}
size_t LoadableTextTrack::trackElementIndex() const {
« no previous file with comments | « third_party/WebKit/Source/core/html/track/InbandTextTrack.cpp ('k') | third_party/WebKit/Source/core/html/track/vtt/VTTCue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698