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

Unified Diff: Source/WebCore/html/shadow/MediaControlRootElementChromium.cpp

Issue 10827333: Merge 123822 - [Chromium] Regression: Global-buffer-overflow in WebCore::mediaControlElementType (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1180/
Patch Set: Created 8 years, 4 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
« no previous file with comments | « Source/WebCore/html/shadow/MediaControlRootElementChromium.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/html/shadow/MediaControlRootElementChromium.cpp
===================================================================
--- Source/WebCore/html/shadow/MediaControlRootElementChromium.cpp (revision 125606)
+++ Source/WebCore/html/shadow/MediaControlRootElementChromium.cpp (working copy)
@@ -49,8 +49,7 @@
static const double timeWithoutMouseMovementBeforeHidingControls = 2;
MediaControlChromiumEnclosureElement::MediaControlChromiumEnclosureElement(Document* document)
- : HTMLDivElement(HTMLNames::divTag, document->document())
- , m_mediaController(0)
+ : MediaControlElement(document)
{
}
@@ -59,6 +58,13 @@
return adoptRef(new MediaControlChromiumEnclosureElement(document));
}
+MediaControlElementType MediaControlChromiumEnclosureElement::displayType() const
+{
+ // Mapping onto same MediaControlElementType as panel element, since it has similar properties.
+ return MediaControlsPanel;
+}
+
+
const AtomicString& MediaControlChromiumEnclosureElement::shadowPseudoId() const
{
DEFINE_STATIC_LOCAL(AtomicString, id, ("-webkit-media-controls-enclosure"));
« no previous file with comments | « Source/WebCore/html/shadow/MediaControlRootElementChromium.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698