10 views
Skip to first unread message

hap 497

unread,
Feb 25, 2010, 1:42:34 AM2/25/10
to Chromium-dev
Hi,

In the third_party directory, it has a class WebPageSerializer
third_party/WebKit/WebKit/chromium/public/WebPageSerializer.h

I think it can serialize a DOM to a file. Can you please tell me if I
can use it in Webkit project?
Or that API is specified for chromium's Webkit?

Darin Fisher

unread,
Feb 25, 2010, 3:05:43 AM2/25/10
to hap...@gmail.com, Chromium-dev
That class is part of our WebKit API.  It is used to save a web page to disk.  This involves serializing the DOM for each frame and identifying the subresources to save.  I don't understand your question about using it in the WebKit project.

WebPageSerializer is part of WebKit:

--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
   http://groups.google.com/a/chromium.org/group/chromium-dev

hap 497

unread,
Feb 25, 2010, 12:55:12 PM2/25/10
to Darin Fisher, Chromium-dev
Thanks.

I mean if i am using gtk port of webkit (I get the source form
www.webkit.org instead or www.chromium.org), Can I use the
WebPageSerializer (which is under chromium/public)?

And the serialize() method takes a WebFrame* frame, I think that is a
chromium specified class, not a Webkit class. So how can I get a
pointer to WebFrame if I am using Webkit?

Darin Fisher

unread,
Feb 25, 2010, 1:51:40 PM2/25/10
to hap 497, Chromium-dev
You would probably want to switch over to using the Chromium Linux port of WebKit.  You can build our port using the familiar update-webkit and build-webkit commands, like this:

$ update-webkit --chromium
$ build-webkit --chromium

-Darin

hap 497

unread,
Feb 25, 2010, 2:40:43 PM2/25/10
to Darin Fisher, Chromium-dev
I have checked out my webkit repository using
git clone git://git.webkit.org/WebKit.git WebKit

I was able to compile it using './autogen.sh --enable-debug && make'.

And I have followed your advice. I did
$ make clean
$ make distclean
But I get this error:
$ ./WebKitTools/Scripts/update-webkit --chromium
Updating OpenSource
git: 'svn' is not a git-command. See 'git --help'.

Did you mean one of these?
fsck
show
Died at ./WebKitTools/Scripts/update-webkit line 119.

And when I just try to compile it, I get

$ ./WebKitTools/Scripts/build-webkit --chromium
make -j4 BUILDTYPE=Release all
make: *** No rule to make target `all'. Stop.

Adam Langley

unread,
Feb 25, 2010, 2:56:48 PM2/25/10
to hap...@gmail.com, Darin Fisher, Chromium-dev
On Thu, Feb 25, 2010 at 2:40 PM, hap 497 <hap...@gmail.com> wrote:
> git: 'svn' is not a git-command. See 'git --help'.

(resend from the correct address):

That's an easy one at least: you need to install git-svn.


AGL

hap 497

unread,
Feb 25, 2010, 11:43:51 PM2/25/10
to Darin Fisher, Chromium-dev
Thank you. Can you please tell me after the build, how can I run it?
I look for TestShell (I think that is the name for test program
chromium project) or GtkLauncher (I think that is test program for
Webkit project), I can't find anything.

Darin Fisher

unread,
Feb 26, 2010, 12:49:46 AM2/26/10
to hap 497, Chromium-dev
The only thing you can run right now is webkit_unit_tests.

-Darin
Reply all
Reply to author
Forward
0 new messages