Index: Source/core/html/HTMLAudioElement.cpp |
diff --git a/Source/core/html/HTMLAudioElement.cpp b/Source/core/html/HTMLAudioElement.cpp |
index 6607ab47c103cd41df10c05bcee9e8ff76b21142..4ec5a3c1207f5a440ee843818843d9fc7499cbf5 100644 |
--- a/Source/core/html/HTMLAudioElement.cpp |
+++ b/Source/core/html/HTMLAudioElement.cpp |
@@ -57,4 +57,21 @@ PassRefPtrWillBeRawPtr<HTMLAudioElement> HTMLAudioElement::createForJSConstructo |
return audio.release(); |
} |
+bool HTMLAudioElement::layoutObjectIsNeeded(const ComputedStyle& style) |
+{ |
+ return shouldShowControls() && HTMLMediaElement::layoutObjectIsNeeded(style); |
+} |
+ |
+void HTMLAudioElement::parseAttribute(const QualifiedName& name, const AtomicString& value) |
+{ |
+ if (name == controlsAttr) { |
+ if (value.isNull()) |
+ lazyReattachIfAttached(); |
+ else |
+ setNeedsStyleRecalc(LocalStyleChange, StyleChangeReasonForTracing::fromAttribute(name)); |
+ } |
+ |
+ HTMLMediaElement::parseAttribute(name, value); |
+} |
+ |
} |