<?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>80331</bug_id>
          
          <creation_ts>2012-03-05 14:52:40 -0800</creation_ts>
          <short_desc>[chromium] Refactor CCLayerTreeHostCommon: untangle drawableContentRect, part 1</short_desc>
          <delta_ts>2012-07-16 09:09:13 -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>Layout and Rendering</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>80622</dup_id>
          
          <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="Shawn Singh">shawnsingh</reporter>
          <assigned_to name="Shawn Singh">shawnsingh</assigned_to>
          <cc>danakj</cc>
    
    <cc>enne</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>571068</commentid>
    <comment_count>0</comment_count>
    <who name="Shawn Singh">shawnsingh</who>
    <bug_when>2012-03-05 14:52:40 -0800</bug_when>
    <thetext>The computation and usage of drawableContentRect is one of the most confusing aspects of calculateDrawTransformsAndVisibility:

(1) before recursion, drawableContentRect is initalized to the clipRect (or, if no masksToBounds, the layer&apos;s boundaries)
(2) after recursion, drawableContentRect is expanded to include layers, and is then re-clipped if masksToBounds is true.
(3) after all that, the clipRect is re-initialized to the drawableContentRect ... ?!
(4) drawableContentRect should not be a layer property; it is not actually used outside calculateDrawTransformsAndVisibility; it is only used to initialize the target renderSurface&apos;s contentRect.

Cleaning this up safely will take multiple patches, this first patch will try to remove some redundancy in the appropriate if statements, before trying to clean up the clipRect/drawableContentRect knot described above.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>587909</commentid>
    <comment_count>1</comment_count>
    <who name="Dana Jansens">danakj</who>
    <bug_when>2012-03-26 11:00:11 -0700</bug_when>
    <thetext>This may or may not be the place to fix the clipRect + replica situation. But the clipRect for both the surface is wrong when the surface has a replica (it includes the replica and possibly more), and we don&apos;t have a clipRect for just the replica.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>670384</commentid>
    <comment_count>2</comment_count>
    <who name="Shawn Singh">shawnsingh</who>
    <bug_when>2012-07-16 09:09:13 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 80622 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>