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

Unified Diff: third_party/WebKit/Source/core/html/shadow/MediaControlElementTypes.cpp

Issue 2341423002: Don't include LayoutBlock.h from MediaControlElementTypes.h (Closed)
Patch Set: Created 4 years, 3 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: third_party/WebKit/Source/core/html/shadow/MediaControlElementTypes.cpp
diff --git a/third_party/WebKit/Source/core/html/shadow/MediaControlElementTypes.cpp b/third_party/WebKit/Source/core/html/shadow/MediaControlElementTypes.cpp
index 09b128dad3b32c27f227884c646bbd92124e616f..c04fa5c4bbb02df540152001fdce0ba31dd6b694 100644
--- a/third_party/WebKit/Source/core/html/shadow/MediaControlElementTypes.cpp
+++ b/third_party/WebKit/Source/core/html/shadow/MediaControlElementTypes.cpp
@@ -38,6 +38,7 @@
#include "core/html/HTMLLabelElement.h"
#include "core/html/HTMLMediaElement.h"
#include "core/html/shadow/MediaControls.h"
+#include "core/layout/LayoutObject.h"
#include "platform/text/PlatformLocale.h"
namespace blink {
@@ -59,6 +60,11 @@ const HTMLMediaElement* toParentMediaElement(const Node* node)
return toHTMLMediaElement(mediaNode);
}
+const HTMLMediaElement* toParentMediaElement(const LayoutObject& layoutObject)
+{
+ return toParentMediaElement(layoutObject.node());
+}
+
MediaControlElementType mediaControlElementType(const Node* node)
{
SECURITY_DCHECK(node->isMediaControlElement());

Powered by Google App Engine
This is Rietveld 408576698