Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(190)

Unified Diff: Source/core/layout/LayoutMedia.cpp

Issue 1156993013: New media playback UI. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: minor decrufting. Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/layout/LayoutMedia.cpp
diff --git a/Source/core/layout/LayoutMedia.cpp b/Source/core/layout/LayoutMedia.cpp
index 4252f34ed465c03f4221acd4226e8008fc5c8436..13358362ad901a37c7bf5d724791ffcd5cac2599 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().toInt());
philipj_slow 2015/07/21 12:02:21 Is there any particular reason to convert to int h
liberato (no reviews please) 2015/07/27 20:26:09 Done.
}
bool LayoutMedia::isChildAllowed(LayoutObject* child, const ComputedStyle&) const

Powered by Google App Engine
This is Rietveld 408576698