Re: [webkit-dev] Questions of WebKit Architecture

2008-03-25 Thread Joonwon Yi
Hi, Seokbae.

I think there is no official graphic engine.
Moreover there is no generic WebKit or general porting layer. There are only 
real ports for specific platform/environments.

Your choice of a port as the base depends the characteristics of your platform, 
I think. (Do you mean some kind of Linux? or WIPI? ^^)

For API documents, you can see official documentation of Apple. It's very 
helpful. Of course you can see relavant sources of each ports.

- joonwon -

  - Original Message - 
  From: 손석배[단말개발담당] 
  To: Alp Toker 
  Cc: webkit-dev@lists.webkit.org 
  Sent: Wednesday, March 26, 2008 1:31 PM
  Subject: Re: [webkit-dev] Questions of WebKit Architecture


  Thank you for your answer.
  It is really helpful for me. Thank you.

  Well, however, I still have some questions on the role of Cairo backend.

  As you described, Cairo is the official graphic backend of WebKit/GTK+.
  That means, without Cairo backend, you cannot make WebKit/GTK+ port as it is, 
if I understand it corrrectly.
  (Well, if you change the porting part, you might be able to, though)

  Well, however, I still have some questions on the role of Cairo backend in 
generic WebKit.
  Can we call cairo is the official graphic engine for the generic WebKit 
  or is it just one of the options of graphic backends for WebKit?

  I mean, let's say I want to port generic WebKit on a platform.
  (A platform is not well-known platform such as windwos, linux or Mac OS. 
   Let's say it's a proprietary, but has enough features for WebKit porting.)
  Then, if I port Cairo on that platform as well, does it mean I don't need to 
change WebKit code(or chage very little) of rendering part?

  In addtion to that, I have 2 more, irrelavant questions with Cairo.
  # Question 1
  If I port WebKit on a proprietary platform, which port would you recommand 
for me to choose as a base?

  # Question 2
  Are there any WebKit APIs documents available?
  Official one will be better, but seems like there's no officail documents on 
APIs, so if you can share your own notes, that would be very much appreciated.

  (Well, I think \WebKit has APIs.
  For example, Files in \WebKit\win\Interfaces are APIs for Windows port and 
\WebKit\mac has APIs for Mac OS, it seems.
  But, the numbers of APIs for each platform are not the same. And some of them 
look like internal APIs, not public APIs.
  Am I right?)

  Thank you for reading and answers in advance!!

  Seokbae

  -원본 메시지-
  보낸 사람: Alp Toker [EMAIL PROTECTED]
  보낸 날짜: 2008-03-25 오후 10:18:01
  받는 사람: 손석배[단말개발담당] [EMAIL PROTECTED]
  참조: webkit-dev@lists.webkit.org webkit-dev@lists.webkit.org
  제목: Re: Questions of WebKit Architecture


  손석배[단말개발담당] wrote:
   Dear All,
   
   I've recently started analyzing WebKit for porting it onto a proprietry
   embedded platform.
   I've tried to find documents about WebKit for about a week, but failed.
   
   Would anyone please let me know where I can find the document about
   WebKit architecture?
   Especially, the picture of WebKit architure would be very helpful, if
   there is any.
   And in-depth analysis of WebCore (directory structures, components,
   etc.) would be very helpful too.

  There isn't really much high-level documentation available.

  There are some basic diagrams of WebKit overall layout and WebKit/GTK+
  class design in these slides:


  http://www.atoker.com/blog/2008/02/26/developing-hybrid-web-gtk-applications/

   
   Thank you in advance!!
   
   Seokbae
   
   * P.S. BTW, Is cairo engine included in the WebKit? It doesn't look like
   so, but someone told me it is so and I'm confused..
   (Well, GTK+ port assumes cairo engine, but still it is not included in
   the WebKit and cairo's not the official graphic engine for WebKit
   expcept for SVG, isn't it?)

  The Cairo graphics backend used for all rendering including HTML
  content, SVG and Canvas in the GTK+ port is in WebKit SVN. We have a
  summary of the code modules (complete with links to the sources) in the
  wiki:

http://trac.webkit.org/projects/webkit/wiki/HackingGtk

  The actual Cairo library isn't bundled with WebKit. You can download and
  install this separately from http://www.cairographics.org/

  You need Cairo 1.4 or newer and should ideally use the latest release.

  Cheers

  --
  http://www.nuanti.com
  the browser experts





--


  ___
  webkit-dev mailing list
  webkit-dev@lists.webkit.org
  http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] Cairo WebKit with Windows XP

2008-02-21 Thread Joonwon Yi
Hi, Brent.

I'm trying to build on Windows now. I applied your patch 17442.
I failed to build Project WebKit because CGContextRef could not be converted to 
PlatformGraphicsContext * in the following files.

..\WebDragClient.cpp(235) : error C2664: 
'WebCore::GraphicsContext::GraphicsContext(PlatformGraphicsContext *)' :
..\WebFrame.cpp(2696) : error C2664: 'CGContextSaveGState' :

Did I miss something?
Thanks in advance.

- joonwon -


- Original Message - 
From: Brent Fulgham [EMAIL PROTECTED]
To: WebKit Development webkit-dev@lists.webkit.org
Sent: Thursday, February 21, 2008 1:26 PM
Subject: [webkit-dev] Cairo WebKit with Windows XP


 To all aspiring Windows hackers:
 
 The Font support patch (http://bugs.webkit.org/show_bug.cgi?id=17336)  
 and the WinLauncher/Spinneret patch 
 (http://bugs.webkit.org/show_bug.cgi?id=17428 
 ) have landed in the trunk, which should simplify the process of  
 getting a Cairo Windows build up and running.
 
 There is an important pending patch 
 (http://bugs.webkit.org/show_bug.cgi?id=17442 
 ) which corrects some bugs I created when mixing and matching the  
 original Cairo and new CoreGraphics internal GraphicsContext  
 representations.  This basically prevents some graphic image effects  
 (rotation of images, etc.) from working properly.
 
 I have another set of patches that need to be landed as well that re- 
 enable the Windows Theme support and provides a rudimentary scroll  
 bar.  I hope to get that posted today or tomorrow.
 
 Enjoy!
 
 -Brent
 
 
 ___
 webkit-dev mailing list
 webkit-dev@lists.webkit.org
 http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] Additional Windows Patches

2008-02-21 Thread Joonwon Yi
Hi, Brent.

When I'm applying your patch 17483, my Tortoise Merge showed the following 
error.
An unknown line type was found in line 726 !

Line 471~475: There are some sentences without leading // in the middle of 
sources, which seem to be wrong.

Could you upload another patch?

- joonwon -


  - Original Message - 
  From: Brent Fulgham 
  To: Webkit Development List 
  Sent: Friday, February 22, 2008 10:46 AM
  Subject: [webkit-dev] Additional Windows Patches


  I've just opened two new Bugs:

  http://bugs.webkit.org/show_bug.cgi?id=17484; -- Changes to WebKit to permit 
building with Cairo.
  http://bugs.webkit.org/show_bug.cgi?id=17483; -- Native Windows scrollbars 
for WebKit.

  I believe that with these two patches you should be able to build the same 
WebKit instance I am running.

  Please let me know if you have any problems.

  Thanks,

  -Brent




--


  ___
  webkit-dev mailing list
  webkit-dev@lists.webkit.org
  http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


[webkit-dev] build problem on Windows

2008-01-07 Thread Joonwon Yi
Hi, all.

I'm trying to build the webkit on Windows(XP) and I have trouble.

1. First, I tried to follow instructions on the website. 
After installing Visual Studio 2005, (re-installing)Cygwin and QuickTime SDK, I 
checked out the code. Until now fine. But after that I can't build, because I 
don't have qmake.
With qmake (which I got after building the whole Qt), it is said that 
WebKit.pro file cannot be found.
--
$ WebKit/WebKitTools/Scripts/build-webkit
Subroutine main::tmpfile redefined at /usr/lib/perl5/5.8/Exporter.pm line 65.
 at /usr/lib/perl5/5.8/cygwin/POSIX.pm line 19
Subroutine main::tmpnam redefined at /usr/lib/perl5/5.8/Exporter.pm line 65.
 at /usr/lib/perl5/5.8/cygwin/POSIX.pm line 19
Checking mod-date of WebKitSupportLibrary.zip...
Current WebKitSupportLibrary is up to date
Calling 'qmake CONFIG+=qt-port -r OUTPUT_DIR=/cygdrive/d/WebKit/WebKitBuild/Debu
g /cygdrive/d/WebKit/WebKit.pro CONFIG-=release CONFIG+=debug' in /cygdrive/d/We
bKit/WebKitBuild/Debug ...

Cannot find file: \cygdrive\d\WebKit\WebKit.pro.
Failed to setup build environment using qmake!
--

2. I also tried to find something useful information on wiki. 
http://trac.webkit.org/projects/webkit/wiki/BuildingQtOnWindows
After installing (building)Qt 4.3.3, Bison/Gperf/Flex/LibIconv, ActivePerl, I 
tried to build QtWebKit.
--
D:\WebKitperl WebKitTools\Scripts\build-webkit
...
..\..\..\JavaScriptCore\pcre\pcre_internal.h(119) : error C2065: '__FUNCTION__'
: undeclared identifier
..\..\..\JavaScriptCore\pcre\pcre_internal.h(119) : error C2065: 'uintptr_t' : u
ndeclared identifier
..\..\..\JavaScriptCore\pcre\pcre_internal.h(119) : error C2143: syntax error :
missing ';' before 'constant'
...
NMAKE : fatal error U1077: 'C:\Program Files\Microsoft Visual Studio\VC98\bin\c
l.exe' : return code '0x2'
Stop.
--

3. This page doesn't seem to help me.
http://trac.webkit.org/projects/webkit/wiki/BuildingOnWindows

What should I do to build the webkit on Windows?

Thanks in advance.

- joonwon -

___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev