| Index: Source/core/layout/LayoutMedia.cpp
|
| diff --git a/Source/core/layout/LayoutMedia.cpp b/Source/core/layout/LayoutMedia.cpp
|
| index 4252f34ed465c03f4221acd4226e8008fc5c8436..374c4b1889cb25e1e8043d9c099085f857c5906d 100644
|
| --- a/Source/core/layout/LayoutMedia.cpp
|
| +++ b/Source/core/layout/LayoutMedia.cpp
|
| @@ -28,6 +28,7 @@
|
| #include "core/layout/LayoutMedia.h"
|
|
|
| #include "core/html/HTMLMediaElement.h"
|
| +#include "core/html/shadow/MediaControls.h"
|
| #include "core/layout/LayoutView.h"
|
|
|
| namespace blink {
|
| @@ -87,6 +88,10 @@ void LayoutMedia::layout()
|
| }
|
|
|
| clearNeedsLayout();
|
| +
|
| + // Notify our MediaControls that a layout has happened.
|
| + if (mediaElement() && mediaElement()->mediaControls() && newSize.width() != oldSize.width())
|
| + mediaElement()->mediaControls()->notifyPanelWidthChanged(newSize.width());
|
| }
|
|
|
| bool LayoutMedia::isChildAllowed(LayoutObject* child, const ComputedStyle&) const
|
|
|