| Summary: | The Page's muted setting should not affect the HTMLMediaElement's 'muted' IDL attribute | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Ada Chan <adachan> | ||||
| Component: | Media | Assignee: | Ada Chan <adachan> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | bfulgham, calvaris, commit-queue, eric.carlson, esprehn+autocc, glenn, gyuyoung.kim, jer.noble, joepeck, kangil.han, philipj, roger_fong, sergio | ||||
| Priority: | P2 | ||||||
| Version: | 528+ (Nightly build) | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Attachments: |
|
||||||
|
Description
Ada Chan
2014-10-30 10:46:28 PDT
Created attachment 240697 [details]
Patch
Comment on attachment 240697 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=240697&action=review > Source/WebCore/html/HTMLMediaElement.cpp:6042 > + return (document().page() && document().page()->isMuted()) || muted(); Minor nit: "muted()" is cheaper than "document().page() && document().page()->isMuted()" so it should be first. > Source/WebCore/testing/Internals.h:349 > void installMockPageOverlay(const String& overlayType, ExceptionCode&); > String pageOverlayLayerTreeAsText(ExceptionCode&) const; > > + void setMuted(bool); Nit: I think "page" should be in the method name. "setPageMuted" maybe? (In reply to comment #2) > Comment on attachment 240697 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=240697&action=review > > > Source/WebCore/html/HTMLMediaElement.cpp:6042 > > + return (document().page() && document().page()->isMuted()) || muted(); > > Minor nit: "muted()" is cheaper than "document().page() && > document().page()->isMuted()" so it should be first. Fixed. > > > Source/WebCore/testing/Internals.h:349 > > void installMockPageOverlay(const String& overlayType, ExceptionCode&); > > String pageOverlayLayerTreeAsText(ExceptionCode&) const; > > > > + void setMuted(bool); > > Nit: I think "page" should be in the method name. "setPageMuted" maybe? Renamed as you suggested. Thanks Eric! Looks like this may have broken the windows build. Probably just a symbol export issue: <https://build.webkit.org/builders/Apple%20Win%20Debug%20%28Build%29/builds/83112/steps/compile-webkit/logs/stdio> > 1>WebCoreTestSupport.lib(Internals.obj) : error LNK2019: unresolved external symbol "public: void __thiscall WebCore::Page::setMuted(bool)" (?setMuted@Page@WebCore@@QAEX_N@Z) referenced in function "public: void __thiscall WebCore::Internals::setPageMuted(bool)" (?setPageMuted@Internals@WebCore@@QAEX_N@Z) > 1>C:\cygwin\home\buildbot\slave\win-debug\build\WebKitBuild\Debug\bin32\DumpRenderTree.dll : fatal error LNK1120: 1 unresolved externals > 1>Done Building Project "C:\cygwin\home\buildbot\slave\win-debug\build\Tools\DumpRenderTree\DumpRenderTree.vcxproj\DumpRenderTree\DumpRenderTree.vcxproj" (Build target(s)) -- FAILED. Committed: http://trac.webkit.org/changeset/175384 And as Joe noted, that broke Windows. First attempt to fix it is: http://trac.webkit.org/changeset/175393 The Windows 32-bit build error should be fixed with http://trac.webkit.org/changeset/175393. Roger is going to help me figure out the symbol to export for 64-bit. |