[MediaControls][iOS] Enable JavaScript Media Controls on iOS.
Created attachment 220321 [details] Patch
Comment on attachment 220321 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=220321&action=review > Source/WebCore/DerivedSources.make:850 > +ifeq ($(WTF_PLATFORM_IOS),1) Nit: there should be a space after the comma. > Source/WebCore/DerivedSources.make:870 > +ifeq ($(WTF_PLATFORM_IOS),1) Ditto. > Source/WebCore/Modules/mediacontrols/mediaControlsiOS.css:185 > + /* rotateZ() forces the layer into compositing mode. > + Slider thumbs are small, so forcing a compositing layer is inexpensive, > + and it keeps the slider from having to repaint while sliding. */ Nit: good comment, but strange indentation.
Committed r161280: <http://trac.webkit.org/changeset/161280>
Comment on attachment 220321 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=220321&action=review > Source/WebCore/rendering/RenderThemeIOS.mm:1205 > String RenderThemeIOS::mediaControlsScript() Can we refactor this to use JSScriptCreateReferencingImmortalASCIIText, or at least JSScriptCreateFromString?
(In reply to comment #4) > (From update of attachment 220321 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=220321&action=review > > > Source/WebCore/rendering/RenderThemeIOS.mm:1205 > > String RenderThemeIOS::mediaControlsScript() > > Can we refactor this to use JSScriptCreateReferencingImmortalASCIIText, or at least JSScriptCreateFromString? Absolutely. We could do the same for the Mac version as well.