Re: [webkit-help] Has anyone used XCode 4.3.1 (4E1019) ?

2012-03-13 Thread Ariya Hidayat
> Sorry for the generic question, but has anyone used Xcode4.3.1 to build the
> latest Webkit successfully?
> I am able to open and build the Xcodeproj for Javascript, Webcore, Webkit2).
> But when I open the webkit.xcodeproj file there are no targets defined, I
> defined my own target but it fails.

You should always check first if building in command-line works or
not. See http://www.webkit.org/building/build.html.




-- 
Ariya Hidayat, http://ariya.ofilabs.com
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] JSC: Compiling on iOS

2012-01-23 Thread Ariya Hidayat
> #if PLATFORM(MAC) && COMPILER_SUPPORTS(BLOCKS)
> #include 
> #endif
>
> Where are the platform (and everything else) defined for compilation?

You should really leverage 'git grep'. A simple:

git grep 'define PLATFORM'

points me to Source/JavaScriptCore/wtf/Platform.h.



-- 
Ariya Hidayat, http://ariya.ofilabs.com
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] JSC: Compiling on iOS

2012-01-22 Thread Ariya Hidayat
> My first problem is the *.lut.h files.
> What are these, what generates them (they seem to not exist) and what are the 
> possible causes of them not existing in my duplicated build?

These are generated files, check out
Source/JavaScriptCore/create_hash_table to see the script which
generate them.

While this does not solve your problem, the easiest workaround is to
build JSC in some other platforms (Qt, Mac, ...) and the copy over the
generated files.


-- 
Ariya Hidayat, http://ariya.ofilabs.com
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] Docs on WebKit internal workflow

2011-12-30 Thread Ariya Hidayat
Feel free to contribute to
http://trac.webkit.org/wiki#GettingAroundtheWebKitSourceCode.


-- 
Ariya Hidayat, http://ariya.ofilabs.com
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] [webkit-dev] Tools/Scripts/build-webkit --gtk --debug --makeargs="-j1" taking up to 80% of memory

2011-12-26 Thread Ariya Hidayat
First thing first: please do not cross-post to several mailing list,
it's not helpful and impolite (see
http://en.wikipedia.org/wiki/Cross-posting).

> I tried with --makeargs="-j2" but still got "ld process terminated
> signal[9]" error  which indicates that it ran out of memory.

ld is the linker, nothing to do with parallel compiles. You simply
must have enough memory to link all object files.



-- 
Ariya Hidayat, http://ariya.ofilabs.com
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] Webkit build on windows

2011-12-14 Thread Ariya Hidayat
> Currently I'm doing a research and I need to build webkit on windows. With
> wincairo it builds but it seems that its not possible to turn off features.
> With gtk build it fails. I need to build webkit with as minimum as possible
> feature set.

If you don't mind using Qt, check out
http://doc.qt.nokia.com/4.8-snapshot/qtwebkit-guide.html.


-- 
Ariya Hidayat, http://ariya.ofilabs.com
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] Breakpoint in the WebCore does not work in the xcode with safari.

2011-12-07 Thread Ariya Hidayat
> Can anyone help me please?~~:)

Have you done any troubleshooting at all on your debugging problem? If
yes, please share what you have done. It would be very hard to give
some suggestions without further info (not everyone of us has a
working crystal ball).

Some recommended triaging (among others, the list is not exhaustive):

Can you debug a simple "Hello, world" program with your Xcode setup?

How did you launch Safari? Did you use Tools/Script/run-safari? Did it
pick up your build of WebKit?

Did you really build in debug mode and not release mode?

Are you sure your breakpoint will be hit? Did you try to put the
breakpoint in many other places?

Did you try to use gdb and manually attach to the process?



-- 
Ariya Hidayat, http://ariya.ofilabs.com
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] Breakpoint in the WebCore does not work in the xcode with safari.

2011-12-01 Thread Ariya Hidayat
Does the approach described in
http://www.webkit.org/building/debug.html not work for you?


-- 
Ariya Hidayat, http://ariya.ofilabs.com
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] Question about IOS support

2011-11-30 Thread Ariya Hidayat
> I am trying to create a simple browser on IOS using WebKit, however I am
> confused about what platforms are supported.

You have to be more clear as to what you want to do. iOS already
includes WebKit as the system library (after all, that's what Mobile
Safari is using), check the documentation for UIWebView. If that's all
you need, then you're all set.


-- 
Ariya Hidayat, http://ariya.ofilabs.com
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] Using QtTestBrowser on Windows (and avoiding Cygwin...)

2011-11-24 Thread Ariya Hidayat
Cygwin is needed for Apple Windows port of WebKit.

If you just want to build + play with QtWebKit on Windows, this is the
page you should be following:
http://trac.webkit.org/wiki/BuildingQtOnWindows. Beside Qt itself and
a bunch of GnuWin32-based tools, you don't need anything else.


-- 
Ariya Hidayat, http://ariya.ofilabs.com
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] Possible to return phonemes (not words) using x-webkit-speech in Chrome? Published API for x-webkit-speech?

2011-10-21 Thread Ariya Hidayat
You may have a better chance by contacting the Chrome developer
relations team (http://code.google.com/team/index.html?product=chrome).
People typically use this mailing list to get some assistance on
WebKit development itself, not for getting help on using WebKit.


-- 
Ariya Hidayat, http://ariya.ofilabs.com
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] Help Getting Started / locating what I am looking for.

2011-10-14 Thread Ariya Hidayat
Maybe you can start from SelectorQuery::execute() function and trace
it further from that starting point.


-- 
Ariya Hidayat, http://ariya.ofilabs.com
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] Minimum required for embedding

2011-10-13 Thread Ariya Hidayat
> @Ariya Hidayat I'll have to check the Qt port again. Thanks for the heads
> up.

Make sure you enable accelerated compositing:
http://labs.qt.nokia.com/2010/05/17/qtwebkit-now-accelerates-css-animations-3d-transforms/



-- 
Ariya Hidayat, http://ariya.ofilabs.com
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] Minimum required for embedding

2011-10-12 Thread Ariya Hidayat
> I've been trying to embed webkit into my application in order to render
> HTML5 + CSS3 pages. I need a port that supports the css 3D transform and is
> cross platform in nature. As far as i could tell, only the chromium port
> meets these requirements.

In case you miss it, QtWebKit also fulfills that requirements.




-- 
Ariya Hidayat, http://ariya.ofilabs.com
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] page rendering question

2011-09-14 Thread Ariya Hidayat
> I have a question regarding page rendering ... I inserted some printouts
> in WebKit methods that will be called when WebKit thinks the page should
> be redrawn (layout(), etc.).
>
> Now, what I can't figure out is why WebKit thinks the page needs to be
> redrawn if I click a text in different positions. E.g. the HTML page has
> tons of  elements. And clicking on the page will always request
> redrawing even when nothing on the page changes (no text selection,
> scrolling). Any ideas?

This is not going to answer your question, I just state the obvious:
why don't you use the debugger, set a breakpoint in some suitable
place, and see the stack trace to understand the program flow?

Debugger breakpoints and stack traces are much more powerful than just
some random printouts. Check out http://trac.webkit.org/wiki/CodePaths
for some inspiration.


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


Re: [webkit-help] Webkit Build error on Ubuntu 10

2011-09-05 Thread Ariya Hidayat
> I get the following error, when I run the following command
> Any ideas on what I am missing?
>
> $ Tools/Scripts/build-webkit --gtk --debug
>
> configure: error: Package requirements (gail-3.0 >= 3.0) were not met:

I'm just stating the obvious: did you try to fulfill the above requirement?

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


Re: [webkit-help] hardware accelerated rendering path

2011-08-31 Thread Ariya Hidayat
> The latest cairo port does not support accelerate composition, nor does it
> support hardware based primitive drawing. I think FireFox cairo d2d backend
> can be a good reference in the primitive drawing. However, accelerated
> composition seems to be more complicated because all resources I can find is
> the source code under graphics/ca where Apple have implemented the
> accelerated composition. Is there any document can help better understand
> the details? Thanks.

IIRC Cairo has several GPU-based back-ends. Did you try to enable/use
it with the Cairo port of WebKit?

To give a different perspective, Qt's painting system can use OpenGL
or OpenVG backend, transparent to the client code. The Qt port of
WebKit does not even need to do anything about it (note: simplified
view, the reality is more complicated).

As for the accelerated compositing, check also
http://www.chromium.org/developers/design-documents/gpu-accelerated-compositing-in-chrome.
Though some part applies only to Chromium, it contains a lot of
platform-agnostic information.


Regards,

-- 
Ariya Hidayat, Passionate Technologist
http://ariya.ofilabs.com
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] hardware accelerated rendering path

2011-08-21 Thread Ariya Hidayat
> Is it possible we apply this rule to a more general web page, like the way
> similar to what FireFox has adopted by using Direct2D on Windows port.

Yes, this is usually taken care at the platform graphics stack which a
certain port is using. CoreGraphics, Skia, Qt's QPainter, and Cairo
all have support (sometimes through a defined back-end) for
hardware-accelerated primitive drawing.

Some stuff I have written about this subject:
http://www.sencha.com/blog/understanding-hardware-acceleration-on-mobile-browsers/
http://ariya.ofilabs.com/2011/06/your-webkit-port-is-special-just-like-every-other-port.html



-- 
Ariya Hidayat, Passionate Technologist
http://ariya.ofilabs.com
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] enabling/disabling different modules when building WebKit

2011-07-18 Thread Ariya Hidayat
> I would like to ask whether it is possible to define what
> functionality will be included when building WebKit...

build-webkit script has a bunch of options for that, run it with
--help argument.

--
http://www.google.com/search?q=ariya+hidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] Rendering HTML page to bitmap

2011-07-13 Thread Ariya Hidayat
This is really specific to the port/framework you are using (thus,
more like CEF question). The trick is to set the viewport properly.
For QtWebKit, refer to what I showed ages ago:
http://labs.qt.nokia.com/2008/11/03/thumbnail-preview-of-web-page/ or
even using http://code.google.com/p/phantomjs/wiki/QuickStart#Rendering.

Capturing the WebView in a single bitmap sounds like a good idea. Even
better if you can do it in several steps by setting a proper clipping
rect.


Regards,

-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] Reg.Memory leak in the webkit...

2011-06-24 Thread Ariya Hidayat
Why are you posting the same question you already posted 2 days ago?

In all cases, try to use a memory profiler like Valgrind (and learn it
first if you don't know how to use it yet). If it is difficult to use
it and analyze it on the device, try to do the same on a more powerful
desktop machine replicating all the settings and test scenarios.

Also, try to present your investigation of the cause of the problem
first (not only the problem description). Asking others to solve the
problem and provide patches would not bring you anything.



-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] Making WebKit on ubuntu 10.10 looks for xcodebuild?

2011-06-17 Thread Ariya Hidayat
> Yes, here's a link to directFB webkit:
>
> http://directfb.org/index.php?path=Main%2FNews&entry=2010-11-21-0.dok

Since that's not an upstream port (i.e. not hosted on webkit.org), you
should ask whoever is responsible for that repository.

Regards,

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


Re: [webkit-help] Making WebKit on ubuntu 10.10 looks for xcodebuild?

2011-06-17 Thread Ariya Hidayat
Presumably you are trying the Gtk+ port. Did you follow the steps in
https://trac.webkit.org/wiki/BuildingGtk?




-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] License of Webkit

2011-06-13 Thread Ariya Hidayat
> What is license of webkit? LGPL(Library GPL)?
>
> Where can I find the license on the web?

See http://webkit.org on the bottom left:

WebKit is open source software with portions licensed under the LGPL
and BSD licenses. Complete license and copyright information can be
found within the code.

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


Re: [webkit-help] webkit 2 queries

2011-04-25 Thread Ariya Hidayat
> I am doing a university project using webkit-2. I am interested in
> possible collaboration with people who are using webkit-2 for their
> projects, would love to hear from you guys.

Would be helpful if you also share what you are doing or want to do
with WebKit2.

> I am interested in the SVG related functionality and am curious about
> how webkit-2 is handling svg related classes and functions. I know
> that webkit-1 uses SVG classes in the WebCore but webkit-2 is not. If
> not, what is wk2 using for displaying svg.

What makes you come to the conclusion that WebKit2 is not using the
same SVG classes?



-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] How to to interface between javascript context and webkit code

2011-04-06 Thread Ariya Hidayat
> I have a question on tying into javascript context.
> Basically, my application starts a webkit webview and 

Next time, at least mention the platform you are working on (as
specific as possible.
> I've been able to get this working in one direction
> (app->webkit->javascript-context) using
> "stringByEvaluatingJavaScriptFromString". But now i'd like for it to be
> driven by user events that occur inside the webview.
> Any pointers, or examples I should look at?

If this is iOS, I suggest looking at PhoneGap source code to see how
it is done there.


-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] Compiling Webkit for Android

2011-04-01 Thread Ariya Hidayat
> Do you know what version of webkit honeycomb uses?

WebKit r72805

> Is it possible to port webkit to Honeycomb using the ndk?

That's a million dollar question :)



-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] Compiling Webkit for Android

2011-04-01 Thread Ariya Hidayat
>  I'm trying to compile webkit for android. I have taken entire repository
> from webkit svn and the revision number is 81008. While compiling I have
> seen lot-of differences between android webkit (which is available in froyo)
> and the revision on SVN.
>  I have tried to merge the code - only adding the missing files and
> condition for Android platform.

You can't do it that way.

Android WebKit (until Gingerbread) is a "soft" fork, with bits and
pieces which exist only in the Android repo
(http://android.git.kernel.org/?p=platform/external/webkit.git) and
not upstreamed to webkit.org yet.

Froyo WebKit is based off a very old revision of WebKit. Just by
copying the latest revision and adjusting the code will not suddenly
give you an updated version (if it would have been that easy). There
is a merging tool in the Android WebKit repo (but who knows who can
use that).



--
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] how to add proxy support for Android WebKit

2011-04-01 Thread Ariya Hidayat
> I'm testing on android webkit.
> I found when I had set APN and proxy address in 'mobile network setting',
> webkit didn't take proxy address and port.
> I'm based on android2.1.Any solution for this ticket?

Known longstanding issue: http://code.google.com/p/android/issues/detail?id=1273




-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] How to render html without gui

2011-03-28 Thread Ariya Hidayat
In theory it is possible to tweak Qt to not use any other external
GUI-type of libraries (this is what I plan for phantomjs.org). In
practice, this is far from trivial.

In all cases, this seems to be more Qt issue than WebKit issue. If you
can create a pure Qt program that can render something without relying
on other resources, then there should not be any reason it can't be
used with QtWebKit.



-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] How to render html without gui

2011-03-28 Thread Ariya Hidayat
> Recently I've tried wkhtmltopdf/image to render a html to am image file, and
> it worked fine on x11 platform but not for embedded Qt webkit.

You have to more specific in describing your problem, what did you
mean by "not for embedded Qt webkit"? Is it not working at all? Or you
can't build it? And what steps have you already done to troubleshoot
your problems?

Also which embedded platform are you targeting? There are a million
combinations out there and it's impossible to know which one (I
recently lost my crystal ball...).

Please kindly read http://bit.ly/webkit-gethelp if you have not done so.


-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] Porting

2011-03-15 Thread Ariya Hidayat
Have you read http://bit.ly/webkit-gethelp? That should serve as the
"meta start" before jumping into other topics.


-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] Webkit build on Linux

2011-03-09 Thread Ariya Hidayat
> If I have to  build webkit on Linux means is it through only 
> BuildingQtonLinux [https://trac.webkit.org/wiki/BuildingQtOnLinux]
> What should be the development environment in that case.

Obviously Qt-related. If you are not familiar with it yet, then please
read http://doc.qt.nokia.com/4.7/how-to-learn-qt.html.

There is also Gtk+ port of WebKit.

> Can anyone explain me the architecture of webkit.

The wiki contains a lot of useful information.

And in case you haven't read it yet, please check http://bit.ly/webkit-gethelp.




-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] Hi newbie want suggestion about how to get involve this project.

2011-02-16 Thread Ariya Hidayat
> I am new to here. I want to help. I am good at C++ programming and really
> willing to learn new things. I want to contribute to this project but I
> don't familiar source code and architecture of Webkit. Would someone be
> willing to give me some information or suggestion or to mentor me ? I really
> want to contribute this for long time and I am serious programmer.

Have you read bit.ly/webkit-gethelp already?

Also, the wiki page contains a lot of useful info.



-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] rendering HTML to a bitmap (wincairo port)

2011-01-20 Thread Ariya Hidayat
> Would be very nice to have the webkit separate from HWND, I wonder if QT
> port does a good job of this?

Something like http://labs.qt.nokia.com/2009/01/15/capturing-web-pages/?


-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] Webkit support Flash?

2010-12-23 Thread Ariya Hidayat
> Hi, i am a new for webkit, i just want to know does the Webkit support
> flash? if not, do i need to develop a plug-in to support it?

Yes, it does support Flash via NPAPI.


-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] Flickering in Android Webkit browser

2010-12-10 Thread Ariya Hidayat
> What I am doubting is that once the flash runs in the Browser as a plug-in, 
> it sets WebKit in such a state such that,
> The Browser window background is completely cleared or painted black and then 
> followed by foreground painting/rendering. This causes the flicker..
>
> 1. Please let me know if my assumption is in right direction or totally off 
> the track?

It is easier to verify your assumption by doing the debugging
yourself. Just build Android WebKit using the instructions in
http://source.android.com/source/index.html, use your favorite
debugger, and trace the execution.

(Also, don't cross post to two different lists: webkit-help and webkit-dev).


-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] Qt WebKIt on OS X

2010-12-08 Thread Ariya Hidayat
> I am trying to compile the Qt WebKit port on Mac OS X.  I have installed the
> q4-mac-devel package via MacPorts.

Which version of Qt is that? Find out using 'qmake --version'.

Also I suggest using Qt binary package from
http://qt.nokia.com/downloads instead.

Don't forget to read http://trac.webkit.org/wiki/BuildingQtOnOSX (if
you haven't done so).


-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] How to access a few browser features with python

2010-12-08 Thread Ariya Hidayat
`> I am looking for information on how to access a few browser features with
> python.  I would like to control the browser session (in paticular, cookies,
> proxies, and user-agent), get access to  downloaded files
> (css/js/images/flash), and have full DOM control.

If you do not mind using QtWebKit, that's pretty easy using PyQt. Some
of examples I've done (http://ariya.ofilabs.com/code#webkit for the
full list) have the corresponding Python version. Check the repository
http://qt.gitorious.org/qt-labs/graphics-dojo, in particular the
subdirectory s5runner, snapscroll, weatherinfo, webnightmode, etc and
you can follow it up from there.


-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] Where to track the handle to a HTML5 canvas pixel array?

2010-11-30 Thread Ariya Hidayat
> I've started to look at WebKit and chromium port of WebKit. I'd like to
> track the handle/pointer to a particular HTML5 canvas pixel array. Where is
> the best location in the code for me to tab into for this purpose? Thanks.

Can't you find out which part of the code is using CanvasPixelArray
(WebCore/html/canvas/CanvasPixelArray.*)? For example,
WebCore/bindings/v8/custom/V8CanvasPixelArrayCustom.cpp is the binding
to V8.



-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] Sumbission of QNX Port

2010-11-14 Thread Ariya Hidayat
> I have developed a port for Webkit on QNX (6.4.1) with EGL / OpenGL ES
> Backend and would like to know how we can submit the same to the tree. it is
> a version developed from the OWB port.

Just follow http://webkit.org/coding/contributing.html. Unless you
have more specific questions?


-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] Collecting resource download information

2010-11-01 Thread Ariya Hidayat
> I would like to collect time information of the resources being downloaded.
> Any pointers where to start looking ? I am planning on using the gtk
> build, but if some other build provides better options, I would be
> happy to change ( as long as it stays portable to Mac and Linux - not
> interested in Windows ).

I have done something like that for QtWebKit:
http://ariya.blogspot.com/2010/05/qnetworkaccessmanager-tracenet-speed.html
Maybe you can adopt the same technique.



-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] crash in trampoline return

2010-10-21 Thread Ariya Hidayat
> iam debugging a crash in webkit JIT(arm thumb2 froyo) when loading a page.

For the benefit of those are not familiar with the terms, "froyo"
refers to Android 2.2.

> The crash happens after return from the trampoline when popping pc,

I assume this is Android 2.2 WebKit with JavaScriptCore JIT. I wonder
how well supported it is, consider that Google seems to push V8 for
Android 2.2 and later.


Regards,

-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] WebGL in WebKit to iOS

2010-10-20 Thread Ariya Hidayat
> A general question is whether there is an Open Source WebKit port to iOS?

In case you miss it, JavaScriptCore and WebCore source code for iOS
are listed in http://opensource.apple.com/release/ios-40/.


Regards,

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


Re: [webkit-help] ERROR: qmake missing but required to build WebKit. (Qt Port of WebKit under Windows 7)

2010-10-18 Thread Ariya Hidayat
> At this point, I think something is wrong with my basic environment.

Yes, obviously :) The problem is the mixup between different versions of Qt.

The easiest fix is probably to remove all installed Qt libraries and
reinstall single 4.7 version.


-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] ERROR: qmake missing but required to build WebKit. (Qt Port of WebKit under Windows 7)

2010-10-18 Thread Ariya Hidayat
> Also, when I typed
> where QtCore4.dll
> in the command window, the response was
>  C:\qt\2010_05\bin\QtCore4.dll
>
> So my environment is able to locate dlls in the bin directory.

If 'qmake --version' returns something for you, then the question is,
does it get also picked up by the build script (which is Perl)? You
may want to print out some debugging messages inside
WebKitTools/Scripts/webkitdirs.pm. Alternatively, pass the qmake
executable directly via the --qmake=/path/to/qmakebin option.



-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] ERROR: qmake missing but required to build WebKit. (Qt Port of WebKit under Windows 7)

2010-10-18 Thread Ariya Hidayat
> I think you missed to add C:\qt\2010_05\bin to PATH.
> (It is the default path of qmake.exe)

And if it works, you should get something when running 'qmake --version'.



-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] intercept all http requests, best way to run headless webkit

2010-10-06 Thread Ariya Hidayat
> 2. A more general question: what's the best way to construct a
> headless webkit browser these days?

Pretty easy using QtWebKit, check out http://bit.ly/graphicsdojo-2008,
esp. websnap and the SVG rasterizer. The code has been since moved to
http://qt.gitorious.org/qt-labs/graphics-dojo.


-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] Memory leak after run g_main_loop_run(fixture->loop);

2010-09-19 Thread Ariya Hidayat
> Hi, everyone ,i am a novice of WebKit. I want to use it to parse html
> and javascript and finally get the DOM of that html. But when i have
> written a test programme and run it. The problem is happen, The memory
> is grow up rapidly when i parse 1000 html pages that is download from
> web. it use 1GB memory. i find some meory leak when i use Valgrind to
> check it. The leak summary like this:

A long dump like this is better pasted on pastebin and then referred
in the email. Please also read http://bit.ly/webkit-gethelp if you are
new on this list.

As for the leak, might be useful to run it again without FastMalloc
(if that is enabled in the Gtk port, I'm not too familiar with it).



-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] How to build webkit for Android?

2010-09-13 Thread Ariya Hidayat
> android_source/froyo/external/webkit/WebKitTools/Scripts$ ./build-webkit --qt

QtWebKit is not designed for Android. You should know this if you have
done some little research on Qt.

Why don't you start by telling us what you want to achieve?

Android folks can correct me but usually you build Android WebKit port
using the Android build system (see Android.mk files).


Note: http://code.google.com/p/android-lighthouse/ is a different
story, it's porting+building the whole Qt, which includes QtWebKit
copy in its source tree. It's also definitely for experts.


-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] benchmark problems

2010-09-02 Thread Ariya Hidayat
> I'm trying to do some benchmark in order to check witch webkit
> functions take more time running.
> My question is: How can I do this kind of benchmark? firebug only
> tells me the time of page scripts, but I want to see where is the
> bottleneck in the webkit function. Any sugestion?

Firebug and Web Inspector's Profiler only work at that level, after
all it's designed for web developer.
If you want to profile WebKit in a much more granular level, just
proper tools such as gprof, valgrind, Shark, etc.


-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] Help with compilation

2010-08-30 Thread Ariya Hidayat
>  I do need the plugin support..

Let me connect the dots for you: current NPAPI code on Unix requires
X11, you want DirectFB without X11, but you need the plugin support.
Then you need to search and/or implement plugin infrastructure which
does not require X11.


Regards,

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


Re: [webkit-help] Help with compilation

2010-08-30 Thread Ariya Hidayat
> I am trying to port WebKit to a MIPS based platform and ran into compilation
> errors below:
>
> Since I configured for no X11 support (using directfb without X11), I am
> wondering as to why X11/Xlib.h, X11/Xutil.h and X11/Xresource.h are still
> being included.. the result is that the compilation fails with these errors:
>
> In file included from ./WebCore/bridge/npruntime_internal.h:28,
>  from ./WebCore/bridge/NP_jsobject.h:31,
>  from WebCore/bindings/js/ScriptController.cpp:34:

It's from the NPAPI plugin support. Try to rebuild but with plugin
support disabled.



-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] Help about JSCore

2010-08-13 Thread Ariya Hidayat
Read http://bit.ly/webkit-gethelp first if you haven't done so.

JavaScriptCore is a JavaScript engine which executes scripts, it works
with objects/values. Please be more specific as to what you want to
know and try to understand its source code as well.



--
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] retrieve favicon

2010-08-13 Thread Ariya Hidayat
> I am a begninner to Webkit
> Every web site has a favicon  i.e. is a small image display on the the tab .
> Webkit has some API with any port like (GTK,QT)  to retreive that favicon
> image

Haven't you checked any documentation? See
http://doc.qt.nokia.com/4.6/qwebframe.html#icon-prop for
QWebFrame::icon() function.


-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] Build JavaScriptCore for iOS

2010-08-05 Thread Ariya Hidayat
> Any hint would be greatly appreciated.

Did you try to disable JIT?

Would you also try the version on
http://opensource.apple.com/release/ios-40/ instead of trunk?


Regards,

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


Re: [webkit-help] Still completely stuck with getting JavaScriptCore to load this code

2010-08-03 Thread Ariya Hidayat
> Just to be clear, I know that there is a debugger, but it is integrated into 
> Safari.
>  I'm trying to use this code stand-alone, from JavaScriptCore, so it won't 
> have
> access to the environment that comes with loading from a browser.

If you don't mind using Qt for your testing, its Qt Script module has
a fantastic debugger: http://www.youtube.com/watch?v=pyUKtOV9qn8

Note: Qt 4.6 uses JSC as the back-end, so you will get 1:1 behavior.

Thank you!

Regards,


-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] Still completely stuck with getting JavaScriptCore to load this code

2010-08-02 Thread Ariya Hidayat
> There seems to be almost no documentation for JavaScriptCore that I can find,
> and without a debugger, I feel like I'm shining a flashlight underwater to 
> try and
> figure out what is going on.

But there is a JS debugger in Web Inspector. Did you try to use that
or could the debugger not do what you expect to do?

Anyway, I'd have a look at that once I got some spare cycles.


-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] Still completely stuck with getting JavaScriptCore to load this code

2010-08-02 Thread Ariya Hidayat
> There seems to be almost no documentation for JavaScriptCore that I can find,
> and without a debugger, I feel like I'm shining a flashlight underwater to 
> try and
> figure out what is going on.

But there is a JS debugger in Web Inspector. Did you try to use that
or could the debugger not do what you expect to do?

Anyway, I'd have a look at that once I got some spare cycles.


-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] help for understanding webkit.

2010-08-02 Thread Ariya Hidayat
Good starting points:

http://webkit.org/asking_questions.html
http://trac.webkit.org/wiki#GettingAroundtheWebKitSourceCode


--
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] Help with possible buffer overflow (JS code) in our DFB port

2010-08-01 Thread Ariya Hidayat
> We use a lot of Javascript code and we are experiencing random crashes when
> we bunch all that code in a single file without compressing it
> (yui-compressor). We suspect that we have some kind of buffer overflow that
> causes these random crashes since it almost never crashes on the same
> point).

Isn't there something common at all between the crashes? Is it
possible to deduce something from the stack trace? Do you manage to,
e.g. create a similar environment and, execute it on a different
platform?

It's a kind of hard to guess something out of this very little information...


-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] FTPS support: QtWebkit

2010-07-29 Thread Ariya Hidayat
This needs to be handled at Qt Network Access Manager level. Note that
QtWebKit does not use the deprecated QFtp module. See e.g.
http://doc.trolltech.com/4.6/qnetworkaccessmanager.html for details.




-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] WebKit

2010-06-17 Thread Ariya Hidayat
> where I see documentation of wk? and How I use webkit engine as a librarie?

Which platform? On Mac OS X you can read
http://developer.apple.com/mac/library/documentation/cocoa/Conceptual/DisplayWebContent/DisplayWebContent.html




-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] WebKit dump

2010-06-15 Thread Ariya Hidayat
> I like the output port graphical webkit? I like to do something like lynx
> dump, I can do this?

Maybe something like
http://labs.qt.nokia.com/blogs/2009/01/15/capturing-web-pages/ ?


-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] web view transparency

2010-05-16 Thread Ariya Hidayat
> I'm doing a borderless window that contains a webkit view that is
>  displaying an html/css/embedded javascript UI for our application. I'm
>  having and issue getting the webkit view to display only the html UI. Right
> now my webkit view's background is drawing a grey colored  square under  my
> html UI

For QtWebKit, does the trick in
http://labs.qt.nokia.com/blogs/2009/06/30/transparent-qwebview-or-qwebpage/
work for you?

For other ports, adopt a similar strategy.


-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] transparent body rendered in white --how to prevent?

2010-05-06 Thread Ariya Hidayat
> I'm using webkit to render a pdf from a html, and I want to get a
> transparent background so I can merge it with another pdf.

For QtWebKit, does the trick in
http://labs.qt.nokia.com/blogs/2009/06/30/transparent-qwebview-or-qwebpage/
work for you?




-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] Render to image

2010-05-03 Thread Ariya Hidayat
> Simple question: is it possible to render an HTML document to an image using
> the WebKit Core? If so, can someone provide a code example?

I don't know about other ports, but it is dead easy with QtWebKit, see
http://labs.qt.nokia.com/blogs/2009/01/15/capturing-web-pages/ for
details
(the code is at
http://qt.gitorious.org/qt-labs/graphics-dojo/trees/master/webcapture).

Regards,

-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] How to build JavaScriptCore on Ubuntu only

2010-04-29 Thread Ariya Hidayat
> Thanks so much. The jsc is built. Have you ever tried the jsc? When I type
> in a command, even as simple as 'var a=3;' and execute, it shows undefined.

Does 'print(a)' after that work or not?




-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] How to build JavaScriptCore on Ubuntu only

2010-04-28 Thread Ariya Hidayat
> I'm wondering if I can build JavaScriptCore on Ubuntu Linux only. Because
> the webkit trunk source is too big, and what I want is just its js engine. I
> tried make under the folder JavaScriptCore, but it required xcodebase, which
> is for Mac OS. I also tried using make-generated-source.sh, but it seems
> nothing useful generated. I didn't find any instruction on building that
> component. Can somebody help me?

If you don't mind using the Qt port, read and follow the thread at
https://lists.webkit.org/pipermail/webkit-qt/2010-January/89.html



-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] Webkit integration API

2010-04-20 Thread Ariya Hidayat
> I am interested in building a simple browser around Webkit.

Pick a port you want. For a good start, I recommend
http://doc.qt.nokia.com/4.6/qtwebkit.html and you should be able to
create a browser in 5 minutes (see
http://www.youtube.com/watch?v=SHEFvdxUFtk) and then go from there.


-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] Webpage thumbnails

2010-04-02 Thread Ariya Hidayat
> 1 - It's just a small portion of the webpage.  Specifically, if my HDC
> contains a 800x800 bitmap, then this will only return an 800x800
> portion of the webpage.  What I want is *all* of the webpage, scaled
> to fit into an 800x800 (in this example) bitmap.

I believe this is because you use the size of the frame's view, which
is 800x800. Maybe use the web page directly? I'm not familiar with
Chromium WebKit API so I have no idea if this would work or not.

> 2 - The image quality is really low.  Barely legible, in fact.

Try to use draw filter for Skia. Check the class SkDrawFilter or even
better SkPaintFlagsDrawFilter.
Or even, downscale it yourself with linear interpolation.


Some related links:
http://ariya.blogspot.com/2008/07/be-my-mirror-my-sword-and-shield.html
http://ariya.blogspot.com/2008/08/seas-would-rise-when-i-gave-words.html
http://labs.qt.nokia.com/blogs/2009/01/26/creating-thumbnail-preview/
http://labs.qt.nokia.com/blogs/2009/01/15/capturing-web-pages/




-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] Build without NPAPI ?

2010-03-18 Thread Ariya Hidayat
> I'm trying to build without NETSCAPE_PLUGIN_API (that in turn wants
> libx11 etc) -- is there a way to do so from the ./config line or do I
> have to apply some patch ?

Next time, you need to state first which port you are using (Qt/Gtk/wx?).

One solution would be to tweak ENABLE_NETSCAPE_PLUGIN_API in
JavaScriptCore/wtf/Platform.h.



-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] Fwd: how to get response in QtWebKit

2010-03-17 Thread Ariya Hidayat
Reading this again, I think you missed what I wrote: "Use custom
network manager" (vs just instantiating QNetworkAccessManager). This
way, your subclass of QNetworkAccessManager can have access to its
createRequest function and then connect to all the signals in the
network reply object or do any other kind of sniffing.




-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] [webkit-reviewers] Committer nomination: Noam Rosenthal

2010-03-16 Thread Ariya Hidayat
Ignore this email. My mail client was acting weird.
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] [webkit-reviewers] Committer nomination: Noam Rosenthal

2010-03-16 Thread Ariya Hidayat
I fully support Noam for this nomination.



-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] how to get response in QtWebKit

2010-03-13 Thread Ariya Hidayat
> can someone please give me short tutorial or sample source code

Read bit.ly/webkit-gethelp first!

Have you given it at least a try (by yourself) using the links I have
shown before?



-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] how to get response in QtWebKit

2010-03-11 Thread Ariya Hidayat
> Hello all im beginner with QtWebKit i build simple web frame that loaded
> page ( server side ) and when from this page i submit data i like to catch
> the response string from the server in the c++ side how can i do that ?

Use custom network manager and "sniff" the data:

http://doc.qt.nokia.com/4.6/qwebpage.html#setNetworkAccessManager
http://doc.qt.nokia.com/4.6/qnetworkaccessmanager.html



-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] The purpose of NinePieceImage

2010-03-04 Thread Ariya Hidayat
> Can you please tell me what is a NinePieceImage? Under what situation
> will Webkit create a NinePieceImage for RenderBoxModelObject?

For CSS border image, read
http://www.lrbabe.com/sdoms/borderImage/index.html for an example.



-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] How to start working on font

2010-03-02 Thread Ariya Hidayat
> I got an opportunity to work on WEBKIT. I have to work on font.Can any one
> say me how does font work in webkit ? What are the files that i have to look
> first to adapt my self with font in webkit.What are the areas that i have to
> touch first ?

WebCore/platform/graphics/Font* would be a good starting point.

Or you can just grep for "Font" and start from there.




-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] DirectFB for WebKit building

2010-03-02 Thread Ariya Hidayat
> So for the DirectFB building, I don't know what to do exactly but I think
> that I should, first, build GTK-DFB. Then what shall I do?  And is there a
> way to reduce memory consumption (like modifying the code) ?

I got no clue about Gtk+ nor DirectFB, but common sense dictates that
you should have Gtk+ with DirectFB up and running first before
building WebKitGtk to use it.

I guess this is the link for Gtk+ DirectFB:
http://www.directfb.org/wiki/index.php/Projects:GTK_on_DirectFB


-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] QTWebkit 4.6 and ico images, Rendering problem

2010-03-02 Thread Ariya Hidayat
> My question is, does QTWebKit support ico images, and if it does... what
> should I do to enable webkit to render ico images?

Check first whether you can load and display ico images using QImage.
The support for image formats is implemented as plugin in Qt, see
http://doc.qt.nokia.com/4.6/qimageiohandler.html for details. The
plugin code for ico can be found in src/plugins/imageformats/ico in
the Qt source tree.


Regards,


-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] Howto Calculate x, y points for GraphicsContext::drawFocusRing()

2010-02-27 Thread Ariya Hidayat
JFYI I wrote a supersimple example that demonstrates this:
http://bit.ly/x2-probelink for details.
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] cut Qt webkit building error

2010-02-25 Thread Ariya Hidayat
> Can't I use the DEFINES macro in webkit project file like below?

At the risk of repeating myself, why not using the build-webkit script
(in the WebKit repository)?

After that, you can update/change your copy of src/3rdparty/webkit
using the mkdist-webkit script, which resides in util/webkit (all in
Qt git repository).



-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] cut Qt webkit building error

2010-02-25 Thread Ariya Hidayat
>  I want to cut Qt Webkit, and I add “USE_SYSTEM_MALLOC=1  ENABLE_SVG=0” to
> Qt webkit project file.

What's wrong with passing "--no-svg" to the build-webkit script?

Note: see https://trac.webkit.org/wiki/BuildingQtOnLinux.




-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] building Qt port on Linux

2010-02-23 Thread Ariya Hidayat
> ../../../JavaScriptCore/wtf/unicode/qt4/UnicodeQt4.h:34: erreur: expected
> constructor, destructor, or type conversion before ‘namespace’
> make[1]: *** [obj/release/pcre_compile.o] Erreur 1
> make[1]: quittant le répertoire « /root/WebKit/WebKitBuild/Release/WebCore »
> make: *** [sub-WebCore-make_default-ordered] Erreur 2

You must have an outdated WebKit, that file does not exist anymore.

Did you follow https://trac.webkit.org/wiki/BuildingQtOnLinux?

Did you check out the code using e.g.
https://trac.webkit.org/wiki/UsingGitWithWebKit?



-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] Making Webkit compatible with ADS 1.2

2010-02-17 Thread Ariya Hidayat
> Please let me know the necessary details since you guys are the experts
> whereas I'm a newbie to Webkit just trying to compile it with ADS 1.2.

Have you (at all) tried to compile it with ADS? If yes, what kind of
errors did you get? If no, why don't you try it first?

You already asked similar compile-with-ARM question last December.
Unless you post your problem here more specifically, I doubt anyone
will give a specific answer as well.



-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] How to run Webkit with valgrind

2010-02-16 Thread Ariya Hidayat
> Can someone please tell me how can I run/compile Webkit so that I can
> run it with valgrind on linux?

Just build it as usual. Then run the your launcher under valgrind.
Refer to a bunch of valgrind tutorial out there.

Btw, what exactly do you want to do? Valgrind has some different tools
for different purposes.



-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] Howto Calculate x, y points for GraphicsContext::drawFocusRing()

2010-02-13 Thread Ariya Hidayat
> How to find all the links on a webpage ?

A few ways, among others by inspecting the DOM, using CSS selector,
etc. It really depends on your port and platform. Since I know only
Qt, I will mention QWebElement.

> Thanks for this but could you please point out me to the exact location
> where you are achieving this in snapping code ?

I always believe (hitherto) that the snapscroll example would be not
difficult to digest. I mean, come on, the source code (including the
GPL license header) is only 121 lines! In fact, if you just open
http://qt.gitorious.org/qt-labs/graphics-dojo/blobs/master/snapscroll/snapscroll.cpp
and search for "hit", you'd see that the first hit (pun intended) is
in the simple hitBoundingRects() function, where the logic resides.

> And the snapping code seems to be use Qt APIs, so is it possible to implement 
> my objective
> inside webkit code by modifying few things in hitTest or some other similar 
> function ?

That's why the code I gave was mentioned as "an example". You have to
find and understand the idea from the code and then extrapolate and
derive your own solution from there. Whether it is possible or not,
that is your own battle, not ours.



Regards,



-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] Howto Calculate x, y points for GraphicsContext::drawFocusRing()

2010-02-11 Thread Ariya Hidayat
> Actually, I want to increase active area of links, in such a way that event
> if I clicked below the link,
> (i.e. not exactly over the link) the nearer link should get selected and
> gets loaded. Right now, I have to click exactly over the link.

I guess this is the reason you asked the endless hit test questions in
the separate thread? If only you would have told us your objective
before...

There are tons of ways to do that. Two I can think of:

(1) Find all links in the page and calculate the distance to your
click position. Pick the nearest one (or whatever algorithm you use).

(2) "Probe" in the vicinity of your click position for any presence of
others links. An example I show in
http://labs.trolltech.com/blogs/2009/06/06/qwebview-snap-scrolling/
does the same, albeit for any type of elements instead of only links.



Regards,

-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] phonon deploy problem

2010-02-11 Thread Ariya Hidayat
> To test the phonon, I build example/phonon/capabilities, and put the files
> needed into one dir as below,
>
> │  capabilities.exe
> │  phonon4.dll
> │  QtCore4.dll
> │  QtGui4.dll
> └─plugins
>     └─phonon_backend
>     phonon_ds94.dll

How this is related to WebKit at all?

Unless it is related to WebKit (which the focus of this mailing list),
you should post the question to qt-interest list
(http://lists.trolltech.com/mailman/listinfo/qt-interest) or the
official Qt support channel (http://qt.nokia.com/support).


Regards,

-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] Generate Thumbnail

2010-02-11 Thread Ariya Hidayat
> How can I generate a thumbnail of the sites visited. I want to display the
> thumbnails in the favourites option.

The obvious answer: render the page and scaled it down.

Here is an example where I experimented with "live" thumbnails of web
pages shown in the tabs:

http://ariya.blogspot.com/2008/08/seas-would-rise-when-i-gave-words.html
http://ariya.blogspot.com/2008/07/be-my-mirror-my-sword-and-shield.html

The obligatory screencast for that is at
http://www.youtube.com/watch?v=Z-cg5X6Dmx0.



-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] Disable JavaScript dynamically

2010-02-11 Thread Ariya Hidayat
> How can I disable JavaScript from Webkit dynamically ?
> For certain situations, i dont want the JavaScript to be enabled.

Usually via the settings, e.g. if you use the Qt port, then using
QWebSettings::JavascriptEnabled
(see http://doc.qt.nokia.com/4.6/qwebsettings.html#WebAttribute-enum).

Next you may want to give more detailed information of which port you are using.

If you are new to this list, please read bit.ly/webkit-gethelp first.



-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] How does ImageDecoder free the encoded data

2010-02-10 Thread Ariya Hidayat
> In the ImageDecoder.h, it has an attribute "RefPtr
> m_data;" which save teh encoded data (according to the comment).
> My question is when does that SharedBuffer get free? I have search the
> code in ImageDeocder and its child classes,
> I don't see anywhere that buffer is getting free.  Can someone please
> give me some pointers?

It's reference counted. You might want to read
http://webkit.org/coding/RefPtr.html.


-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] understanding nodeAtPoint() function..

2010-02-10 Thread Ariya Hidayat
> This function gets _x, _y, _tx, _ty paramenters. The parameters _tx and _ty
> are related to LayerBounds. I am not getting what is LayerBounds and in
> subsequent calls of nodeAtPoint(), those _tx , _ty values are getting
> changes.
> How and what is it ?

Layer bounds in that context is the rect of the render layer, IIRC
it's relative to its parent (render) layer.

> In nodeAtPoint(), what is following calculation:
>     int tx = _tx + x();
>     int ty = _ty + y();
>
> and how values of x(), y() are changing in subsequent calls ?

What do you mean that the values are changing? If you mean you see
different values while debugging, that is probably because you are
stepping into the render layer hierarchy, i.e. the offsets are
different because they belong to different layers.



-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] What are the code in the ./WebCore/editing

2010-02-07 Thread Ariya Hidayat
> Can you please tell me what are the code in ./WebCore/editing for?

I guess for contentEditable, something described in e.g.
http://blog.whatwg.org/the-road-to-html-5-contenteditable.



-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] isOverLink() function in android-webkit

2010-02-05 Thread Ariya Hidayat
> I am looking into that function, but seems to be very complicated for me.
> If you do not mind
> could you please tell me little bit logic behind this ? Few hints will be
> appreciable.

You may want to check the part that calls hitTestContents and put it
in the temporary HitTestResult.
Also inside hitTestContents, there is a call to the renderer's
hitTest() and I'm sure this function is interesting for you too.

And beside reading the code, I suggest (again and again) using the
debugger and perform the step-by-step in that function.

Since I am afraid you'd come back again shortly and say that
RenderObject::hitTest() and its nodeAtPoint() are useless, I'd like
you to refer to http://trac.webkit.org/wiki/WebCoreRendering to see
the class hierarchy.


> Please, eagerly waiting for your reply.

I hate to repeat myself, but may I suggest reading
http://bit.ly/webkit-gethelp again?



-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] isOverLink() function in android-webkit

2010-02-04 Thread Ariya Hidayat
> I looked into RenderLayer::hitTest() function also.  It does few things
> given below:
>
>     Node* node = result.innerNode();

Before it reaches this line, it goes to hitTestLayer() first. Did you
check that function?


Regards,


-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] Is there a way to build Webkit with a specified .o directory?

2010-02-02 Thread Ariya Hidayat
> Can you please tell me if i can build Webkit with a specified .o directory?
> If that is possible, I can switch between Debug and Release build
> easily (by putting the .o in different directories).

You can build WebKit in debug and release mode, each resides in its
own directory, WebKitBuild/Debug and WebKitBuild/Release,
respectively. Is that not enough for your purpose?





-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] isOverLink() function in android-webkit

2010-02-02 Thread Ariya Hidayat
> I tried to debug it with gdb, for that I changed Makefile to compile webkit
> with -g option, again
> added flag '-g' to  global_cflags in GNUmakefile.in. Still, gdb is not able
> to insert breakpoint. Any hints
> fot this ?  I know this is not the mailing-list to ask question related to
> gdb. Sorry for that.

What do you mean by "not able to insert breakpoint"? Only by being
specific you can possibly get specific answers, too.
Note that if your webkit is a dynamically loaded library, gdb
potentially can't locate the symbols for your breakpoint. Also, make
sure you include the namespace WebCore when targetting a certain
function. In addition, check that the lib is built with the debug
symbol included (merely -g does not guarantee that).

As you agree, this is not a place for gdb tutorial so I'd just stop at
that. In case of further problems, I kindly suggest that you consult
someone who is more familiar with gdb and get some insights from him.


> I did not give up. I know that  m_innerURLElement's type is RefPtr,
> but in definition
> of Element class which is in WebCore/dom/Element.h/.cpp, there is no
> function declaration/definition
> for function get().

You just precisely describe what you have missed out. IOW, you did not
check RefPtr class, did you?


Regards,


-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


Re: [webkit-help] isOverLink() function in android-webkit

2010-02-01 Thread Ariya Hidayat
> I want to know the logic of isOverLink() that on which basis it returns true
> or false. How it decides that
> click is over link ? Does it use (x,y)  co-ordinates of clicked area to take
> decision ?

If you bother to check m_hitTestResult, you'll find out that it is an
instance of HitTestResult, which of course already stores hit test
result (surprised!). You can set a breakpoint in the HitTestResult
constructor to see who creates it (there are few places, from event
handling to selection logic). You can also have a look at
RenderLayer::hitTest() function.


> Then I could not find out function definition of above  get() function calls.

You give up to early. Hint: m_innerURLElement's type is RefPtr.



-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat
___
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


  1   2   >