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 4bac32a98409deb9d3abe976449d98c582ec4305..46cca1aca7873a599541f9e86832934b0d8f8177 100644 |
--- a/Source/core/html/track/vtt/VTTCue.cpp |
+++ b/Source/core/html/track/vtt/VTTCue.cpp |
@@ -229,7 +229,6 @@ VTTCue::VTTCue(Document& document, double startTime, double endTime, const Strin |
, m_cueBackgroundBox(HTMLDivElement::create(document)) |
, m_snapToLines(true) |
, m_displayTreeShouldChange(true) |
- , m_notifyRegion(true) |
{ |
UseCounter::count(document, UseCounter::VTTCue); |
} |
@@ -500,11 +499,6 @@ void VTTCue::setRegionId(const String& regionId) |
cueDidChange(); |
} |
-void VTTCue::notifyRegionWhenRemovingDisplayTree(bool notifyRegion) |
-{ |
- m_notifyRegion = notifyRegion; |
-} |
- |
float VTTCue::calculateComputedLinePosition() const |
{ |
// http://dev.w3.org/html5/webvtt/#dfn-text-track-cue-computed-line-position |
@@ -849,9 +843,9 @@ PassRefPtrWillBeRawPtr<VTTCueBox> VTTCue::getDisplayTree() |
return displayTree.release(); |
} |
-void VTTCue::removeDisplayTree() |
+void VTTCue::removeDisplayTree(RemovalNotification removalNotification) |
{ |
- if (m_notifyRegion && track()->regions()) { |
+ if (removalNotification == NotifyRegion && track()->regions()) { |
// The region needs to be informed about the cue removal. |
VTTRegion* region = track()->regions()->getRegionById(m_regionId); |
if (region) |