<?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>87811</bug_id>
          
          <creation_ts>2012-05-29 19:16:56 -0700</creation_ts>
          <short_desc>correct the sequence of diagnostic crash check</short_desc>
          <delta_ts>2012-05-29 22:18:54 -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>New Bugs</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="Lu Guanqun">guanqun.lu</reporter>
          <assigned_to name="Lu Guanqun">guanqun.lu</assigned_to>
          <cc>cc-bugs</cc>
    
    <cc>enne</cc>
    
    <cc>jamesr</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>636739</commentid>
    <comment_count>0</comment_count>
    <who name="Lu Guanqun">guanqun.lu</who>
    <bug_when>2012-05-29 19:16:56 -0700</bug_when>
    <thetext>correct the sequence of diagnostic crash check</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>636740</commentid>
    <comment_count>1</comment_count>
      <attachid>144678</attachid>
    <who name="Lu Guanqun">guanqun.lu</who>
    <bug_when>2012-05-29 19:18:10 -0700</bug_when>
    <thetext>Created attachment 144678
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>636750</commentid>
    <comment_count>2</comment_count>
    <who name="Lu Guanqun">guanqun.lu</who>
    <bug_when>2012-05-29 19:26:29 -0700</bug_when>
    <thetext>We should do the null check before we de-reference the pointer. Otherwise, we don&apos;t get the benefits of crash check.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>636789</commentid>
    <comment_count>3</comment_count>
      <attachid>144678</attachid>
    <who name="James Robinson">jamesr</who>
    <bug_when>2012-05-29 21:00:04 -0700</bug_when>
    <thetext>Comment on attachment 144678
Patch

I think you slightly misunderstand the meaning of the tileAt() check - we&apos;re trying to verify that _after_ adding the tile it exists.  Moving the CHECK() for addedTile seems reasonable.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>636841</commentid>
    <comment_count>4</comment_count>
    <who name="Lu Guanqun">guanqun.lu</who>
    <bug_when>2012-05-29 21:58:40 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; (From update of attachment 144678 [details])
&gt; I think you slightly misunderstand the meaning of the tileAt() check - we&apos;re trying to verify that _after_ adding the tile it exists.  Moving the CHECK() for addedTile seems reasonable.

It does check the tile _after_ it&apos;s been added, since it&apos;s after the line &quot;m_tiler-&gt;addTile(tile.release(), i, j);&quot;.

The line &quot;addedTile-&gt;dirtyRect = m_tiler-&gt;tileRect(addedTile);&quot; doesn&apos;t add the tile, does it?

Do I miss something here?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>636848</commentid>
    <comment_count>5</comment_count>
      <attachid>144678</attachid>
    <who name="James Robinson">jamesr</who>
    <bug_when>2012-05-29 22:11:40 -0700</bug_when>
    <thetext>Comment on attachment 144678
Patch

Ah sorry, you&apos;re right.  Still not sure it&apos;s worth churning the line numbers, we&apos;re going to remove these lines in a few days anyway.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>636854</commentid>
    <comment_count>6</comment_count>
    <who name="Lu Guanqun">guanqun.lu</who>
    <bug_when>2012-05-29 22:18:54 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; (From update of attachment 144678 [details])
&gt; Ah sorry, you&apos;re right.  Still not sure it&apos;s worth churning the line numbers, we&apos;re going to remove these lines in a few days anyway.

OK. It&apos;s good to know that these lines would be removed. So I will mark this bug as won&apos;t fix.

Thanks for the review anyway.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>144678</attachid>
            <date>2012-05-29 19:18:10 -0700</date>
            <delta_ts>2012-05-29 22:11:40 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-87811-20120530101836.patch</filename>
            <type>text/plain</type>
            <size>1497</size>
            <attacher name="Lu Guanqun">guanqun.lu</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTE4NTYwCmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViQ29yZS9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXggMzRiNTAyNjEwMWFkNzc2
NzlmNjgwOGM0NzgyODc4ODZjYjIzNWMwMi4uNzM5YmY3MmNmMWIzMmY2MTY4ZGNkMmU4ZGNkOTky
MjhhODE3MGU0MSAxMDA2NDQKLS0tIGEvU291cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCisrKyBiL1Nv
dXJjZS9XZWJDb3JlL0NoYW5nZUxvZwpAQCAtMSwzICsxLDEzIEBACisyMDEyLTA1LTI5ICBMdSBH
dWFucXVuICA8Z3VhbnF1bi5sdUBpbnRlbC5jb20+CisKKyAgICAgICAgY29ycmVjdCB0aGUgc2Vx
dWVuY2Ugb2YgZGlhZ25vc3RpYyBjcmFzaCBjaGVjaworICAgICAgICBodHRwczovL2J1Z3Mud2Vi
a2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9ODc4MTEKKworICAgICAgICBSZXZpZXdlZCBieSBOT0JP
RFkgKE9PUFMhKS4KKworICAgICAgICAqIHBsYXRmb3JtL2dyYXBoaWNzL2Nocm9taXVtL1RpbGVk
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JhcnkgZGlh
Z25vc3RpYyBjcmFzaC4KICAgICBpZiAoIWFkZGVkVGlsZSkKICAgICAgICAgQ1JBU0goKTsKICAg
ICBpZiAoIXRpbGVBdChpLCBqKSkKICAgICAgICAgQ1JBU0goKTsKIAorICAgIGFkZGVkVGlsZS0+
ZGlydHlSZWN0ID0gbV90aWxlci0+dGlsZVJlY3QoYWRkZWRUaWxlKTsKKwogICAgIHJldHVybiBh
ZGRlZFRpbGU7CiB9CiAK
</data>
<flag name="review"
          id="151584"
          type_id="1"
          status="-"
          setter="jamesr"
    />
          </attachment>
      

    </bug>

</bugzilla>