<?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>107360</bug_id>
          
          <creation_ts>2013-01-18 22:56:05 -0800</creation_ts>
          <short_desc>Remove unnecessary PLATFORM() tests</short_desc>
          <delta_ts>2013-01-19 08:30:30 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Platform</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="Laszlo Gombos">laszlo.gombos</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>benjamin</cc>
    
    <cc>darin</cc>
    
    <cc>eric</cc>
    
    <cc>ojan.autocc</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>811309</commentid>
    <comment_count>0</comment_count>
    <who name="Laszlo Gombos">laszlo.gombos</who>
    <bug_when>2013-01-18 22:56:05 -0800</bug_when>
    <thetext>PLATFORM(WIN) PLATFORM(CHROMIUM) and PLATFORM(QT) are mutually exclusive - only one of them can be true. In a few places we have tests like &quot;PLATFORM(WIN) &amp;&amp; !PLATFORM(CHROMIUM) &amp;&amp; !PLATFORM(QT)&quot;. This is probably a left over from the times when PLATFORM(WIN) use to be OS(WIN).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>811312</commentid>
    <comment_count>1</comment_count>
      <attachid>183605</attachid>
    <who name="Laszlo Gombos">laszlo.gombos</who>
    <bug_when>2013-01-18 22:59:54 -0800</bug_when>
    <thetext>Created attachment 183605
proposed change</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>811313</commentid>
    <comment_count>2</comment_count>
      <attachid>183605</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2013-01-18 23:01:43 -0800</bug_when>
    <thetext>Comment on attachment 183605
proposed change

Because PLATFORM(WIN) means AppleWin?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>811316</commentid>
    <comment_count>3</comment_count>
    <who name="Laszlo Gombos">laszlo.gombos</who>
    <bug_when>2013-01-18 23:08:10 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; (From update of attachment 183605 [details])
&gt; Because PLATFORM(WIN) means AppleWin?

Yes, indeed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>811317</commentid>
    <comment_count>4</comment_count>
    <who name="Laszlo Gombos">laszlo.gombos</who>
    <bug_when>2013-01-18 23:09:49 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; (In reply to comment #2)
&gt; &gt; (From update of attachment 183605 [details] [details])
&gt; &gt; Because PLATFORM(WIN) means AppleWin?
&gt; 
&gt; Yes, indeed.

These PLATFORM() macros are setup in Platform.h and from the definition it is clear that there are mutually exclusive.


#if defined(BUILDING_CHROMIUM__)
#define WTF_PLATFORM_CHROMIUM 1 
#elif defined(BUILDING_QT__)    
#define WTF_PLATFORM_QT 1       
#elif defined(BUILDING_WX__)    
#define WTF_PLATFORM_WX 1       
#elif defined(BUILDING_EFL__)   
#define WTF_PLATFORM_EFL 1      
#elif defined(BUILDING_GTK__)   
#define WTF_PLATFORM_GTK 1      
#elif defined(BUILDING_BLACKBERRY__)
#define WTF_PLATFORM_BLACKBERRY 1   
#elif OS(DARWIN)
#define WTF_PLATFORM_MAC 1
#elif OS(WINDOWS)
#define WTF_PLATFORM_WIN 1
#endif</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>811318</commentid>
    <comment_count>5</comment_count>
      <attachid>183605</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2013-01-18 23:15:55 -0800</bug_when>
    <thetext>Comment on attachment 183605
proposed change

OK.  One of these years we should rename PLATFORM(MAC) and PLATFORM(WIN) to PLATFORM(APPLE_MAC) and APPLE_WIN to end the confusion.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>811327</commentid>
    <comment_count>6</comment_count>
      <attachid>183605</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2013-01-18 23:50:10 -0800</bug_when>
    <thetext>Comment on attachment 183605
proposed change

Clearing flags on attachment: 183605

Committed r140238: &lt;http://trac.webkit.org/changeset/140238&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>811328</commentid>
    <comment_count>7</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2013-01-18 23:50:14 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>811415</commentid>
    <comment_count>8</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2013-01-19 08:30:30 -0800</bug_when>
    <thetext>(In reply to comment #5)
&gt; OK.  One of these years we should rename PLATFORM(MAC) and PLATFORM(WIN) to PLATFORM(APPLE_MAC) and APPLE_WIN to end the confusion.

Renaming is fine, but even though they seem different to you, I don’t think that most people would understand APPLE_MAC as distinct from MAC, so I think we have to think more on how to name.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>183605</attachid>
            <date>2013-01-18 22:59:54 -0800</date>
            <delta_ts>2013-01-18 23:50:10 -0800</delta_ts>
            <desc>proposed change</desc>
            <filename>107360.patch</filename>
            <type>text/plain</type>
            <size>1519</size>
            <attacher name="Laszlo Gombos">laszlo.gombos</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XVEYvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFNvdXJjZS9XVEYvQ2hh
bmdlTG9nCShyZXZpc2lvbiAxNDAyMzYpCisrKyBTb3VyY2UvV1RGL0NoYW5nZUxvZwkod29ya2lu
ZyBjb3B5KQpAQCAtMSwzICsxLDE2IEBACisyMDEzLTAxLTE4ICBMYXN6bG8gR29tYm9zICA8bC5n
b21ib3NAc2Ftc3VuZy5jb20+CisKKyAgICAgICAgUmVtb3ZlIHVubmVjZXNzYXJ5IFBMQVRGT1JN
KCkgdGVzdHMKKyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lk
PTEwNzM2MAorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAg
IFBMQVRGT1JNKFdJTiksIFBMQVRGT1JNKENIUk9NSVVNKSBhbmQgUExBVEZPUk0oUVQpIGFyZSBt
dXR1YWxseQorICAgICAgICBleGNsdXNpdmUuIFJlbW92ZSByZWR1bmRhbnQgUExBVEZPUk0oKSB0
ZXN0cyBiYXNlZCBvbiB0aGlzCisgICAgICAgIGludmFyaWFudC4KKworICAgICAgICAqIHd0Zi9Q
bGF0Zm9ybS5oOgorCiAyMDEzLTAxLTE4ICBMYXN6bG8gR29tYm9zICA8bC5nb21ib3NAc2Ftc3Vu
Zy5jb20+CiAKICAgICAgICAgUmVtb3ZlIFBMQVRGT1JNKFRPUkNITU9CSUxFKSBmcm9tIEFzc2Vy
dGlvbnMuaApJbmRleDogU291cmNlL1dURi93dGYvUGxhdGZvcm0uaAo9PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBT
b3VyY2UvV1RGL3d0Zi9QbGF0Zm9ybS5oCShyZXZpc2lvbiAxNDAyMzMpCisrKyBTb3VyY2UvV1RG
L3d0Zi9QbGF0Zm9ybS5oCSh3b3JraW5nIGNvcHkpCkBAIC02MzUsNyArNjM1LDcgQEAKICNkZWZp
bmUgV1RGX1VTRV9DRiAxCiAjZW5kaWYKIAotI2lmIFBMQVRGT1JNKFdJTikgJiYgIU9TKFdJTkNF
KSAmJiAhUExBVEZPUk0oQ0hST01JVU0pICYmICFQTEFURk9STShXSU5fQ0FJUk8pCisjaWYgUExB
VEZPUk0oV0lOKSAmJiAhT1MoV0lOQ0UpICYmICFQTEFURk9STShXSU5fQ0FJUk8pCiAjZGVmaW5l
IFdURl9VU0VfQ0ZORVRXT1JLIDEKICNlbmRpZgogCkBAIC02NDMsMTEgKzY0MywxMSBAQAogI2Rl
ZmluZSBXVEZfVVNFX0NGVVJMQ0FDSEUgMQogI2VuZGlmCiAKLSNpZiBQTEFURk9STShXSU4pICYm
ICFPUyhXSU5DRSkgJiYgIVBMQVRGT1JNKENIUk9NSVVNKSAmJiAhUExBVEZPUk0oUVQpCisjaWYg
UExBVEZPUk0oV0lOKSAmJiAhT1MoV0lOQ0UpCiAjZGVmaW5lIEVOQUJMRV9XRUJfQVJDSElWRSAx
CiAjZW5kaWYKIAotI2lmIFBMQVRGT1JNKFdJTikgJiYgIU9TKFdJTkNFKSAmJiAhUExBVEZPUk0o
Q0hST01JVU0pICYmICFQTEFURk9STShXSU5fQ0FJUk8pICYmICFQTEFURk9STShRVCkKKyNpZiBQ
TEFURk9STShXSU4pICYmICFPUyhXSU5DRSkgJiYgIVBMQVRGT1JNKFdJTl9DQUlSTykKICNkZWZp
bmUgRU5BQkxFX0ZVTExTQ1JFRU5fQVBJIDEKICNlbmRpZgogCg==
</data>

          </attachment>
      

    </bug>

</bugzilla>