<?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>115158</bug_id>
          
          <creation_ts>2013-04-25 01:04:40 -0700</creation_ts>
          <short_desc>Account for CTM scale when deciding the image resampling algorithm.</short_desc>
          <delta_ts>2022-10-31 14:52:05 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Images</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BlinkMergeCandidate</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ryosuke Niwa">rniwa</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>benjamin</cc>
    
    <cc>bfulgham</cc>
    
    <cc>dino</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>881129</commentid>
    <comment_count>0</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2013-04-25 01:04:40 -0700</bug_when>
    <thetext>We might want to consider merging:

https://chromium.googlesource.com/chromium/blink/+/b772b4d7c24b66bebba703fd2ef89fbe73ea1935

Account for CTM scale when deciding the image resampling algorithm.

ImageQualityController considers the image size and layout size when
computing which resampling algorithm to use, but did not account
for the current transform. This was noticable as &apos;bouncing&apos; when
scaling an image direclty with a transform.

This patch incorporates the context&apos;s CTM (which includes scale
but not zoom) into the resampling calculation. Because the
ImageQualityController runs on a 500ms timer, a manual test
has been added.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1892784</commentid>
    <comment_count>1</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-08-21 05:14:46 -0700</bug_when>
    <thetext>Not removed:

https://github.com/WebKit/WebKit/blob/786e7036ff95fecccbd5ec1aae8a39a523227f1e/Source/WebCore/rendering/ImageQualityController.cpp#L125

to Line 127.

_____

Added these two lines (155 &amp; 156):

https://github.com/WebKit/WebKit/blob/786e7036ff95fecccbd5ec1aae8a39a523227f1e/Source/WebCore/rendering/ImageQualityController.cpp#L155


_____

LayoutSize not detailed and also not updated below:

https://github.com/WebKit/WebKit/blob/786e7036ff95fecccbd5ec1aae8a39a523227f1e/Source/WebCore/rendering/ImageQualityController.cpp#L172

_______

Above are some examples, which indicates that it might be added in some shape or form but not completely.. Appreciate if someone can confirm. Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1909430</commentid>
    <comment_count>2</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-10-31 14:52:05 -0700</bug_when>
    <thetext>I tried it with following:

https://github.com/WebKit/WebKit/pull/5111

but it seems that this optimisation was removed in follow-up:

https://src.chromium.org/viewvc/blink?revision=194338&amp;view=revision

I am going to close by PR despite review from Said because it is leading to build failures as well. Thanks!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>