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()); |