Index: Source/core/layout/LayoutMedia.cpp |
diff --git a/Source/core/layout/LayoutMedia.cpp b/Source/core/layout/LayoutMedia.cpp |
index 374c4b1889cb25e1e8043d9c099085f857c5906d..b63e126b5f47cf8709f0c494f6e2205b00260835 100644 |
--- a/Source/core/layout/LayoutMedia.cpp |
+++ b/Source/core/layout/LayoutMedia.cpp |
@@ -90,8 +90,8 @@ 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()); |
+ if (mediaElement() && newSize != oldSize) |
+ mediaElement()->notifySizeChanged(newSize); |
} |
bool LayoutMedia::isChildAllowed(LayoutObject* child, const ComputedStyle&) const |