| Index: Source/core/html/track/vtt/VTTRegion.cpp
|
| diff --git a/Source/core/html/track/vtt/VTTRegion.cpp b/Source/core/html/track/vtt/VTTRegion.cpp
|
| index 43c6ec8398de239870dd2cec5386090558744ec5..d2bc0555291250fa36c8f3b8a7fb8f540a688bb2 100644
|
| --- a/Source/core/html/track/vtt/VTTRegion.cpp
|
| +++ b/Source/core/html/track/vtt/VTTRegion.cpp
|
| @@ -373,7 +373,7 @@ void VTTRegion::displayLastVTTCueBox()
|
| float regionBottom = m_regionDisplayTree->getBoundingClientRect()->bottom();
|
|
|
| // Find first cue that is not entirely displayed and scroll it upwards.
|
| - for (Element* child = ElementTraversal::firstWithin(*m_cueContainer); child && !m_scrollTimer.isActive(); child = ElementTraversal::nextSibling(*child)) {
|
| + for (Element* child = ElementTraversal::firstChild(*m_cueContainer); child && !m_scrollTimer.isActive(); child = ElementTraversal::nextSibling(*child)) {
|
| float childTop = toHTMLDivElement(child)->getBoundingClientRect()->top();
|
| float childBottom = toHTMLDivElement(child)->getBoundingClientRect()->bottom();
|
|
|
|
|