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

Unified Diff: Source/core/html/track/vtt/VTTElement.cpp

Issue 1013393004: Eliminate TextTrackCue::updateDisplayTree() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: coerce m_isPastNode to bool Created 5 years, 9 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 | « Source/core/html/track/vtt/VTTElement.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/track/vtt/VTTElement.cpp
diff --git a/Source/core/html/track/vtt/VTTElement.cpp b/Source/core/html/track/vtt/VTTElement.cpp
index e2b8f6f7523f81a7851b49c210547b77e6e09c2a..ff2204adf50c78909fdb88c0e8ad077333bb2793 100644
--- a/Source/core/html/track/vtt/VTTElement.cpp
+++ b/Source/core/html/track/vtt/VTTElement.cpp
@@ -117,5 +117,13 @@ PassRefPtrWillBeRawPtr<HTMLElement> VTTElement::createEquivalentHTMLElement(Docu
return htmlElement;
}
-} // namespace blink
+void VTTElement::setIsPastNode(bool isPastNode)
+{
+ if (!!m_isPastNode == isPastNode)
+ return;
+ m_isPastNode = isPastNode;
+ setNeedsStyleRecalc(LocalStyleChange, StyleChangeReasonForTracing::createWithExtraData(StyleChangeReason::PseudoClass, StyleChangeExtraData::Past));
+}
+
+} // namespace blink
« no previous file with comments | « Source/core/html/track/vtt/VTTElement.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698