<?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>20243</bug_id>
          
          <creation_ts>2008-07-31 11:14:03 -0700</creation_ts>
          <short_desc>Potential crash with RenderLayer clipRects</short_desc>
          <delta_ts>2008-07-31 14:11:18 -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>Mac</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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="Simon Fraser (smfr)">simon.fraser</reporter>
          <assigned_to name="Simon Fraser (smfr)">simon.fraser</assigned_to>
          <cc>dino</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>87512</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2008-07-31 11:14:03 -0700</bug_when>
    <thetext>Bug 20066 changed RenderLayer::calculateClipRects() to not call parent()-&gt;calculateClipRects() in some situations. That means that the parent&apos;s clipRects are no longer guaranteed to be set up, so the code lower in the method needs to protect against this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87513</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2008-07-31 11:20:25 -0700</bug_when>
    <thetext>I haven&apos;t been able to actually crash, but here&apos;s a null-check patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87514</commentid>
    <comment_count>2</comment_count>
      <attachid>22580</attachid>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2008-07-31 11:22:20 -0700</bug_when>
    <thetext>Created attachment 22580
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87518</commentid>
    <comment_count>3</comment_count>
      <attachid>22580</attachid>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2008-07-31 13:09:30 -0700</bug_when>
    <thetext>Comment on attachment 22580
Patch

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87524</commentid>
    <comment_count>4</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2008-07-31 14:11:18 -0700</bug_when>
    <thetext>Committed r35496
	M	WebCore/rendering/RenderLayer.cpp
	M	WebCore/ChangeLog
r35496 = aec6a3acb56598eac0ab03de1d44cb8679883d72 (trunk)
</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>22580</attachid>
            <date>2008-07-31 11:22:20 -0700</date>
            <delta_ts>2008-07-31 13:09:30 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>clip_rects_patch.txt</filename>
            <type>text/plain</type>
            <size>1378</size>
            <attacher name="Simon Fraser (smfr)">simon.fraser</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1dlYkNvcmUvQ2hhbmdlTG9nIGIvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXgg
MDA5Njk1Yy4uNTMzZDJmZSAxMDA2NDQKLS0tIGEvV2ViQ29yZS9DaGFuZ2VMb2cKKysrIGIvV2Vi
Q29yZS9DaGFuZ2VMb2cKQEAgLTEsMyArMSwxNCBAQAorMjAwOC0wNy0zMSAgU2ltb24gRnJhc2Vy
ICA8c2ltb24uZnJhc2VyQGFwcGxlLmNvbT4KKworICAgICAgICBSZXZpZXdlZ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cnVjdHVyZSBhbmQKICAgICAvLyBy
ZWYgY291bnQuCi0gICAgaWYgKGZpeGVkID09IHBhcmVudCgpLT5jbGlwUmVjdHMoKS0+Zml4ZWQo
KSAmJgorICAgIGlmIChwYXJlbnQoKS0+Y2xpcFJlY3RzKCkgJiYKKyAgICAgICAgZml4ZWQgPT0g
cGFyZW50KCktPmNsaXBSZWN0cygpLT5maXhlZCgpICYmCiAgICAgICAgIHBvc0NsaXBSZWN0ID09
IHBhcmVudCgpLT5jbGlwUmVjdHMoKS0+cG9zQ2xpcFJlY3QoKSAmJgogICAgICAgICBvdmVyZmxv
d0NsaXBSZWN0ID09IHBhcmVudCgpLT5jbGlwUmVjdHMoKS0+b3ZlcmZsb3dDbGlwUmVjdCgpICYm
CiAgICAgICAgIGZpeGVkQ2xpcFJlY3QgPT0gcGFyZW50KCktPmNsaXBSZWN0cygpLT5maXhlZENs
aXBSZWN0KCkpCg==
</data>
<flag name="review"
          id="9973"
          type_id="1"
          status="+"
          setter="hyatt"
    />
          </attachment>
      

    </bug>

</bugzilla>