Changeset 180024 in webkit
- Timestamp:
- Feb 12, 2015, 5:04:12 PM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r180020 r180024 1 2015-02-12 Dean Jackson <dino@apple.com> 2 3 [iOS Media] Audio should hide timeline scrubber until playback starts 4 https://bugs.webkit.org/show_bug.cgi?id=141542 5 <rdar://problem/19820685> 6 7 Reviewed by Eric Carlson. 8 9 We regressed from the system behaviour in iOS 7, where the timeline 10 scrubber for an audio element is not shown until the user starts 11 playback. 12 13 * Modules/mediacontrols/mediaControlsiOS.css: 14 (video::-webkit-media-controls-panel): Fix the alignment of the flexbox. 15 (audio::-webkit-media-controls-status-display): Add the style for the status display. 16 * Modules/mediacontrols/mediaControlsiOS.js: 17 (ControllerIOS.prototype.configureInlineControls): Start hidden if we are an <audio>. 18 (ControllerIOS.prototype.configureFullScreenControls): Drive by comment change. 19 (ControllerIOS.prototype.setPlaying): Unhide the timeline. 20 1 21 2015-02-12 Chris Dumez <cdumez@apple.com> 2 22 -
trunk/Source/WebCore/Modules/mediacontrols/mediaControlsiOS.css
r180013 r180024 112 112 -webkit-flex-direction: row; 113 113 -webkit-flex-wrap: nowrap; 114 -webkit-justify-content: space-between;114 -webkit-justify-content: flex-start; 115 115 -webkit-align-items: center; 116 116 … … 411 411 } 412 412 413 /* ================== STATUS DISPLAY ====================== */ 414 415 video::-webkit-media-controls-status-display, 416 audio::-webkit-media-controls-status-display { 417 418 overflow: hidden; 419 font-family: -apple-system-font; 420 letter-spacing: normal; 421 word-spacing: normal; 422 line-height: normal; 423 text-transform: none; 424 text-indent: 0px; 425 text-decoration: none; 426 color: black; 427 mix-blend-mode: plus-darker; 428 opacity: 0.55; 429 -webkit-order: 2; 430 } 431 432 /* ================== CAPTIONS ====================== */ 433 413 434 video::-webkit-media-text-track-container { 414 435 position: relative; -
trunk/Source/WebCore/Modules/mediacontrols/mediaControlsiOS.js
r180013 r180024 229 229 this.controls.timelineBox.appendChild(this.controls.remainingTime); 230 230 } 231 if (!this.isAudio()) { 231 if (this.isAudio()) { 232 // Hide the scrubber on audio until the user starts playing. 233 this.controls.timelineBox.classList.add(this.ClassNames.hidden); 234 } else { 232 235 if (ControllerIOS.gSimulateOptimizedFullscreenAvailable || ('webkitSupportsPresentationMode' in this.video && this.video.webkitSupportsPresentationMode('optimized'))) 233 236 this.controls.panel.appendChild(this.controls.optimizedFullscreenButton); … … 237 240 238 241 configureFullScreenControls: function() { 239 // Do nothing242 // Explicitly do nothing to override base-class behavior. 240 243 }, 241 244 … … 602 605 { 603 606 Controller.prototype.setPlaying.call(this, isPlaying); 607 if (isPlaying && this.isAudio()) 608 this.controls.timelineBox.classList.remove(this.ClassNames.hidden); 604 609 this.updateControls(); 605 610 },
Note:
See TracChangeset
for help on using the changeset viewer.