Index: third_party/WebKit/LayoutTests/media/media-controls.js |
diff --git a/third_party/WebKit/LayoutTests/media/media-controls.js b/third_party/WebKit/LayoutTests/media/media-controls.js |
index d4c690b3861902a0dfe5b7ea16ed43335a7dda81..0eb0b03562f06a905ce84cfc3403fb6671c59828 100644 |
--- a/third_party/WebKit/LayoutTests/media/media-controls.js |
+++ b/third_party/WebKit/LayoutTests/media/media-controls.js |
@@ -88,10 +88,20 @@ function textTrackCueElementByIndex(parentElement, cueIndex) { |
return displayElement; |
} |
+function textTrackRegionElement(parentElement) |
+{ |
+ var containerElement = textTrackContainerElement(parentElement); |
+ return mediaControlsElement(containerElement.firstChild, "-webkit-media-text-track-region"); |
+} |
+ |
+function textTrackRegionContainerElement(parentElement) |
+{ |
+ var containerElement = textTrackContainerElement(parentElement); |
+ return mediaControlsElement(containerElement.firstChild, "-webkit-media-text-track-region-container"); |
+} |
+ |
// TODO(srirama.m): Phase out the uses of this function and |
// replace with more specific functions at each call site. |
-// For ex: textTrackDisplayElement(video, 'region') => textTrackRegionElement(video) and |
-// textTrackDisplayElement(video, 'region-container') => textTrackRegionContainerElement(video). |
function textTrackDisplayElement(parentElement, id, cueNumber) |
{ |
var containerElement = textTrackContainerElement(parentElement); |