<?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>97563</bug_id>
          
          <creation_ts>2012-09-25 06:28:34 -0700</creation_ts>
          <short_desc>GIFImageReader: fix tautological compare</short_desc>
          <delta_ts>2012-09-25 10:11:48 -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>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="Hans Wennborg">hans</reporter>
          <assigned_to name="Hans Wennborg">hans</assigned_to>
          <cc>abarth</cc>
    
    <cc>thakis</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>727575</commentid>
    <comment_count>0</comment_count>
    <who name="Hans Wennborg">hans</who>
    <bug_when>2012-09-25 06:28:34 -0700</bug_when>
    <thetext>GIFImageReader: fix tautological compare</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>727578</commentid>
    <comment_count>1</comment_count>
      <attachid>165601</attachid>
    <who name="Hans Wennborg">hans</who>
    <bug_when>2012-09-25 06:33:09 -0700</bug_when>
    <thetext>Created attachment 165601
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>727579</commentid>
    <comment_count>2</comment_count>
    <who name="Hans Wennborg">hans</who>
    <bug_when>2012-09-25 06:35:08 -0700</bug_when>
    <thetext>Adam: you had the pleasure of touching this file in Bug 52363, perhaps you can take a look?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>727580</commentid>
    <comment_count>3</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-09-25 06:35:31 -0700</bug_when>
    <thetext>Attachment 165601 did not pass style-queue:

Failed to run &quot;[&apos;Tools/Scripts/check-webkit-style&apos;, &apos;--diff-files&apos;, u&apos;Source/WebCore/ChangeLog&apos;, u&apos;Source/WebCor...&quot; exit_code: 1
Source/WebCore/platform/image-decoders/gif/GIFImageReader.cpp:659:  disposal_method is incorrectly named. Don&apos;t use underscores in your identifier names.  [readability/naming/underscores] [4]
Total errors found: 1 in 2 files


If any of these errors are false positives, please file a bug against check-webkit-style.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>727583</commentid>
    <comment_count>4</comment_count>
    <who name="Hans Wennborg">hans</who>
    <bug_when>2012-09-25 06:38:11 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; Attachment 165601 [details] did not pass style-queue:
&gt; 
&gt; Failed to run &quot;[&apos;Tools/Scripts/check-webkit-style&apos;, &apos;--diff-files&apos;, u&apos;Source/WebCore/ChangeLog&apos;, u&apos;Source/WebCor...&quot; exit_code: 1
&gt; Source/WebCore/platform/image-decoders/gif/GIFImageReader.cpp:659:  disposal_method is incorrectly named. Don&apos;t use underscores in your identifier names.  [readability/naming/underscores] [4]
&gt; Total errors found: 1 in 2 files
&gt; 
&gt; 
&gt; If any of these errors are false positives, please file a bug against check-webkit-style.

The style is consistent with the rest of the file.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>727705</commentid>
    <comment_count>5</comment_count>
      <attachid>165601</attachid>
    <who name="Adam Barth">abarth</who>
    <bug_when>2012-09-25 09:26:47 -0700</bug_when>
    <thetext>Comment on attachment 165601
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=165601&amp;action=review

&gt; Source/WebCore/ChangeLog:15
&gt; +        This patch fixes the code by doing the comparison before storing the
&gt; +        value in the enum.

Is there any observable consequence of this change?  If so, should we write a test?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>727706</commentid>
    <comment_count>6</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2012-09-25 09:27:19 -0700</bug_when>
    <thetext>That file is also massively out of style, but I agree that point-fixing this one issue isn&apos;t the right thing to do in this patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>727738</commentid>
    <comment_count>7</comment_count>
    <who name="Hans Wennborg">hans</who>
    <bug_when>2012-09-25 09:44:00 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; (From update of attachment 165601 [details])
&gt; View in context: https://bugs.webkit.org/attachment.cgi?id=165601&amp;action=review
&gt; 
&gt; &gt; Source/WebCore/ChangeLog:15
&gt; &gt; +        This patch fixes the code by doing the comparison before storing the
&gt; &gt; +        value in the enum.
&gt; 
&gt; Is there any observable consequence of this change?  If so, should we write a test?

There&apos;s no observable difference.

The code currently relied on unspecified behavior (i.e. that the enum can represent more values than it strictly has to), and my change just fixes that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>727743</commentid>
    <comment_count>8</comment_count>
      <attachid>165601</attachid>
    <who name="Adam Barth">abarth</who>
    <bug_when>2012-09-25 09:47:17 -0700</bug_when>
    <thetext>Comment on attachment 165601
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=165601&amp;action=review

&gt;&gt;&gt; Source/WebCore/ChangeLog:15
&gt;&gt;&gt; +        value in the enum.
&gt;&gt; 
&gt;&gt; Is there any observable consequence of this change?  If so, should we write a test?
&gt; 
&gt; There&apos;s no observable difference.
&gt; 
&gt; The code currently relied on unspecified behavior (i.e. that the enum can represent more values than it strictly has to), and my change just fixes that.

Ah, I see.  We have storage for all the bits, they&apos;re just outside the enum range.  Makes sense.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>727757</commentid>
    <comment_count>9</comment_count>
      <attachid>165601</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-09-25 10:11:45 -0700</bug_when>
    <thetext>Comment on attachment 165601
Patch

Clearing flags on attachment: 165601

Committed r129523: &lt;http://trac.webkit.org/changeset/129523&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>727758</commentid>
    <comment_count>10</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-09-25 10:11:48 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>165601</attachid>
            <date>2012-09-25 06:33:09 -0700</date>
            <delta_ts>2012-09-25 10:11:44 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-97563-20120925143228.patch</filename>
            <type>text/plain</type>
            <size>2380</size>
            <attacher name="Hans Wennborg">hans</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTI5NDgzCmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViQ29yZS9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXggMzlhZWNmNTAyNWIxZTBl
ZmVlNTMyNWM0OTA3ODliODMzMzMyZTk4YS4uY2M4NWQxYjBiNzZlM2VjNmJjZmEzMzRlYTFiZDIy
ZjU2NjZhNjQ4YyAxMDA2NDQKLS0tIGEvU291cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCisrKyBiL1Nv
dXJjZS9XZWJDb3JlL0NoYW5nZUxvZwpAQCAtMSwzICsxLDI0IEBACisyMDEyLTA5LTI1ICBIYW5z
IFdlbm5ib3JnICA8aGFuc0BjaHJvbWl1bS5vcmc+CisKKyAgICAgICAgR0lGSW1hZ2VSZWFkZXI6
IGZpeCB0YXV0b2xvZ2ljYWwgY29tcGFyZQorICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0L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