| Index: Source/core/layout/LayoutTextTrackContainer.cpp
|
| diff --git a/Source/core/layout/LayoutTextTrackContainer.cpp b/Source/core/layout/LayoutTextTrackContainer.cpp
|
| index eb3dc1d28566749abf540f0ae454badbb6ab0388..b0db395a576913bcd205e3f93a8329ad13da4494 100644
|
| --- a/Source/core/layout/LayoutTextTrackContainer.cpp
|
| +++ b/Source/core/layout/LayoutTextTrackContainer.cpp
|
| @@ -47,11 +47,10 @@ void LayoutTextTrackContainer::layout()
|
|
|
| DeprecatedScheduleStyleRecalcDuringLayout marker(node()->document().lifecycle());
|
|
|
| - // Overlay enclosure -> Media controls -> Media element
|
| - LayoutObject* mediaElementLayoutObject = parent()->parent()->parent();
|
| - if (!mediaElementLayoutObject || !mediaElementLayoutObject->isVideo())
|
| + LayoutObject* mediaLayoutObject = parent();
|
| + if (!mediaLayoutObject || !mediaLayoutObject->isVideo())
|
| return;
|
| - if (updateSizes(toLayoutVideo(*mediaElementLayoutObject)))
|
| + if (updateSizes(toLayoutVideo(*mediaLayoutObject)))
|
| toElement(node())->setInlineStyleProperty(CSSPropertyFontSize, m_fontSize, CSSPrimitiveValue::CSS_PX);
|
| }
|
|
|
|
|