<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>99722</bug_id>
          
          <creation_ts>2012-10-18 08:14:15 -0700</creation_ts>
          <short_desc>[Qt][WK2] Plugins are overscaled with a custom devicePixelRatio</short_desc>
          <delta_ts>2013-01-27 14:21:25 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Plug-ins</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Balazs Kelemen">kbalazs</reporter>
          <assigned_to name="Balazs Kelemen">kbalazs</assigned_to>
          <cc>abecsi</cc>
    
    <cc>allan.jensen</cc>
    
    <cc>cgarcia</cc>
    
    <cc>hausmann</cc>
    
    <cc>jturcotte</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>745262</commentid>
    <comment_count>0</comment_count>
    <who name="Balazs Kelemen">kbalazs</who>
    <bug_when>2012-10-18 08:14:15 -0700</bug_when>
    <thetext>Context: bug 98518.
This can be seen in MiniBrowser since we use a custom 1.5 devicePixelRatio. If I just make PluginProxy::contentsScaleFactor() return constant 1 it fixes this but we need to understand why, and where is the actual bug or the between us and mac.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>753610</commentid>
    <comment_count>1</comment_count>
    <who name="Balazs Kelemen">kbalazs</who>
    <bug_when>2012-10-29 10:52:55 -0700</bug_when>
    <thetext>I have problems with trying this on Mac. 
The idea of mine was to disable AC in MiniBrowser to trigger the actual code path that is causing the issue for us. Unfortunately I cannot make MiniBrowser use the PluginProcess of my build, for some reason it always use the one installed on the system. run-safari does not show any video for me (probably because I am using vnc, although MiniBrowser is playing them finely). I would appreciate if some of you who have direct access to a Mac could take a try with this ;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>777999</commentid>
    <comment_count>2</comment_count>
      <attachid>176504</attachid>
    <who name="Balazs Kelemen">kbalazs</who>
    <bug_when>2012-11-28 09:59:05 -0800</bug_when>
    <thetext>Created attachment 176504
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>783511</commentid>
    <comment_count>3</comment_count>
    <who name="Allan Sandfeld Jensen">allan.jensen</who>
    <bug_when>2012-12-05 01:28:37 -0800</bug_when>
    <thetext>I think this important for 5.0. I am also concerned were the bug really is at.

Isn&apos;t part of the point of devicePixelRatio that content such as text could be rendered at a higher resolution instead of being image scaled? Could it somehow be that we forget to report the correct size of the rendered plugin output?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>783536</commentid>
    <comment_count>4</comment_count>
    <who name="Balazs Kelemen">kbalazs</who>
    <bug_when>2012-12-05 01:50:31 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; I think this important for 5.0. I am also concerned were the bug really is at.
&gt; 
&gt; Isn&apos;t part of the point of devicePixelRatio that content such as text could be rendered at a higher resolution instead of being image scaled? Could it somehow be that we forget to report the correct size of the rendered plugin output?

Although I don&apos;t have full understanding of how devicePixelRatio is and should handled, I can say this patch avoids the image scaling, and the plugin size is ok. Actually I cannot follow the logic in PluginProxy, or rather I believe it is wrong. Furthermore that code path is not tested since Mac is using the AC path for plugins, Gtk doesn&apos;t support devicePixelRatio yet, EFL doesn&apos;t support plugins yet.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>783686</commentid>
    <comment_count>5</comment_count>
    <who name="Jocelyn Turcotte">jturcotte</who>
    <bug_when>2012-12-05 05:59:56 -0800</bug_when>
    <thetext>The problem might be that we apply the scaling once more when we blit the already scalled plugin backing store onto our non-composited-content tiles.

The real solution I think would be to get plugin backing stores rendered using AC, passed through a ShareableSurface. It is pretty innefficient to blit it again on tiles using the CPU for each update by the plugin.

I think that we can live with this bug until then, I don&apos;t see any real-world use case where we would want a WebView with both plugins and a non-1.0 device pixel ratio. It just happens to be the default (for testing purposes) in MiniBrowser.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>176504</attachid>
            <date>2012-11-28 09:59:05 -0800</date>
            <delta_ts>2013-01-27 14:21:25 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-99722-20121128185634.patch</filename>
            <type>text/plain</type>
            <size>1639</size>
            <attacher name="Balazs Kelemen">kbalazs</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTM2MDE0CmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViS2l0Mi9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViS2l0Mi9DaGFuZ2VMb2cKaW5kZXggM2EwYjRiNzQxZjdmZjRh
ODhiMzk3NDljYzhlODc0YmZhN2VhNzE0ZS4uZmMxZjgxMzVhNDdjOTdlNzdlOThjNjkxMTNkNzFk
ZWRjNzkyMjE3NSAxMDA2NDQKLS0tIGEvU291cmNlL1dlYktpdDIvQ2hhbmdlTG9nCisrKyBiL1Nv
dXJjZS9XZWJLaXQyL0NoYW5nZUxvZwpAQCAtMSwzICsxLDE4IEBACisyMDEyLTExLTI4ICBCYWxh
enMgS2VsZW1lbiAgPGtiYWxhenNAd2Via2l0Lm9yZz4KKworICAgICAgICBbUXRdW1dLMl0gUGx1
Z2lucyBhcmUgb3ZlcnNjYWxlZCB3aXRoIGEgY3VzdG9tIGRldmljZVBpeGVsUmF0aW8KKyAgICAg
ICAgaH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0YWU2ZmQxNzM3ZTk0MzI2MzUwYjg4YzJkOGQ3N2UgMTAwNjQ0Ci0tLSBhL1NvdXJjZS9XZWJL
aXQyL1dlYlByb2Nlc3MvUGx1Z2lucy9QbHVnaW5WaWV3LmNwcAorKysgYi9Tb3VyY2UvV2ViS2l0
Mi9XZWJQcm9jZXNzL1BsdWdpbnMvUGx1Z2luVmlldy5jcHAKQEAgLTEzNjUsOSArMTM2NSwxMCBA
QCBtYWNoX3BvcnRfdCBQbHVnaW5WaWV3Ojpjb21wb3NpdGluZ1JlbmRlclNlcnZlclBvcnQoKQog
CiBmbG9hdCBQbHVnaW5WaWV3Ojpjb250ZW50c1NjYWxlRmFjdG9yKCkKIHsKKyNpZiAhVVNFKFRJ
TEVEX0JBQ0tJTkdfU1RPUkUpCiAgICAgaWYgKFBhZ2UqIHBhZ2UgPSBmcmFtZSgpID8gZnJhbWUo
KS0+cGFnZSgpIDogMCkKICAgICAgICAgcmV0dXJuIHBhZ2UtPmRldmljZVNjYWxlRmFjdG9yKCk7
Ci0gICAgICAgIAorI2VuZGlmCiAgICAgcmV0dXJuIDE7CiB9CiAgICAgCg==
</data>
<flag name="review"
          id="192311"
          type_id="1"
          status="-"
          setter="kbalazs"
    />
          </attachment>
      

    </bug>

</bugzilla>