Changeset 171593 in webkit
- Timestamp:
- Jul 25, 2014 7:47:31 AM (10 years ago)
- Location:
- trunk
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r171592 r171593 1 2014-07-25 Zalan Bujtas <zalan@apple.com> 2 3 Subpixel rendering: iOS video playback controls look blurry. 4 https://bugs.webkit.org/show_bug.cgi?id=135245 5 <rdar://problem/16878037> 6 7 Reviewed by Simon Fraser. 8 9 This patch introduces a compositing parent of the overlay control panel so that 10 the transformed overlay panel becomes sharp. This is a workaround for webkit.org/b/135246. 11 12 Can't find a way to test it yet. 13 14 * platform/mac/fast/hidpi/video-controls-in-hidpi-expected.txt: 15 * platform/mac/fast/layers/video-layer-expected.txt: 16 * platform/mac/media/audio-controls-rendering-expected.txt: 17 * platform/mac/media/controls-after-reload-expected.txt: 18 * platform/mac/media/controls-strict-expected.txt: 19 * platform/mac/media/controls-without-preload-expected.txt: 20 * platform/mac/media/media-controls-clone-expected.txt: 21 * platform/mac/media/video-no-audio-expected.txt: 22 1 23 2014-07-25 Dirk Schulze <krit@webkit.org> 2 24 -
trunk/LayoutTests/platform/mac/fast/hidpi/video-controls-in-hidpi-expected.txt
r171184 r171593 14 14 RenderFlexibleBox {DIV} at (0,0) size 300x150 15 15 layer at (8,151) size 300x25 16 RenderFlexibleBox {DIV} at (0,125) size 300x25 16 RenderBlock {DIV} at (0,125) size 300x25 17 layer at (8,151) size 300x25 18 RenderFlexibleBox {DIV} at (0,0) size 300x25 17 19 layer at (14,156) size 16x16 18 20 RenderButton {BUTTON} at (6,4) size 16x17 [color=#FFFFFF] -
trunk/LayoutTests/platform/mac/fast/layers/video-layer-expected.txt
r171184 r171593 19 19 RenderFlexibleBox {DIV} at (1,1) size 300x150 20 20 layer at (59,236) size 300x25 21 RenderFlexibleBox {DIV} at (0,125) size 300x25 21 RenderBlock {DIV} at (0,125) size 300x25 22 layer at (59,236) size 300x25 23 RenderFlexibleBox {DIV} at (0,0) size 300x25 22 24 layer at (65,241) size 16x16 23 25 RenderButton {BUTTON} at (6,4) size 16x17 [color=#FFFFFF] -
trunk/LayoutTests/platform/mac/media/audio-controls-rendering-expected.txt
r164140 r171593 17 17 layer at (8,42) size 200x25 18 18 RenderFlexibleBox {DIV} at (0,0) size 200x25 19 RenderBlock {DIV} at (0,0) size 200x25 19 20 layer at (8,42) size 200x25 20 21 RenderFlexibleBox {DIV} at (0,0) size 200x25 … … 55 56 layer at (8,85) size 320x25 56 57 RenderFlexibleBox {DIV} at (0,0) size 320x25 58 RenderBlock {DIV} at (0,0) size 320x25 57 59 layer at (8,85) size 320x25 58 60 RenderFlexibleBox {DIV} at (0,0) size 320x25 … … 95 97 layer at (8,128) size 320x100 96 98 RenderFlexibleBox {DIV} at (0,0) size 320x100 99 RenderBlock {DIV} at (0,75) size 320x25 97 100 layer at (8,203) size 320x25 98 RenderFlexibleBox {DIV} at (0, 75) size 320x25101 RenderFlexibleBox {DIV} at (0,0) size 320x25 99 102 layer at (14,208) size 16x16 100 103 RenderButton {BUTTON} at (6,4) size 16x17 [color=#FFFFFF] -
trunk/LayoutTests/platform/mac/media/controls-after-reload-expected.txt
r164140 r171593 14 14 RenderFlexibleBox {DIV} at (0,0) size 320x240 15 15 layer at (8,257) size 320x25 16 RenderFlexibleBox {DIV} at (0,215) size 320x25 16 RenderBlock {DIV} at (0,215) size 320x25 17 layer at (8,257) size 320x25 18 RenderFlexibleBox {DIV} at (0,0) size 320x25 17 19 layer at (14,262) size 16x16 18 20 RenderButton {BUTTON} at (6,4) size 16x17 [color=#FFFFFF] -
trunk/LayoutTests/platform/mac/media/controls-strict-expected.txt
r164140 r171593 14 14 RenderFlexibleBox {DIV} at (0,0) size 320x240 15 15 layer at (8,265) size 320x25 16 RenderFlexibleBox {DIV} at (0,215) size 320x25 16 RenderBlock {DIV} at (0,215) size 320x25 17 layer at (8,265) size 320x25 18 RenderFlexibleBox {DIV} at (0,0) size 320x25 17 19 layer at (14,270) size 16x16 18 20 RenderButton {BUTTON} at (6,4) size 16x17 [color=#FFFFFF] -
trunk/LayoutTests/platform/mac/media/controls-without-preload-expected.txt
r164140 r171593 14 14 RenderFlexibleBox {DIV} at (0,0) size 320x240 15 15 layer at (8,257) size 320x25 16 RenderFlexibleBox {DIV} at (0,215) size 320x25 16 RenderBlock {DIV} at (0,215) size 320x25 17 layer at (8,257) size 320x25 18 RenderFlexibleBox {DIV} at (0,0) size 320x25 17 19 layer at (14,262) size 16x16 18 20 RenderButton {BUTTON} at (6,4) size 16x17 [color=#FFFFFF] -
trunk/LayoutTests/platform/mac/media/media-controls-clone-expected.txt
r171184 r171593 15 15 RenderFlexibleBox {DIV} at (0,0) size 300x150 16 16 layer at (8,133) size 300x25 17 RenderFlexibleBox {DIV} at (0,125) size 300x25 17 RenderBlock {DIV} at (0,125) size 300x25 18 layer at (8,133) size 300x25 19 RenderFlexibleBox {DIV} at (0,0) size 300x25 18 20 layer at (14,138) size 16x16 19 21 RenderButton {BUTTON} at (6,4) size 16x17 [color=#FFFFFF] … … 26 28 layer at (308,133) size 200x25 27 29 RenderFlexibleBox {DIV} at (0,0) size 200x25 30 RenderBlock {DIV} at (0,0) size 200x25 28 31 layer at (308,133) size 200x25 29 32 RenderFlexibleBox {DIV} at (0,0) size 200x25 … … 39 42 RenderFlexibleBox {DIV} at (0,0) size 300x150 40 43 layer at (8,287) size 300x25 41 RenderFlexibleBox {DIV} at (0,125) size 300x25 44 RenderBlock {DIV} at (0,125) size 300x25 45 layer at (8,287) size 300x25 46 RenderFlexibleBox {DIV} at (0,0) size 300x25 42 47 layer at (14,292) size 16x16 43 48 RenderButton {BUTTON} at (6,4) size 16x17 [color=#FFFFFF] … … 50 55 layer at (308,287) size 200x25 51 56 RenderFlexibleBox {DIV} at (0,0) size 200x25 57 RenderBlock {DIV} at (0,0) size 200x25 52 58 layer at (308,287) size 200x25 53 59 RenderFlexibleBox {DIV} at (0,0) size 200x25 -
trunk/LayoutTests/platform/mac/media/video-no-audio-expected.txt
r164140 r171593 14 14 RenderFlexibleBox {DIV} at (0,0) size 352x288 15 15 layer at (8,305) size 352x25 16 RenderFlexibleBox {DIV} at (0,263) size 352x25 16 RenderBlock {DIV} at (0,263) size 352x25 17 layer at (8,305) size 352x25 18 RenderFlexibleBox {DIV} at (0,0) size 352x25 17 19 layer at (14,310) size 16x16 18 20 RenderButton {BUTTON} at (6,4) size 16x17 [color=#FFFFFF] -
trunk/Source/WebCore/ChangeLog
r171591 r171593 1 2014-07-25 Zalan Bujtas <zalan@apple.com> 2 3 Subpixel rendering: iOS video playback controls look blurry. 4 https://bugs.webkit.org/show_bug.cgi?id=135245 5 <rdar://problem/16878037> 6 7 Reviewed by Simon Fraser. 8 9 This patch introduces a compositing parent of the overlay control panel so that 10 the transformed overlay panel becomes sharp. This is a workaround for webkit.org/b/135246. 11 12 Can't find a way to test it yet. 13 14 * Modules/mediacontrols/mediaControlsApple.css: 15 (video::-webkit-media-controls-panel-composited-parent): 16 * Modules/mediacontrols/mediaControlsApple.js: 17 (Controller.prototype.createControls): 18 (Controller.prototype.addControls): 19 * Modules/mediacontrols/mediaControlsiOS.css: 20 (video::-webkit-media-controls-panel-composited-parent): 21 * Modules/mediacontrols/mediaControlsiOS.js: This is a workaround for webkit.org/b/135248 22 It pushes the overlay panel down to close the gap with the video element. Since the 23 panel's size in css pixels is scale dependent, the gap needs to be scale dependent too. 24 (ControllerIOS.prototype.set pageScaleFactor): 25 1 26 2014-07-24 Dirk Schulze <krit@webkit.org> 2 27 -
trunk/Source/WebCore/Modules/mediacontrols/mediaControlsApple.css
r171158 r171593 63 63 position: relative; 64 64 -webkit-flex: 1 1 auto; 65 } 66 67 video::-webkit-media-controls-panel-composited-parent { 68 -webkit-transform: translateZ(0); 69 width: 100%; 65 70 } 66 71 -
trunk/Source/WebCore/Modules/mediacontrols/mediaControlsApple.js
r171184 r171593 286 286 createControls: function() 287 287 { 288 var panelCompositedParent = this.controls.panelCompositedParent = document.createElement('div'); 289 panelCompositedParent.setAttribute('pseudo', '-webkit-media-controls-panel-composited-parent'); 290 288 291 var panel = this.controls.panel = document.createElement('div'); 289 292 panel.setAttribute('pseudo', '-webkit-media-controls-panel'); … … 1027 1030 addControls: function() 1028 1031 { 1029 this.base.appendChild(this.controls.panel); 1032 this.base.appendChild(this.controls.panelCompositedParent); 1033 this.controls.panelCompositedParent.appendChild(this.controls.panel); 1030 1034 this.setNeedsTimelineMetricsUpdate(); 1031 1035 }, -
trunk/Source/WebCore/Modules/mediacontrols/mediaControlsiOS.css
r171004 r171593 115 115 } 116 116 117 video::-webkit-media-controls-panel-composited-parent { 118 -webkit-transform: translateZ(0); 119 width: 100%; 120 } 121 117 122 audio::-webkit-media-controls-panel, 118 123 video::-webkit-media-controls-panel { -
trunk/Source/WebCore/Modules/mediacontrols/mediaControlsiOS.js
r171032 r171593 457 457 458 458 if (newScaleFactor) { 459 var scaleTransform = "scale(" + (1 / newScaleFactor) + ")"; 459 var scaleValue = 1 / newScaleFactor; 460 var scaleTransform = "scale(" + scaleValue + ")"; 460 461 if (this.controls.startPlaybackButton) 461 462 this.controls.startPlaybackButton.style.webkitTransform = scaleTransform; 462 463 if (this.controls.panel) { 463 this.controls.panel.style.width = (newScaleFactor * 100) + "%"; 464 var bottomAligment = -2 * scaleValue; 465 this.controls.panel.style.bottom = bottomAligment + "px"; 466 this.controls.panel.style.paddingBottom = -(newScaleFactor * bottomAligment) + "px"; 467 this.controls.panel.style.width = Math.ceil(newScaleFactor * 100) + "%"; 464 468 this.controls.panel.style.webkitTransform = scaleTransform; 465 469 this.setNeedsTimelineMetricsUpdate();
Note: See TracChangeset
for help on using the changeset viewer.