<?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>134347</bug_id>
          
          <creation_ts>2014-06-26 09:00:38 -0700</creation_ts>
          <short_desc>Define TARGET_OS_IPHONE to 0 for non-darwin ports</short_desc>
          <delta_ts>2014-06-26 15:19:27 -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>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>bunhere</cc>
    
    <cc>cdumez</cc>
    
    <cc>cmarcelo</cc>
    
    <cc>commit-queue</cc>
    
    <cc>gyuyoung.kim</cc>
    
    <cc>ossy</cc>
    
    <cc>sergio</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1018637</commentid>
    <comment_count>0</comment_count>
    <who name="Laszlo Gombos">laszlo.gombos</who>
    <bug_when>2014-06-26 09:00:38 -0700</bug_when>
    <thetext>Follow-up for http://trac.webkit.org/changeset/169880 to make it a bit more future proof and easier to read and reason about it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1018638</commentid>
    <comment_count>1</comment_count>
      <attachid>233904</attachid>
    <who name="Laszlo Gombos">laszlo.gombos</who>
    <bug_when>2014-06-26 09:08:40 -0700</bug_when>
    <thetext>Created attachment 233904
It reads slightly better..</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1018690</commentid>
    <comment_count>2</comment_count>
      <attachid>233904</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2014-06-26 11:39:38 -0700</bug_when>
    <thetext>Comment on attachment 233904
It reads slightly better..

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

It’s worth noting why this is different from our usual strategy. Unlike, say, WebCore, WebKit2 has public header files, and in public header files we need to use conditionals that don’t rely on WebKit internals such as Platform.h.

Understanding that leads to the thought that for EFL and GTK, this use of TARGET_OS_IPHONE in public header files might pose a problem, for the same reason that PLATFORM(IOS) would be a problem on the Mac and iOS platform. We may need to run a script to strip those out for those platforms as part of the “installing public headers” process.

&gt; Source/WTF/wtf/Platform.h:1049
&gt; +/* Set TARGET_OS_IPHONE to 0 by default to allow using it as a guard 
&gt; + * in cross-platform the same way as it is used in OS(DARWIN) code */ 

Normally we’d put a period at the end of a sentence.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1018742</commentid>
    <comment_count>3</comment_count>
      <attachid>233934</attachid>
    <who name="Laszlo Gombos">laszlo.gombos</who>
    <bug_when>2014-06-26 14:39:32 -0700</bug_when>
    <thetext>Created attachment 233934
for cq incorporating Darin&apos;s feedback</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1018761</commentid>
    <comment_count>4</comment_count>
      <attachid>233934</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2014-06-26 15:19:22 -0700</bug_when>
    <thetext>Comment on attachment 233934
for cq incorporating Darin&apos;s feedback

Clearing flags on attachment: 233934

Committed r170498: &lt;http://trac.webkit.org/changeset/170498&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1018762</commentid>
    <comment_count>5</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2014-06-26 15:19:27 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>233904</attachid>
            <date>2014-06-26 09:08:40 -0700</date>
            <delta_ts>2014-06-26 14:39:32 -0700</delta_ts>
            <desc>It reads slightly better..</desc>
            <filename>TARGET_IPHONE.patch</filename>
            <type>text/plain</type>
            <size>1227</size>
            <attacher name="Laszlo Gombos">laszlo.gombos</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XVEYvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFNvdXJjZS9XVEYvQ2hh
bmdlTG9nCShyZXZpc2lvbiAxNzA0ODApCisrKyBTb3VyY2UvV1RGL0NoYW5nZUxvZwkod29ya2lu
ZyBjb3B5KQpAQCAtMSwzICsxLDE2IEBACisyMDE0LTA2LTI2ICBMYXN6bG8gR29tYm9zICA8bC5n
b21ib3NAc2Ftc3VuZy5jb20+CisKKyAgICAgICAgRGVmaW5lIFRBUkdFVF9PU19JUEhPTkUgdG8g
MCBmb3Igbm9uLWRhcndpbiBwb3J0cworICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9z
aG93X2J1Zy5jZ2k/aWQ9MTM0MzQ3CisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChPT1BT
ISkuCisKKyAgICAgICAgQSBmb2xsb3ctdXAgdG8gcjE2OTg4MCB0byBtYWtlIGl0IGVhc2llciB0
byByZWFzb24gYWJvdXQKKyAgICAgICAgdGhlIGNvZGUuIFRoZSBwdXJwb3NlIG9mIHRoaXMgY2hh
bmdlIHRvIGFsbG93CisgICAgICAgICIjaWYgVEFSR0VUX09TX0lQSE9ORSIgaW4gY3Jvc3MtcGxh
dGZvcm0gY29kZS4KKworICAgICAgICAqIHd0Zi9QbGF0Zm9ybS5oOgorCiAyMDE0LTA2LTI1ICBH
ZW9mZnJleSBHYXJlbiAgPGdnYXJlbkBhcHBsZS5jb20+CiAKICAgICAgICAgVW5yZXZpZXdlZCwg
cm9sbGluZyBvdXQgcjE2Njg3Ni4KSW5kZXg6IFNvdXJjZS9XVEYvd3RmL1BsYXRmb3JtLmgKPT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PQotLS0gU291cmNlL1dURi93dGYvUGxhdGZvcm0uaAkocmV2aXNpb24gMTcwNDI3KQor
KysgU291cmNlL1dURi93dGYvUGxhdGZvcm0uaAkod29ya2luZyBjb3B5KQpAQCAtMTA0NSw3ICsx
MDQ1LDkgQEAKICNkZWZpbmUgRU5BQkxFX09QRU5UWVBFX01BVEggMQogI2VuZGlmCiAKLSNpZiBQ
TEFURk9STShFRkwpIHx8IFBMQVRGT1JNKEdUSykKKy8qIFNldCBUQVJHRVRfT1NfSVBIT05FIHRv
IDAgYnkgZGVmYXVsdCB0byBhbGxvdyB1c2luZyBpdCBhcyBhIGd1YXJkIAorICogaW4gY3Jvc3Mt
cGxhdGZvcm0gdGhlIHNhbWUgd2F5IGFzIGl0IGlzIHVzZWQgaW4gT1MoREFSV0lOKSBjb2RlICov
IAorI2lmICFkZWZpbmVkKFRBUkdFVF9PU19JUEhPTkUpICYmICFPUyhEQVJXSU4pCiAjZGVmaW5l
IFRBUkdFVF9PU19JUEhPTkUgMAogI2VuZGlmCiAK
</data>
<flag name="review"
          id="258430"
          type_id="1"
          status="+"
          setter="darin"
    />
          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>233934</attachid>
            <date>2014-06-26 14:39:32 -0700</date>
            <delta_ts>2014-06-26 15:19:22 -0700</delta_ts>
            <desc>for cq incorporating Darin&apos;s feedback</desc>
            <filename>TARGET_IPHONE.patch</filename>
            <type>text/plain</type>
            <size>1225</size>
            <attacher name="Laszlo Gombos">laszlo.gombos</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XVEYvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFNvdXJjZS9XVEYvQ2hh
bmdlTG9nCShyZXZpc2lvbiAxNzA0ODApCisrKyBTb3VyY2UvV1RGL0NoYW5nZUxvZwkod29ya2lu
ZyBjb3B5KQpAQCAtMSwzICsxLDE2IEBACisyMDE0LTA2LTI2ICBMYXN6bG8gR29tYm9zICA8bC5n
b21ib3NAc2Ftc3VuZy5jb20+CisKKyAgICAgICAgRGVmaW5lIFRBUkdFVF9PU19JUEhPTkUgdG8g
MCBmb3Igbm9uLWRhcndpbiBwb3J0cworICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9z
aG93X2J1Zy5jZ2k/aWQ9MTM0MzQ3CisKKyAgICAgICAgUmV2aWV3ZWQgYnkgRGFyaW4gQWRsZXIu
CisKKyAgICAgICAgQSBmb2xsb3ctdXAgdG8gcjE2OTg4MCB0byBtYWtlIGl0IGVhc2llciB0byBy
ZWFzb24gYWJvdXQKKyAgICAgICAgdGhlIGNvZGUuIFRoZSBwdXJwb3NlIG9mIHRoaXMgY2hhbmdl
IHRvIGFsbG93CisgICAgICAgICIjaWYgVEFSR0VUX09TX0lQSE9ORSIgaW4gcHVibGljIGhlYWRl
ciBmaWxlcy4KKworICAgICAgICAqIHd0Zi9QbGF0Zm9ybS5oOgorCiAyMDE0LTA2LTI1ICBHZW9m
ZnJleSBHYXJlbiAgPGdnYXJlbkBhcHBsZS5jb20+CiAKICAgICAgICAgVW5yZXZpZXdlZCwgcm9s
bGluZyBvdXQgcjE2Njg3Ni4KSW5kZXg6IFNvdXJjZS9XVEYvd3RmL1BsYXRmb3JtLmgKPT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PQotLS0gU291cmNlL1dURi93dGYvUGxhdGZvcm0uaAkocmV2aXNpb24gMTcwNDI3KQorKysg
U291cmNlL1dURi93dGYvUGxhdGZvcm0uaAkod29ya2luZyBjb3B5KQpAQCAtMTA0NSw3ICsxMDQ1
LDkgQEAKICNkZWZpbmUgRU5BQkxFX09QRU5UWVBFX01BVEggMQogI2VuZGlmCiAKLSNpZiBQTEFU
Rk9STShFRkwpIHx8IFBMQVRGT1JNKEdUSykKKy8qIFNldCBUQVJHRVRfT1NfSVBIT05FIHRvIDAg
YnkgZGVmYXVsdCB0byBhbGxvdyB1c2luZyBpdCBhcyBhIGd1YXJkIAorICogaW4gY3Jvc3MtcGxh
dGZvcm0gdGhlIHNhbWUgd2F5IGFzIGl0IGlzIHVzZWQgaW4gT1MoREFSV0lOKSBjb2RlLiAqLyAK
KyNpZiAhZGVmaW5lZChUQVJHRVRfT1NfSVBIT05FKSAmJiAhT1MoREFSV0lOKQogI2RlZmluZSBU
QVJHRVRfT1NfSVBIT05FIDAKICNlbmRpZgogCg==
</data>

          </attachment>
      

    </bug>

</bugzilla>