Chromium Code Reviews| 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..53764d1b148570bc6bac4a49a8ad230f6f9cb8bb 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) |
|
fs
2015/03/19 12:10:02
Make this isPastNode() == isPastNode to please MSV
philipj_slow
2015/03/19 12:36:36
It would have to be this->isPastNode(), so I'll go
|
| + return; |
| + m_isPastNode = isPastNode; |
| + setNeedsStyleRecalc(LocalStyleChange, StyleChangeReasonForTracing::createWithExtraData(StyleChangeReason::PseudoClass, StyleChangeExtraData::Past)); |
| +} |
| + |
| +} // namespace blink |