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

Unified Diff: Source/core/html/shadow/MediaControlElements.cpp

Issue 456323002: [WIP] Re-implement MediaControls in Blink-in-JS (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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
Index: Source/core/html/shadow/MediaControlElements.cpp
diff --git a/Source/core/html/shadow/MediaControlElements.cpp b/Source/core/html/shadow/MediaControlElements.cpp
index 170b04b70f88b11f5c73c640e6d03362ecf3708f..861aecf90c7c4ca564be2386cda2c381766424f3 100644
--- a/Source/core/html/shadow/MediaControlElements.cpp
+++ b/Source/core/html/shadow/MediaControlElements.cpp
@@ -600,7 +600,7 @@ const AtomicString& MediaControlCurrentTimeDisplayElement::shadowPseudoId() cons
MediaControlTextTrackContainerElement::MediaControlTextTrackContainerElement(MediaControls& mediaControls)
: MediaControlDivElement(mediaControls, MediaTextTrackDisplayContainer)
- , m_fontSize(0)
+ //, m_fontSize(0)
{
}
@@ -629,7 +629,7 @@ const AtomicString& MediaControlTextTrackContainerElement::shadowPseudoId() cons
void MediaControlTextTrackContainerElement::updateDisplay()
{
- if (!mediaElement().closedCaptionsVisible()) {
+ /*if (!mediaElement().closedCaptionsVisible()) {
removeChildren();
return;
}
@@ -691,12 +691,12 @@ void MediaControlTextTrackContainerElement::updateDisplay()
if (hasChildren())
show();
else
- hide();
+ hide();*/
}
void MediaControlTextTrackContainerElement::updateSizes()
{
- if (!document().isActive())
+ /*if (!document().isActive())
return;
IntRect videoBox;
@@ -715,7 +715,7 @@ void MediaControlTextTrackContainerElement::updateSizes()
if (fontSize != m_fontSize) {
m_fontSize = fontSize;
setInlineStyleProperty(CSSPropertyFontSize, fontSize, CSSPrimitiveValue::CSS_PX);
- }
+ }*/
}
// ----------------------------

Powered by Google App Engine
This is Rietveld 408576698