Index: Source/core/html/track/vtt/VTTCue.cpp |
diff --git a/Source/core/html/track/vtt/VTTCue.cpp b/Source/core/html/track/vtt/VTTCue.cpp |
index f5a4c8cf7f7fb7e08de4d67aae04ddc74a170b38..dfe0e4316295e6eadddef12064a72e81cf677c57 100644 |
--- a/Source/core/html/track/vtt/VTTCue.cpp |
+++ b/Source/core/html/track/vtt/VTTCue.cpp |
@@ -779,7 +779,7 @@ void VTTCue::updateDisplay(const IntSize& videoSize, HTMLDivElement& container) |
// If cue has an empty text track cue region identifier or there is no |
// WebVTT region whose region identifier is identical to cue's text |
// track cue region identifier, run the following substeps: |
- if (displayBox->hasChildNodes() && !container.contains(displayBox.get())) { |
+ if (displayBox->hasChildren() && !container.contains(displayBox.get())) { |
// Note: the display tree of a cue is removed when the active flag of the cue is unset. |
container.appendChild(displayBox); |
} |