Bug 26620 - Haiku WebKit port
Summary: Haiku WebKit port
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: All Other
: P2 Enhancement
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-22 12:30 PDT by Maxime Simon
Modified: 2009-08-12 15:17 PDT (History)
5 users (show)

See Also:


Attachments
Modifications on WebKit source code to allow Haiku port. (24.25 KB, patch)
2009-06-22 12:33 PDT, Maxime Simon
no flags Details | Formatted Diff | Diff
Haiku-specific folders (WebCore/platform/haiku etc...) (deleted)
2009-06-22 12:36 PDT, Maxime Simon
no flags Details
Modifications on WebKit source code to allow Haiku port. (including ChangeLogs) (26.87 KB, patch)
2009-06-22 13:01 PDT, Maxime Simon
eric: review-
Details | Formatted Diff | Diff
Haiku-specific folders (WebCore/platform/haiku etc...) (deleted)
2009-06-24 13:16 PDT, Maxime Simon
no flags Details
Haiku-specific folders (WebCore/platform/haiku etc...) (deleted)
2009-06-24 14:15 PDT, Maxime Simon
no flags Details
Modifications on WebKit source code to allow Haiku port. (including ChangeLogs) (28.21 KB, patch)
2009-06-25 08:41 PDT, Maxime Simon
abarth: review-
Details | Formatted Diff | Diff
Haiku-specific folders (WebCore/platform/haiku etc...) (365.38 KB, patch)
2009-06-25 08:43 PDT, Maxime Simon
manyoso: review-
Details | Formatted Diff | Diff
Patch to add Haiku-specific files for JavaScriptCore. (3.04 KB, patch)
2009-06-26 12:33 PDT, Maxime Simon
no flags Details | Formatted Diff | Diff
Patch to add Haiku-specific files for WebCore. (378.94 KB, patch)
2009-06-26 12:33 PDT, Maxime Simon
eric: review-
Details | Formatted Diff | Diff
Patch to add Haiku-specific files for JavaScriptCore. (3.17 KB, patch)
2009-06-30 04:22 PDT, Maxime Simon
no flags Details | Formatted Diff | Diff
Patch to add Haiku-specific files for WebCore/platform/graphics/. (37.08 KB, patch)
2009-06-30 04:50 PDT, Maxime Simon
no flags Details | Formatted Diff | Diff
Patch to add Haiku-specific files for WebCore/platform/image-decoders/. (5.46 KB, patch)
2009-06-30 04:58 PDT, Maxime Simon
eric: review-
Details | Formatted Diff | Diff
Patch to add Haiku-specific files for WebCore/platform/text/. (4.70 KB, patch)
2009-06-30 05:02 PDT, Maxime Simon
eric: review-
Details | Formatted Diff | Diff
Patch to add Haiku-specific files for WebCore/platform/. (175.41 KB, patch)
2009-06-30 06:00 PDT, Maxime Simon
eric: review-
Details | Formatted Diff | Diff
Patch to add WebCore support. (100.64 KB, patch)
2009-06-30 06:06 PDT, Maxime Simon
eric: review-
Details | Formatted Diff | Diff
Patch to add Haiku-specific files for WebCore/bindings/js/. (3.15 KB, patch)
2009-06-30 09:32 PDT, Maxime Simon
eric: review-
Details | Formatted Diff | Diff
Patch to add Haiku-specific files for WebCore/editing/. (3.00 KB, patch)
2009-06-30 09:36 PDT, Maxime Simon
eric: review-
Details | Formatted Diff | Diff
Patch to add Haiku-specific files for WebCore/page/. (11.87 KB, patch)
2009-06-30 09:42 PDT, Maxime Simon
eric: review-
Details | Formatted Diff | Diff
Patch to add Haiku-specific files for WebCore/page/. (11.87 KB, patch)
2009-06-30 10:04 PDT, Maxime Simon
no flags Details | Formatted Diff | Diff
Patch to add Haiku-specific files for WebCore/platform/graphics/. (85.59 KB, patch)
2009-06-30 10:17 PDT, Maxime Simon
eric: review-
Details | Formatted Diff | Diff
Modifications on WebKit source code to allow Haiku port. (27.41 KB, patch)
2009-07-17 00:14 PDT, Maxime Simon
oliver: review-
Details | Formatted Diff | Diff
Modifications on WebKit source code to allow Haiku port. (27.07 KB, patch)
2009-07-19 05:39 PDT, Maxime Simon
eric: review+
abarth: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Maxime Simon 2009-06-22 12:30:51 PDT
Hi,

Ryan Leavengood previously did a port of WebKit to Haiku. (it was in 2007.)
As part of my Google Summer of Code I have to update this port. And this is it.
I tried to observe a maximum the procedure described in the "Contributing code" page.
Comment 1 Maxime Simon 2009-06-22 12:33:53 PDT
Created attachment 31665 [details]
Modifications on WebKit source code to allow Haiku port.
Comment 2 Maxime Simon 2009-06-22 12:36:56 PDT
Created attachment 31667 [details]
Haiku-specific folders (WebCore/platform/haiku etc...)
Comment 3 Maxime Simon 2009-06-22 13:01:49 PDT
Created attachment 31669 [details]
Modifications on WebKit source code to allow Haiku port. (including ChangeLogs)
Comment 4 Eric Seidel (no email) 2009-06-23 17:46:01 PDT
Who knew?  http://www.haiku-os.org/
Comment 5 Eric Seidel (no email) 2009-06-23 17:53:09 PDT
Comment on attachment 31669 [details]
Modifications on WebKit source code to allow Haiku port. (including ChangeLogs)

We should have a guidelines for starting a new port document.  And one of those guidelines should be about setting up a buildbot after getting JavaScriptCore compiling. ;)

Tab:
+		PlatformMenuDescription m_platformDescription;

Tab:
+	typedef BCursor* PlatformCursorHandle;

I believe the webkit style is FIXME:
+    // RJL TODO: May not need this, what is below may be fine

I'm surprised HAIKU needs its own notImplemented()... maybe all ports have their own...

Are you really intending to copy the BPoint here?
+        PlatformMouseEvent(BPoint where, BPoint screenPoint);

Tab:
+	BMenu* m_menu;

Tab:
+		pattern	getHaikuStrokeStyle();

I think this is OK.  It's sad to add all these #ifdefs... but that's the state of our porting infrastructure.

I would strongly encourage you to introduce yourself on webkit-dev along with your intent.

It's not very interesting to have someone come and get WebKit building on Haiku only to disappear 2 months later when GSoC is over.  Not saying you would, but that's a possibility obviously. :)

It's important for new ports to have buildbots as well as maintainers active in the community.  I think starting with some introductions on webkit-dev and appearing in #webkit (if you aren't already) will help alleviate fears of port-abandonment.

r- for the nits, and because not having ever met you or heard of Haiku before, I'm not sure I won't have to rip out this code 2 weeks from now when Haiku disappears. ;)  Lets talk on webkit-dev or #webkit.
Comment 6 Eric Seidel (no email) 2009-06-23 17:53:53 PDT
Welcome to WebKit, btw.  The patch overall looks good.
Comment 7 Ryan Leavengood 2009-06-23 18:56:17 PDT
(In reply to comment #5)
> 
> I would strongly encourage you to introduce yourself on webkit-dev along with
> your intent.

I agree that would be a good thing for Maxime to do, and I will pop in there myself too.
 
> It's not very interesting to have someone come and get WebKit building on Haiku
> only to disappear 2 months later when GSoC is over.  Not saying you would, but
> that's a possibility obviously. :)

Hopefully Maxime won't disappear, but I will be sure to stick around. As Maxime said most of this code is from my 2007 port of WebKit, and once it is in the WebKit tree myself and I am sure others from the Haiku community will keep it updated.

> It's important for new ports to have buildbots as well as maintainers active in
> the community.  I think starting with some introductions on webkit-dev and
> appearing in #webkit (if you aren't already) will help alleviate fears of
> port-abandonment.

I agree. I'm not sure if it helps but I had a few general patches accepted before when I did the first port. I will probably get more involved in the WebKit community as this project moves along.

> r- for the nits, and because not having ever met you or heard of Haiku before,
> I'm not sure I won't have to rip out this code 2 weeks from now when Haiku
> disappears. ;)  Lets talk on webkit-dev or #webkit.

I am not sure if you remember me, but I can vouch for Maxime. And don't worry, Haiku won't be disappearing. It has been around since 2001 (which I think is longer than WebKit) and is very close to an alpha release.

Also thanks a lot for making such a great web engine and for at least considering alternative ports like Haiku. Fixing those nits and introducing ourselves on email should hopefully get this committed :)

Regards,
Ryan Leavengood
Comment 8 Maxime Simon 2009-06-24 03:38:35 PDT
Hi Eric,

Thanks for the review. ( Even if it is a r-, at least someone is interested. :)

I agree with you, a guideline for new ports should be good.

I easily corrected the “tabs issues”.
As for the `PlatformMouseEvent(BPoint where, BPoint screenPoint);' method,
in fact it isn't necessary. :)
Regarding to the `notImplemented()', I'm currently testing our port without using it.
( For now only Haiku specifies a personalized `notImplemented()' method. )

When the nits will be fixed, should I supply a new patch, or should I edit the existing one?
I tried but didn't succeed to edit the current one.

Regards,
Maxime
Comment 9 Maxime Simon 2009-06-24 13:16:18 PDT
Created attachment 31804 [details]
Haiku-specific folders (WebCore/platform/haiku etc...)

I tried to make these files as compliant as possible with the WebKit coding guideline.
Comment 10 Adam Treat 2009-06-24 13:52:47 PDT
Hint: in order to use the cross-platform NotImplemented.h header file you need to get a 'LoggingHaiku.cpp' file that works much like the other ports versions.  Also, you might need to look at Assertions.cpp and change the various 'vsprintf' methods.

Also, you should get used to 'r-' and not take it as discouraging.  Rather, be encouraged that people are honestly considering your patches!

Good Luck,
Adam
Comment 11 Maxime Simon 2009-06-24 14:10:50 PDT
(In reply to comment #10)
> Hint: in order to use the cross-platform NotImplemented.h header file you need
> to get a 'LoggingHaiku.cpp' file that works much like the other ports versions.
>  Also, you might need to look at Assertions.cpp and change the various
> 'vsprintf' methods.

Indeed, I saw that when I examined how other ports handle this. Thanks.

> Also, you should get used to 'r-' and not take it as discouraging.  Rather, be
> encouraged that people are honestly considering your patches!

There is no problem, I'm not discouraged by the 'r-'. :)

I'm sorry I will mark as obsolete the attachments and add new one.
That's because I got an issue, there are some unwanted files in the archive I submitted:
Some files that I didn't archived but which are here when untaring.

Regards,
Maxime
Comment 12 Maxime Simon 2009-06-24 14:13:29 PDT
Comment on attachment 31804 [details]
Haiku-specific folders (WebCore/platform/haiku etc...)

This archive contains some unwanted files. (tar issue?)
Comment 13 Maxime Simon 2009-06-24 14:15:34 PDT
Created attachment 31812 [details]
Haiku-specific folders (WebCore/platform/haiku etc...)

As replacement to the previous archive which contained undesirable files.
Comment 14 Maxime Simon 2009-06-24 14:21:01 PDT
Comment on attachment 31669 [details]
Modifications on WebKit source code to allow Haiku port. (including ChangeLogs)

For the corrections I made on this patch, should I provide a new one as attachment or should I edit this one as comment?
I would be prefer to attache a new one.
Comment 15 Adam Treat 2009-06-25 06:20:50 PDT
For corrections to a patch you should generally obsolete old ones and add new ones.

Now, for your 'Haiku-specific folders' patch, can you kindly provide the mimetype as I am unable to view or see what this patch pertains to, much less review it.

Thanks!
Comment 16 Adam Treat 2009-06-25 06:22:22 PDT
Also, you should have no need to attach a tar that just creates folders.  The folders will be created by new files in a regular patch file.
Comment 17 Maxime Simon 2009-06-25 08:34:31 PDT
(In reply to comment #16)
> Also, you should have no need to attach a tar that just creates folders.  The
> folders will be created by new files in a regular patch file.
> 

Oh, I'm sorry. In fact I read this in the page about contributing:
“New files and layout tests must be added to Subversion or else they won't be included in your patch.”
That's why I attached a tar. But there is not problem to replace it by a patch.
Comment 18 Maxime Simon 2009-06-25 08:41:26 PDT
Created attachment 31858 [details]
Modifications on WebKit source code to allow Haiku port. (including ChangeLogs)
Comment 19 Maxime Simon 2009-06-25 08:43:25 PDT
Created attachment 31859 [details]
Haiku-specific folders (WebCore/platform/haiku etc...)
Comment 20 Maxime Simon 2009-06-26 12:33:20 PDT
Created attachment 31941 [details]
Patch to add Haiku-specific files for JavaScriptCore.
Comment 21 Maxime Simon 2009-06-26 12:33:59 PDT
Created attachment 31942 [details]
Patch to add Haiku-specific files for WebCore.
Comment 22 Eric Seidel (no email) 2009-06-29 16:12:31 PDT
Comment on attachment 31942 [details]
Patch to add Haiku-specific files for WebCore.

This patch is too large to review.

There are also numerous style issues:
+    if (pcData->font() == NULL)
+    {
Comment 23 Ryan Leavengood 2009-06-29 22:49:21 PDT
Hi Eric,

Any suggestions for the optimal or "easiest to review" method for providing the patches needed to add this port?

As you probably know each port has quite a few files it needs, and each part of the code has a certain amount of dependencies on other related parts.

Would breaking the WebCore patch into one directory per patch help?
Comment 24 Eric Seidel (no email) 2009-06-30 02:43:41 PDT
Comment on attachment 31858 [details]
Modifications on WebKit source code to allow Haiku port. (including ChangeLogs)

Looks fine to me.

 39 #include "stdint.h"

probably meant to be <stdint.h> no?
Comment 25 Eric Seidel (no email) 2009-06-30 02:50:37 PDT
Comment on attachment 31941 [details]
Patch to add Haiku-specific files for JavaScriptCore.

I think you likely want these to have notImplemented().  Lack of implementation will cause you future grief here.  At least according to a brief conversation with Maciej in #webkit.
Comment 26 Eric Seidel (no email) 2009-06-30 02:51:10 PDT
Comment on attachment 31941 [details]
Patch to add Haiku-specific files for JavaScriptCore.

Your ChangeLogs should also generally have a link to the bug.
Comment 27 Maxime Simon 2009-06-30 03:14:26 PDT
(In reply to comment #24)
> (From update of attachment 31858 [details] [review])
> Looks fine to me.
> 
>  39 #include "stdint.h"
> 
> probably meant to be <stdint.h> no?
> 

Indeed, it should be <stdint.h>. Strangely it works as it.
Comment 28 Maxime Simon 2009-06-30 04:22:15 PDT
Created attachment 32049 [details]
Patch to add Haiku-specific files for JavaScriptCore.
Comment 29 Maxime Simon 2009-06-30 04:50:27 PDT
Created attachment 32051 [details]
Patch to add Haiku-specific files for WebCore/platform/graphics/.
Comment 30 Maxime Simon 2009-06-30 04:58:44 PDT
Created attachment 32053 [details]
Patch to add Haiku-specific files for WebCore/platform/image-decoders/.
Comment 31 Maxime Simon 2009-06-30 05:02:17 PDT
Created attachment 32054 [details]
Patch to add Haiku-specific files for WebCore/platform/text/.
Comment 32 Maxime Simon 2009-06-30 06:00:49 PDT
Created attachment 32058 [details]
Patch to add Haiku-specific files for WebCore/platform/.

This patch would make obsolete some changes made in WebCore/platform/Widget.h.
In fact, we don't need some methods such as haikuWidget() (as the Widget class is much more flexible than when Ryan did the first port).
Comment 33 Maxime Simon 2009-06-30 06:06:02 PDT
Created attachment 32060 [details]
Patch to add WebCore support.
Comment 34 Maxime Simon 2009-06-30 09:32:19 PDT
Created attachment 32069 [details]
Patch to add Haiku-specific files for WebCore/bindings/js/.
Comment 35 Maxime Simon 2009-06-30 09:36:47 PDT
Created attachment 32071 [details]
Patch to add Haiku-specific files for WebCore/editing/.
Comment 36 Maxime Simon 2009-06-30 09:42:15 PDT
Created attachment 32073 [details]
Patch to add Haiku-specific files for WebCore/page/.
Comment 37 Maxime Simon 2009-06-30 10:04:00 PDT
Created attachment 32075 [details]
Patch to add Haiku-specific files for WebCore/page/.
Comment 38 Maxime Simon 2009-06-30 10:04:30 PDT
Comment on attachment 32075 [details]
Patch to add Haiku-specific files for WebCore/page/.

Double submit
Comment 39 Maxime Simon 2009-06-30 10:05:14 PDT
Comment on attachment 32051 [details]
Patch to add Haiku-specific files for WebCore/platform/graphics/.

Missed some files.
Comment 40 Maxime Simon 2009-06-30 10:17:01 PDT
Created attachment 32076 [details]
Patch to add Haiku-specific files for WebCore/platform/graphics/.
Comment 41 Eric Seidel (no email) 2009-07-02 12:21:33 PDT
Comment on attachment 32053 [details]
Patch to add Haiku-specific files for WebCore/platform/image-decoders/.

Looks OK, but the ChangeLog doesn't need:

WARNING: NO TEST CASES ADDED OR CHANGED
Comment 42 Eric Seidel (no email) 2009-07-02 14:40:13 PDT
Comment on attachment 32054 [details]
Patch to add Haiku-specific files for WebCore/platform/text/.

Seems you might want a notImplemnted() at:
+const char* currentTextBreakLocaleID()

Again, don't need:
+        WARNING: NO TEST CASES ADDED OR CHANGED

Since someone would have to manually fix your ChangeLogs, gonna r- this.
Comment 43 Eric Seidel (no email) 2009-07-02 14:40:35 PDT
Comment on attachment 32058 [details]
Patch to add Haiku-specific files for WebCore/platform/.

Too large to review.
Comment 44 Eric Seidel (no email) 2009-07-02 14:41:04 PDT
Comment on attachment 32060 [details]
Patch to add WebCore support.

Too large to review.
Comment 45 Eric Seidel (no email) 2009-07-02 14:41:39 PDT
Comment on attachment 32069 [details]
Patch to add Haiku-specific files for WebCore/bindings/js/.

 8         WARNING: NO TEST CASES ADDED OR CHANGED

is not needed.  Otherwise this looks great.  r- because someone would have to manually edit your ChangeLogs when landing.
Comment 46 Eric Seidel (no email) 2009-07-02 14:42:45 PDT
Comment on attachment 32071 [details]
Patch to add Haiku-specific files for WebCore/editing/.

Looks fine.  Where is the implementation of ClipboardHaiku?

R- for someone having to edit your ChangeLogs when landing:
+        WARNING: NO TEST CASES ADDED OR CHANGED

(If you were a committer I would just r+ all these, but as is, it's best if you fix them first so they can be landed automatically by our scripts.)
Comment 47 Eric Seidel (no email) 2009-07-02 14:44:31 PDT
Comment on attachment 32073 [details]
Patch to add Haiku-specific files for WebCore/page/.

Please don't include commented out code:
 //#include "Frame.h"
 32 //#include "FrameView.h"
 33 //#include "Page.h"
 
 108     //notImplemented();


Looks OK otherwise.  Please remove extra comments and update changeLog and re-post.  I would have r+'d this if you were a committer.

 8         WARNING: NO TEST CASES ADDED OR CHANGED
Comment 48 Maxime Simon 2009-07-02 14:48:23 PDT
(In reply to comment #45)
> (From update of attachment 32069 [details] [review])
>  8         WARNING: NO TEST CASES ADDED OR CHANGED
> 
> is not needed.  Otherwise this looks great.  r- because someone would have to
> manually edit your ChangeLogs when landing.
> 

In fact, 'prepare-ChangeLog' puts this warning on the ChangeLogs generated for WebCore.
But there is no problems to change this.
Comment 49 Eric Seidel (no email) 2009-07-02 14:49:50 PDT
Comment on attachment 32076 [details]
Patch to add Haiku-specific files for WebCore/platform/graphics/.

What is a styleable port?
 45     // FIXME: subtract 1 from height and width? This was not done in Syllable port

I don't think you meant to leaven this in:
 52     printf("FontCache::getFontDataForCharacters\n");    

WebKit generally uses 0 for NULL in C++ code:
 72     pcDefaultFont->GetFamilyAndStyle(&family, NULL);

Please use c++ style casts:
 76     //return new FontPlatformData(fontDescription, (BFont*)pcDefaultFont);

We don't commit commented out code:
 76     //return new FontPlatformData(fontDescription, (BFont*)pcDefaultFont);

Style:
83     if (!pcData->font())
 84     {

You should consider using an OwnPtr here:
 82     FontPlatformData* pcData = new FontPlatformData(fontDescription, family);

Style:
 51 int char_unicode_to_utf8(unsigned short glyph, char* out) {

Tabs will cause the commit to fail:
54 	if (glyph < 0x0080)
 55 		out[i++] = (char)glyph;

Indent:
{
 74 	notImplemented();
 75 	return true;
 76 }

Why?
 43 int char_unicode_to_utf8(unsigned short glyph, char* out); // implemented in FontDataHaiku.cpp

Please use C++ style casts:
 57     BView* view = (BView*)graphicsContext->platformContext();

Double converting to float:
 float Font::floatWidthForComplexText(const TextRun& run, HashSet<const SimpleFontData*>* fallbackFonts) const
 83 {
 84     notImplemented();
 85     return 3.0;

Style:
59     if (f.m_font)
 60     {
 61         m_font = new BFont(f.m_font);
 62     }

Extra spaces and bad variable name:
 71     font_family	fam;

STyle:
 74     for(int i = 0; i < count_font_families(); i++) {


Please break this up into smaller patches.

Please do fewer patches per-bug.
Comment 50 Eric Seidel (no email) 2009-07-02 14:50:35 PDT
Comment on attachment 32053 [details]
Patch to add Haiku-specific files for WebCore/platform/image-decoders/.

Since you're not a committer this can't be landed by you. Please upload a new one with 
 8         WARNING: NO TEST CASES ADDED OR CHANGED

removed.  otherwise it looked fine.
Comment 51 Maxime Simon 2009-07-02 14:52:07 PDT
(In reply to comment #46)
> (From update of attachment 32071 [details] [review])
> Looks fine.  Where is the implementation of ClipboardHaiku?
> 
> R- for someone having to edit your ChangeLogs when landing:
> +        WARNING: NO TEST CASES ADDED OR CHANGED
> 
> (If you were a committer I would just r+ all these, but as is, it's best if you
> fix them first so they can be landed automatically by our scripts.)
> 

The implementation of ClipboardHaiku is in WebCore/platform/haiku/.
Should I include it in this patch?
Comment 52 Eric Seidel (no email) 2009-07-02 17:50:50 PDT
(In reply to comment #51)

> The implementation of ClipboardHaiku is in WebCore/platform/haiku/.
> Should I include it in this patch?

It's OK for it to be in a separate patch, that's fine.
Comment 53 Adam Barth 2009-07-16 23:29:21 PDT
Comment on attachment 31858 [details]
Modifications on WebKit source code to allow Haiku port. (including ChangeLogs)

I'm sorry, but this patch no longer applies to top-of-tree.  DateMath.cpp has changed a bit and it's not obvious to me how to merge the patch.
Comment 54 Adam Barth 2009-07-16 23:30:54 PDT
Committing to http://svn.webkit.org/repository/webkit/trunk ...
	M	JavaScriptCore/ChangeLog
	A	JavaScriptCore/wtf/haiku/MainThreadHaiku.cpp
Committed r46018
	A	JavaScriptCore/wtf/haiku/MainThreadHaiku.cpp
	M	JavaScriptCore/ChangeLog
r46018 = 9d379b1aa5f22afa8ef22b61116157d6c5e52541 (trunk)
No changes between current HEAD and refs/remotes/trunk
Resetting to the latest refs/remotes/trunk
http://trac.webkit.org/changeset/46018
Comment 55 Adam Barth 2009-07-16 23:32:35 PDT
Should still be open.
Comment 56 Adam Barth 2009-07-16 23:44:38 PDT
Comment on attachment 32049 [details]
Patch to add Haiku-specific files for JavaScriptCore.

I guess i need to clear this flag to remove this bug from the commit queue.
Comment 57 Maxime Simon 2009-07-17 00:14:55 PDT
Created attachment 32917 [details]
Modifications on WebKit source code to allow Haiku port.

Concerning the issue with DateMath.cpp, as the issue had move to another place there is no more modifications in this file.
Comment 58 Oliver Hunt 2009-07-18 17:40:58 PDT
Comment on attachment 32917 [details]
Modifications on WebKit source code to allow Haiku port.


> -#if !PLATFORM(WIN_OS) && !PLATFORM(SOLARIS) && !PLATFORM(SYMBIAN) && !COMPILER(RVCT)
> +#if !PLATFORM(WIN_OS) && !PLATFORM(SOLARIS) && !PLATFORM(SYMBIAN) && !COMPILER(RVCT) && !(HAIKU)
Should be !PLATFORM(HAIKU)

> --- a/WebCore/config.h
> +++ b/WebCore/config.h
> @@ -187,3 +187,7 @@ typedef float CGFloat;
>  #if PLATFORM(WIN) && PLATFORM(CG)
>  #define WTF_USE_SAFARI_THEME 1
>  #endif
> +
> +#if PLATFORM(HAIKU)
> +#include <stdio.h>
> +#endif
stdio.h should not be included in config.h
Comment 59 Maxime Simon 2009-07-19 05:39:46 PDT
Created attachment 33041 [details]
Modifications on WebKit source code to allow Haiku port.
Comment 60 Eric Seidel (no email) 2009-08-07 09:40:17 PDT
Comment on attachment 33041 [details]
Modifications on WebKit source code to allow Haiku port.

Looks OK.  In the future your ChangeLogs need *much* more detail as to what the Change is actually doing.  Especially one with as many pieces as this one.
Comment 61 Adam Barth 2009-08-07 17:46:06 PDT
Comment on attachment 33041 [details]
Modifications on WebKit source code to allow Haiku port.

This patch does not apply cleanly:

patching file WebCore/platform/graphics/BitmapImage.h
Hunk #1 succeeded at 45 (offset 1 line).
Hunk #2 FAILED at 165.
1 out of 2 hunks FAILED -- saving rejects to file WebCore/platform/graphics/BitmapImage.h.rej
patch -p0 "WebCore/platform/graphics/BitmapImage.h" returned 1.  Pass --force to ignore patch failures.

I have not checked whether the merge is trivial.
Comment 62 Maxime Simon 2009-08-08 05:55:51 PDT
(In reply to comment #61)
> (From update of attachment 33041 [details])
> This patch does not apply cleanly:
> 
> patching file WebCore/platform/graphics/BitmapImage.h
> Hunk #1 succeeded at 45 (offset 1 line).
> Hunk #2 FAILED at 165.
> 1 out of 2 hunks FAILED -- saving rejects to file
> WebCore/platform/graphics/BitmapImage.h.rej
> patch -p0 "WebCore/platform/graphics/BitmapImage.h" returned 1.  Pass --force
> to ignore patch failures.
> 
> I have not checked whether the merge is trivial.

If I am right, you are currently integrating WinCE in the repo.
So it may be why you get this issue. I made this patch around 3 weeks ago when the WinCE port wasn't integrated in the tree.
I will fill a new bug and post another patch.
Comment 63 Eric Seidel (no email) 2009-08-12 15:17:59 PDT
I think it's time to retire this bug.  Please post new patches on new bugs.