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

Unified Diff: Source/core/html/HTMLMediaElement.cpp

Issue 205683003: Update <video muted=""> handling to match spec (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: update defaultMuted test Created 6 years, 9 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/core/html/HTMLMediaElement.h ('k') | Source/core/html/parser/HTMLConstructionSite.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLMediaElement.cpp
diff --git a/Source/core/html/HTMLMediaElement.cpp b/Source/core/html/HTMLMediaElement.cpp
index f5fb8f9311ddbe67a339b11b7c983bc1d9e04ec9..f48b032844a0fad62657ee33cee8ead5666b9c78 100644
--- a/Source/core/html/HTMLMediaElement.cpp
+++ b/Source/core/html/HTMLMediaElement.cpp
@@ -423,6 +423,12 @@ void HTMLMediaElement::parseAttribute(const QualifiedName& name, const AtomicStr
}
}
+void HTMLMediaElement::finishParsingAttributes()
+{
+ if (fastHasAttribute(mutedAttr))
+ m_muted = true;
+}
+
void HTMLMediaElement::finishParsingChildren()
{
HTMLElement::finishParsingChildren();
@@ -830,8 +836,6 @@ void HTMLMediaElement::loadResource(const KURL& url, ContentType& contentType, c
if (!autoplay())
setPlayerPreload();
- if (fastHasAttribute(mutedAttr))
- m_muted = true;
updateVolume();
ASSERT(!m_mediaSource);
« no previous file with comments | « Source/core/html/HTMLMediaElement.h ('k') | Source/core/html/parser/HTMLConstructionSite.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698