Bug 158770

Summary: [iOS] Play glyph is pixelated when the page zoom is large
Product: WebKit Reporter: Antoine Quint <graouts>
Component: MediaAssignee: Antoine Quint <graouts>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, graouts, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: iPhone / iPad   
OS: iOS 9.3   
Attachments:
Description Flags
Testcase
none
Patch
none
Patch for landing none

Description Antoine Quint 2016-06-14 18:23:07 PDT
Created attachment 281307 [details]
Testcase

See the attached test case which has a <video> element with a rather large viewport width forcing a lot of page zoom. In that situation, the play glyph over the video is very pixelated.
Comment 1 Antoine Quint 2016-06-14 18:23:23 PDT
<rdar://problem/26092124>
Comment 2 Antoine Quint 2016-06-14 18:25:18 PDT
Created attachment 281308 [details]
Patch
Comment 3 Darin Adler 2016-06-14 18:27:06 PDT
Comment on attachment 281308 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=281308&action=review

> Source/WebCore/ChangeLog:11
> +        Use the same technique that we use to scale the video controls by using a combination
> +        of CSS "zoom" and "transform" properties to have the video play glyph scaled at its
> +        native size regardless of page zoom.

Should we make a helper function for this to avoid repeating the code?
Comment 4 Antoine Quint 2016-06-14 18:32:27 PDT
(In reply to comment #3)
> Comment on attachment 281308 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=281308&action=review
> 
> > Source/WebCore/ChangeLog:11
> > +        Use the same technique that we use to scale the video controls by using a combination
> > +        of CSS "zoom" and "transform" properties to have the video play glyph scaled at its
> > +        native size regardless of page zoom.
> 
> Should we make a helper function for this to avoid repeating the code?

Sure thing. I'll add an inline function to the `scaleFactor` setter.
Comment 5 Antoine Quint 2016-06-14 18:37:06 PDT
Created attachment 281310 [details]
Patch for landing
Comment 6 WebKit Commit Bot 2016-06-14 19:06:01 PDT
Comment on attachment 281310 [details]
Patch for landing

Clearing flags on attachment: 281310

Committed r202079: <http://trac.webkit.org/changeset/202079>
Comment 7 WebKit Commit Bot 2016-06-14 19:06:04 PDT
All reviewed patches have been landed.  Closing bug.