<?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>22250</bug_id>
          
          <creation_ts>2008-11-13 19:38:28 -0800</creation_ts>
          <short_desc>PLATFORM(CAIRO) should be defined by WIN_CAIRO define</short_desc>
          <delta_ts>2009-12-29 15:20:07 -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>New Bugs</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="Eric Seidel (no email)">eric</reporter>
          <assigned_to name="Laszlo Gombos">laszlo.gombos</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>commit-queue</cc>
    
    <cc>gustavo</cc>
    
    <cc>laszlo.gombos</cc>
    
    <cc>mjs</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>98715</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2008-11-13 19:38:28 -0800</bug_when>
    <thetext>CAIRO build should be defined by a __BUILDING_WIN_CAIRO define

Right now to specify the CAIRO build we have a &quot;blacklist&quot; of what builds are not the CAIRO build.  This is bad, IMO.  We should instead of a whitelist of what builds *are* the cairo build. :)

Right now every time someone ports WebCore they need to turn off cairo in JavaScriptCore/wtf/Platform.h or WebCore/config.h before they can turn on their own graphics system.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98726</commentid>
    <comment_count>1</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2008-11-13 20:26:51 -0800</bug_when>
    <thetext>The most recent example of this:
http://trac.webkit.org/changeset/38382</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>167068</commentid>
    <comment_count>2</comment_count>
      <attachid>43988</attachid>
    <who name="Laszlo Gombos">laszlo.gombos</who>
    <bug_when>2009-11-28 19:14:39 -0800</bug_when>
    <thetext>Created attachment 43988
proposed solution

Revision r45831 (http://trac.webkit.org/changeset/45831) - after this bug was filed - essentially introduced a solution. WIN_CAIRO is defined by the build system and can be used to detect the CAIRO build instead of the &quot;blacklist&quot; approach currently used in Platform.h.

http://trac.webkit.org/changeset/45831 also defined WTF_PLATFORM_CAIRO in all relevant config.h files (it is not needed in JavaScriptCore/config.h as JavaScriptCore is not relying on the WTF_PLATFORM_CAIRO). The solution is to simply remove this part from Platform.h.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>167073</commentid>
    <comment_count>3</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-11-29 07:07:05 -0800</bug_when>
    <thetext>I&apos;m confused.  Does WIN_CAIRO build JSC exactly the same as WIN_OS? if so, we can kill this, yes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>167084</commentid>
    <comment_count>4</comment_count>
    <who name="Laszlo Gombos">laszlo.gombos</who>
    <bug_when>2009-11-29 08:06:47 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; I&apos;m confused.  Does WIN_CAIRO build JSC exactly the same as WIN_OS? if so, we
&gt; can kill this, yes.

Eric, it looks to me that that is the case. I searched for WIN_CAIRO in JavaScriptCore and the only hit was in Platform.h.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>167090</commentid>
    <comment_count>5</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2009-11-29 12:34:56 -0800</bug_when>
    <thetext>(In reply to comment #4)
&gt; (In reply to comment #3)
&gt; &gt; I&apos;m confused.  Does WIN_CAIRO build JSC exactly the same as WIN_OS? if so, we
&gt; &gt; can kill this, yes.
&gt; 
&gt; Eric, it looks to me that that is the case. I searched for WIN_CAIRO in
&gt; JavaScriptCore and the only hit was in Platform.h.

It is not exactly the same.  It is built using the Open Source &quot;OpenCFLite&quot; version of CoreFoundation.  This has slightly different headers included by default, so there were a handful of places where includes had to be modified.

Please confirm that the WinCairo port builds after making this change before r+ this change.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>167103</commentid>
    <comment_count>6</comment_count>
    <who name="Laszlo Gombos">laszlo.gombos</who>
    <bug_when>2009-11-29 13:50:56 -0800</bug_when>
    <thetext>Brent, Thanks for looking into this. I did _not_ had a chance to confirm that the WinCairo port builds after making with the patch. I was hoping that maybe you or someone that you can recommend can help us with that. I had no intention to commit the patch before the build gets tested.

Also, just to clarify my previous - somewhat vague - statement; under the JavaScriptCore directory there is no code behind any sort of CAIRO flag (WIN_CAIRO, PLATFORM(CAIRO), etc). 

Since WebCore and DumpRenderTree already properly sets PLATFORM(CAIRO) for WinCairo port in config.h - in theory - it should be safe to remove PLATFORM(CAIRO) from under JavaScriptCore/wtf/Platform.h.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>167476</commentid>
    <comment_count>7</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2009-11-30 17:10:32 -0800</bug_when>
    <thetext>I just applied this change, and am building the WinCairo version.  I&apos;ll report back shortly!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>167580</commentid>
    <comment_count>8</comment_count>
    <who name="Laszlo Gombos">laszlo.gombos</who>
    <bug_when>2009-12-01 06:10:03 -0800</bug_when>
    <thetext>Brent, any update on this ? Thanks !</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>167648</commentid>
    <comment_count>9</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2009-12-01 09:05:03 -0800</bug_when>
    <thetext>Build worked just fine.  Please go ahead and commit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>167673</commentid>
    <comment_count>10</comment_count>
      <attachid>43988</attachid>
    <who name="Laszlo Gombos">laszlo.gombos</who>
    <bug_when>2009-12-01 10:47:41 -0800</bug_when>
    <thetext>Comment on attachment 43988
proposed solution

Thanks Brent for helping out testing this !</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>167677</commentid>
    <comment_count>11</comment_count>
      <attachid>43988</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2009-12-01 11:01:17 -0800</bug_when>
    <thetext>Comment on attachment 43988
proposed solution

Clearing flags on attachment: 43988

Committed r51551: &lt;http://trac.webkit.org/changeset/51551&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>167678</commentid>
    <comment_count>12</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2009-12-01 11:01:22 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>167717</commentid>
    <comment_count>13</comment_count>
    <who name="Gustavo Noronha (kov)">gustavo</who>
    <bug_when>2009-12-01 13:17:33 -0800</bug_when>
    <thetext>I reverted this commit because it broke GTK+ and nobody was around to fix it timely.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>167822</commentid>
    <comment_count>14</comment_count>
      <attachid>44118</attachid>
    <who name="Laszlo Gombos">laszlo.gombos</who>
    <bug_when>2009-12-01 18:14:23 -0800</bug_when>
    <thetext>Created attachment 44118
2nd try

GTK port is also using CAIRO not just the WinCairo port. Sorry for the build break.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>167825</commentid>
    <comment_count>15</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2009-12-01 18:18:18 -0800</bug_when>
    <thetext>style-queue ran check-webkit-style on attachment 44118 without any errors.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>175339</commentid>
    <comment_count>16</comment_count>
      <attachid>44118</attachid>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2009-12-28 17:36:44 -0800</bug_when>
    <thetext>Comment on attachment 44118
2nd try

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>175423</commentid>
    <comment_count>17</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-12-28 22:42:33 -0800</bug_when>
    <thetext>Attachment 44118 was posted by a committer and has review+, assigning to Laszlo Gombos for commit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>175690</commentid>
    <comment_count>18</comment_count>
      <attachid>44118</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2009-12-29 13:16:29 -0800</bug_when>
    <thetext>Comment on attachment 44118
2nd try

Rejecting patch 44118 from commit-queue.

Failed to run &quot;[&apos;WebKitTools/Scripts/run-webkit-tests&apos;, &apos;--no-launch-safari&apos;, &apos;--exit-after-n-failures=1&apos;, &apos;--quiet&apos;]&quot; exit_code: 1
Running build-dumprendertree
Running tests from /Users/eseidel/Projects/CommitQueueSVN/LayoutTests
Testing 11854 test cases.
svg/W3C-SVG-1.1/animate-elem-30-t.svg -&gt; crashed

Exiting early after 1 failures. 9849 tests run.
476.79s total testing time

9848 test cases (99%) succeeded
1 test case (&lt;1%) crashed
7 test cases (&lt;1%) had stderr output

Full output: http://webkit-commit-queue.appspot.com/results/150846</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>175696</commentid>
    <comment_count>19</comment_count>
      <attachid>44118</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-12-29 13:27:36 -0800</bug_when>
    <thetext>Comment on attachment 44118
2nd try

This failure was caused by bug 30098.  The bots were about to fail, they were just behind.  Re-queueing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>175724</commentid>
    <comment_count>20</comment_count>
      <attachid>44118</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2009-12-29 15:19:57 -0800</bug_when>
    <thetext>Comment on attachment 44118
2nd try

Clearing flags on attachment: 44118

Committed r52637: &lt;http://trac.webkit.org/changeset/52637&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>175725</commentid>
    <comment_count>21</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2009-12-29 15:20:07 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>43988</attachid>
            <date>2009-11-28 19:14:39 -0800</date>
            <delta_ts>2009-12-01 11:01:16 -0800</delta_ts>
            <desc>proposed solution</desc>
            <filename>22250.patch</filename>
            <type>text/plain</type>
            <size>1163</size>
            <attacher name="Laszlo Gombos">laszlo.gombos</attacher>
            
              <data encoding="base64">SW5kZXg6IEphdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBKYXZhU2NyaXB0
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDUxNDY1KQorKysgSmF2YVNjcmlwdENvcmUvQ2hhbmdl
TG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMTMgQEAKKzIwMDktMTEtMjggIExhc3psbyBH
b21ib3MgIDxsYXN6bG8uMS5nb21ib3NAbm9raWEuY29tPgorCisgICAgICAgIFJldmlld2VkIGJ5
IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgIFBMQVRGT1JNKENBSVJPKSBzaG91bGQgYmUgZGVm
aW5lZCBieSBXSU5fQ0FJUk8gZGVmaW5lCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3Jn
L3Nob3dfYnVnLmNnaT9pZD0yMjI1MAorCisgICAgICAgICogd3RmL1BsYXRmb3JtLmg6IFJlbW92
ZSBXVEZfUExBVEZPUk1fQ0FJUk8gYXMgaXQgaXMgCisgICAgICAgIGFscmVhZHkgZGVmaW5lIGlu
IGNvbmZpZy5oCisKIDIwMDktMTEtMjggIExhc3psbyBHb21ib3MgIDxsYXN6bG8uMS5nb21ib3NA
bm9raWEuY29tPgogCkluZGV4OiBKYXZhU2NyaXB0Q29yZS93dGYvUGxhdGZvcm0uaAo9PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09Ci0tLSBKYXZhU2NyaXB0Q29yZS93dGYvUGxhdGZvcm0uaAkocmV2aXNpb24gNTE0NjEpCisr
KyBKYXZhU2NyaXB0Q29yZS93dGYvUGxhdGZvcm0uaAkod29ya2luZyBjb3B5KQpAQCAtMjA5LDEy
ICsyMDksNiBAQAogI2VuZGlmCiAjZW5kaWYKIAotLyogTWFrZXMgUExBVEZPUk0oV0lOKSBkZWZh
dWx0IHRvIFBMQVRGT1JNKENBSVJPKSAqLwotLyogRklYTUU6IFRoaXMgc2hvdWxkIGJlIGNoYW5n
ZWQgZnJvbSBhIGJsYWNrbGlzdCB0byBhIHdoaXRlbGlzdCAqLwotI2lmICFQTEFURk9STShNQUMp
ICYmICFQTEFURk9STShRVCkgJiYgIVBMQVRGT1JNKFdYKSAmJiAhUExBVEZPUk0oQ0hST01JVU0p
ICYmICFQTEFURk9STShXSU5DRSkgJiYgIVBMQVRGT1JNKEhBSUtVKSAmJiAhUExBVEZPUk0oQU5E
Uk9JRCkKLSNkZWZpbmUgV1RGX1BMQVRGT1JNX0NBSVJPIDEKLSNlbmRpZgotCiAvKiBDUFUgKi8K
IAogLyogUExBVEZPUk0oUFBDKSAqLwo=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>44118</attachid>
            <date>2009-12-01 18:14:23 -0800</date>
            <delta_ts>2009-12-29 15:19:57 -0800</delta_ts>
            <desc>2nd try</desc>
            <filename>22250.patch</filename>
            <type>text/plain</type>
            <size>1223</size>
            <attacher name="Laszlo Gombos">laszlo.gombos</attacher>
            
              <data encoding="base64">SW5kZXg6IEphdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBKYXZhU2NyaXB0
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDUxNTY5KQorKysgSmF2YVNjcmlwdENvcmUvQ2hhbmdl
TG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMTMgQEAKKzIwMDktMTItMDEgIExhc3psbyBH
b21ib3MgIDxsYXN6bG8uMS5nb21ib3NAbm9raWEuY29tPgorCisgICAgICAgIFJldmlld2VkIGJ5
IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgIFBMQVRGT1JNKENBSVJPKSBzaG91bGQgYmUgZGVm
aW5lZCBieSBXSU5fQ0FJUk8gZGVmaW5lCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3Jn
L3Nob3dfYnVnLmNnaT9pZD0yMjI1MAorCisgICAgICAgICogd3RmL1BsYXRmb3JtLmg6IERlZmlu
ZSBXVEZfUExBVEZPUk1fQ0FJUk8gZm9yIEdUSyBwb3J0IG9ubHkKKyAgICAgICAgRm9yIHRoZSBX
aW5DYWlybyBwb3J0IFdURl9QTEFURk9STV9DQUlSTyBpcyBhbHJlYWR5IGRlZmluZWQgaW4gY29u
ZmlnLmgKKwogMjAwOS0xMi0wMSAgSmVucyBBbGZrZSAgPHNuZWpAY2hyb21pdW0ub3JnPgogCiAg
ICAgICAgIFJldmlld2VkIGJ5IERhcmluIEFkbGVyLgpJbmRleDogSmF2YVNjcmlwdENvcmUvd3Rm
L1BsYXRmb3JtLmgKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PQotLS0gSmF2YVNjcmlwdENvcmUvd3RmL1BsYXRmb3JtLmgJ
KHJldmlzaW9uIDUxNTY5KQorKysgSmF2YVNjcmlwdENvcmUvd3RmL1BsYXRmb3JtLmgJKHdvcmtp
bmcgY29weSkKQEAgLTIwNSw5ICsyMDUsNyBAQAogI2VuZGlmCiAjZW5kaWYKIAotLyogTWFrZXMg
UExBVEZPUk0oV0lOKSBkZWZhdWx0IHRvIFBMQVRGT1JNKENBSVJPKSAqLwotLyogRklYTUU6IFRo
aXMgc2hvdWxkIGJlIGNoYW5nZWQgZnJvbSBhIGJsYWNrbGlzdCB0byBhIHdoaXRlbGlzdCAqLwot
I2lmICFQTEFURk9STShNQUMpICYmICFQTEFURk9STShRVCkgJiYgIVBMQVRGT1JNKFdYKSAmJiAh
UExBVEZPUk0oQ0hST01JVU0pICYmICFQTEFURk9STShXSU5DRSkgJiYgIVBMQVRGT1JNKEhBSUtV
KSAmJiAhUExBVEZPUk0oQU5EUk9JRCkKKyNpZiBQTEFURk9STShHVEspCiAjZGVmaW5lIFdURl9Q
TEFURk9STV9DQUlSTyAxCiAjZW5kaWYKIAo=
</data>

          </attachment>
      

    </bug>

</bugzilla>