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

Unified Diff: Source/bindings/core/v8/custom/V8TrackEventCustom.cpp

Issue 392193002: Apply toFoo generation macro to TrackBase classes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 5 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 | « no previous file | Source/core/html/track/AudioTrack.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/core/v8/custom/V8TrackEventCustom.cpp
diff --git a/Source/bindings/core/v8/custom/V8TrackEventCustom.cpp b/Source/bindings/core/v8/custom/V8TrackEventCustom.cpp
index 9c2b04e3c31863545e3f3edee7a028b9b11c79ca..f70db0945114ebf669cbb11aa1f39a92e4bd506d 100644
--- a/Source/bindings/core/v8/custom/V8TrackEventCustom.cpp
+++ b/Source/bindings/core/v8/custom/V8TrackEventCustom.cpp
@@ -51,15 +51,15 @@ void V8TrackEvent::trackAttributeGetterCustom(const v8::PropertyCallbackInfo<v8:
switch (track->type()) {
case TrackBase::TextTrack:
- v8SetReturnValueFast(info, static_cast<TextTrack*>(track), trackEvent);
+ v8SetReturnValueFast(info, toTextTrack(track), trackEvent);
return;
case TrackBase::AudioTrack:
- v8SetReturnValueFast(info, static_cast<AudioTrack*>(track), trackEvent);
+ v8SetReturnValueFast(info, toAudioTrack(track), trackEvent);
return;
case TrackBase::VideoTrack:
- v8SetReturnValueFast(info, static_cast<VideoTrack*>(track), trackEvent);
+ v8SetReturnValueFast(info, toVideoTrack(track), trackEvent);
return;
}
« no previous file with comments | « no previous file | Source/core/html/track/AudioTrack.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698