[webkit-dev] RenderObject hasLayer method

2009-06-12 Thread Meryl Silverburgh
Hi,

Can someone please tell me what does the 'layer' in a RenderObject means?
in other words, what does hasLayer method returns or purpose of that method?

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


[webkit-dev] Frame layout size

2009-06-12 Thread Graffine
Hi:

I want to scale the frame size to fit different window size. In my way ,
I used layoutWidth() to get the displaying size and used contentsWidth()
to get the web contents truly size, but both of this values sometims are
same.

For example, I launch GtkLauncher to browse google, I got the correct
layoutWidth and contentsWidth value at the first time. Ater then, I
click on the url entry and press enter key, the page will be reloaded,
but this two function will return a same value. Is it right?

I'm curious about what meaning of these three functions:

1. visibleWidth()
2. layoutWidth()
3. contentsWidth()

I think layoutWidth() just the visiable area width of whole window, it
isn't including title, toolbar, scrollbar, border, and other things, and
I think contentsWidth() is the width of web page contents. If this is
right, I have a weird case. I make the window size of GtkLauncher is
480x272, but the layoutWidth() will return 510 when I browse google. It
looks like not the true visiable area width. Besides, the visableWidth()
is the same as layoutWidth().

If I want to get the width and height of visiable area and web page
contents, does any function I can use?


Thanks in advances,
Graffine
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


[webkit-dev] Crash on the Mac (RapidWeaver plugin and Safari 4)

2009-06-12 Thread Gilberto De Faveri

Hi all,
I'm working on a RapidWeaver plugin (Cocoa) which uses a WebView on  
its main window.


Using Safari 3 everything works as expected, but after installing  
Safari 4 RapidWeaver crashes when re-opening the same plugin saving  
more than once.


The problems seems to be in JavaScriptCore:

*
Process: RapidWeaver [4901]
Path:/Applications/RapidWeaver.app/Contents/MacOS/ 
RapidWeaver

Identifier:  com.realmacsoftware.rapidweaverpro
Version: ??? (4.2.1)
Code Type:   X86 (Native)
Parent Process:  launchd [74]

Architecture:   i386
Date/Time:   2009-06-11 13:25:20.531 +0200
OS Version:  Mac OS X 10.5.7 (9J61)
Report Version:  6

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_PROTECTION_FAILURE at 0xbe8fd800
Crashed Thread:  0

Thread 0 Crashed:
0   com.apple.JavaScriptCore  	0x95b8bd83 void*  
WTF::fastMalloctrue(unsigned long) + 435
1   com.apple.WebCore 	0x927623ac  
std 
::pair 
WTF::HashTableIteratorAdapterWTF::HashTableWebCore::StringImpl*,  
WebCore::StringImpl*, WTF::IdentityExtractorWebCore::StringImpl*,  
WebCore::StringHash, WTF::HashTraitsWebCore::StringImpl*,  
WTF::HashTraitsWebCore::StringImpl* , WebCore::StringImpl*, bool  
WTF::HashSetWebCore::StringImpl*, WebCore::StringHash,  
WTF::HashTraitsWebCore::StringImpl* ::addchar const*,  
WebCore::CStringTranslator(char const* const) + 492
2   com.apple.WebCore 	0x921bc2f4  
WebCore::AtomicString::add(char const*) + 52
3   com.apple.WebCore 	0x9226a35d  
WebCore::ResourceRequestBase::isConditional() const + 397
4   com.apple.WebCore 	0x922698e1  
WebCore::SubresourceLoader::create(WebCore::Frame*,  
WebCore::SubresourceLoaderClient*, WebCore::ResourceRequest const,  
bool, bool, bool) + 769
5   com.apple.WebCore 	0x92268fae  
WebCore 
::Loader::Host::servePendingRequests(WTF::DequeWebCore::Request*,  
bool) + 942
6   com.apple.WebCore 	0x92268be2  
WebCore::Loader::Host::servePendingRequests(WebCore::Loader::Priority)  
+ 82
7   com.apple.WebCore 	0x92268598  
WebCore::Loader::load(WebCore::DocLoader*, WebCore::CachedResource*,  
bool, bool, bool) + 280
8   com.apple.WebCore 	0x92268469  
WebCore::CachedResource::load(WebCore::DocLoader*, bool, bool, bool) +  
89
9   com.apple.WebCore 	0x92268400  
WebCore::CachedResource::load(WebCore::DocLoader*) + 48
10  com.apple.WebCore 	0x92267bf0  
WebCore::Cache::requestResource(WebCore::DocLoader*,  
WebCore::CachedResource::Type, WebCore::KURL const, WebCore::String  
const, bool) + 192
11  com.apple.WebCore 	0x92267560  
WebCore::DocLoader::requestResource(WebCore::CachedResource::Type,  
WebCore::String const, WebCore::String const, bool) + 192
12  com.apple.WebCore 	0x9230697f  
WebCore::DocLoader::requestScript(WebCore::String const,  
WebCore::String const) + 47
13  com.apple.WebCore 	0x9226fb30  
WebCore::HTMLTokenizer::scriptHandler(WebCore::HTMLTokenizer::State) +  
3568
14  com.apple.WebCore 	0x92261c9b  
WebCore::HTMLTokenizer::parseSpecial(WebCore::SegmentedString,  
WebCore::HTMLTokenizer::State) + 2267
15  com.apple.WebCore 	0x9224f6df  
WebCore::HTMLTokenizer::parseTag(WebCore::SegmentedString,  
WebCore::HTMLTokenizer::State) + 9103
16  com.apple.WebCore 	0x9224cc9b  
WebCore::HTMLTokenizer::write(WebCore::SegmentedString const, bool) +  
2907
17  com.apple.WebCore 	0x921f7c50  
WebCore::FrameLoader::write(char const*, int, bool) + 432
18  com.apple.WebCore 	0x9224b3f7  
WebCore::FrameLoader::addData(char const*, int) + 39
19  com.apple.WebKit  	0x9322ec0c -[WebFrame(WebInternal)  
_receivedData:textEncodingName:] + 140
20  com.apple.WebKit  	0x9322eb33 -[WebHTMLRepresentation  
receivedData:withDataSource:] + 499
21  com.apple.WebKit  	0x9322e8db - 
[WebDataSource(WebInternal) _receivedData:] + 91
22  com.apple.WebKit  	0x9322e859  
WebFrameLoaderClient::committedLoad(WebCore::DocumentLoader*, char  
const*, int) + 137
23  com.apple.WebCore 	0x9223d356  
WebCore::DocumentLoader::commitLoad(char const*, int) + 70
24  com.apple.WebCore 	0x9223cf85  
WebCore::ResourceLoader::didReceiveData(char const*, int, long long,  
bool) + 69
25  com.apple.WebCore 	0x9223c752  
WebCore::MainResourceLoader::didReceiveData(char const*, int, long  
long, bool) + 114
26  com.apple.WebCore 	0x9223c6d8  
WebCore::ResourceLoader::didReceiveData(WebCore::ResourceHandle*, char  
const*, int, int) + 56
27  com.apple.Foundation  	0x950f8ed7 - 
[NSURLConnection(NSURLConnectionReallyInternal)  
sendDidReceiveData:originalLength:] + 119
28  com.apple.Foundation  	0x950f8e21  
_NSURLConnectionDidReceiveData + 177
29  com.apple.CFNetwork   	0x9315096a  
URLConnectionClient::_clientDidReceiveData(__CFData 

Re: [webkit-dev] RenderObject hasLayer method

2009-06-12 Thread Scott Thompson


On Jun 12, 2009, at 12:17 AM, Meryl Silverburgh wrote:


Hi,

Can someone please tell me what does the 'layer' in a RenderObject  
means?
in other words, what does hasLayer method returns or purpose of that  
method?



I'm going to speculate here, but on the MacOS, there is a technology  
called Core Animation.  Core Animation allows a program to create   
rectangular graphical areas and easily animate them on the screen.   
These rectangular areas are called Layers.


Safari supports CSS transitions and effects which (again I speculate)  
make use of those layers to simplify their animations.  I suspect,  
then, that a RenderObject, while animating, is associated with at  
least one CALayer and the hasLayer method would tell you whether or  
not that was, in fact, occurring.


http://developer.apple.com/documentation/Cocoa/Conceptual/CoreAnimation_guide/Introduction/Introduction.html

Scott


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


Re: [webkit-dev] Crash on the Mac (RapidWeaver plugin and Safari 4)

2009-06-12 Thread David Kilzer
Hi Gilberto,

Please file a bug on either https://bugreport.apple.com/ or 
https://bugs.webkit.org with explicit steps on how to reproduce the crash, 
then report the bug number here.

Thanks!

Dave





From: Gilberto De Faveri gilberto.defav...@omnidea.it
To: webkit-dev@lists.webkit.org
Sent: Friday, June 12, 2009 12:47:22 AM
Subject: [webkit-dev] Crash on the Mac (RapidWeaver plugin and Safari 4)

Hi all,
I'm working on a RapidWeaver plugin (Cocoa) which uses a WebView on its main 
window.

Using Safari 3 everything works as expected, but after installing Safari 4 
RapidWeaver crashes when re-opening the same plugin saving more than once.

The problems seems to be in JavaScriptCore:

*
Process: RapidWeaver [4901]
Path:/Applications/RapidWeaver.app/Contents/MacOS/RapidWeaver
Identifier:  com.realmacsoftware.rapidweaverpro
Version: ??? (4.2.1)
Code Type:   X86 (Native)
Parent Process:  launchd [74]

Architecture:   i386
Date/Time:   2009-06-11 13:25:20.531 +0200
OS Version:  Mac OS X 10.5.7 (9J61)
Report Version:  6

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_PROTECTION_FAILURE at 0xbe8fd800
Crashed Thread:  0

Thread 0 Crashed:
0   com.apple.JavaScriptCore  0x95b8bd83 void* 
WTF::fastMalloctrue(unsigned long) + 435
1   com.apple.WebCore 0x927623ac 
std::pairWTF::HashTableIteratorAdapterWTF::HashTableWebCore::StringImpl*, 
WebCore::StringImpl*, WTF::IdentityExtractorWebCore::StringImpl*, 
WebCore::StringHash, WTF::HashTraitsWebCore::StringImpl*, 
WTF::HashTraitsWebCore::StringImpl* , WebCore::StringImpl*, bool 
WTF::HashSetWebCore::StringImpl*, WebCore::StringHash, 
WTF::HashTraitsWebCore::StringImpl* ::addchar const*, 
WebCore::CStringTranslator(char const* const) + 492
2   com.apple.WebCore 0x921bc2f4 
WebCore::AtomicString::add(char const*) + 52
3   com.apple.WebCore 0x9226a35d 
WebCore::ResourceRequestBase::isConditional() const + 397
4   com.apple.WebCore 0x922698e1 
WebCore::SubresourceLoader::create(WebCore::Frame*, 
WebCore::SubresourceLoaderClient*, WebCore::ResourceRequest const, bool, bool, 
bool) + 769
5   com.apple.WebCore 0x92268fae 
WebCore::Loader::Host::servePendingRequests(WTF::DequeWebCore::Request*, 
bool) + 942
6   com.apple.WebCore 0x92268be2 
WebCore::Loader::Host::servePendingRequests(WebCore::Loader::Priority) + 82
7   com.apple.WebCore 0x92268598 
WebCore::Loader::load(WebCore::DocLoader*, WebCore::CachedResource*, bool, 
bool, bool) + 280
8   com.apple.WebCore 0x92268469 
WebCore::CachedResource::load(WebCore::DocLoader*, bool, bool, bool) + 89
9   com.apple.WebCore 0x92268400 
WebCore::CachedResource::load(WebCore::DocLoader*) + 48
10  com.apple.WebCore 0x92267bf0 
WebCore::Cache::requestResource(WebCore::DocLoader*, 
WebCore::CachedResource::Type, WebCore::KURL const, WebCore::String const, 
bool) + 192
11  com.apple.WebCore 0x92267560 
WebCore::DocLoader::requestResource(WebCore::CachedResource::Type, 
WebCore::String const, WebCore::String const, bool) + 192
12  com.apple.WebCore 0x9230697f 
WebCore::DocLoader::requestScript(WebCore::String const, WebCore::String 
const) + 47
13  com.apple.WebCore 0x9226fb30 
WebCore::HTMLTokenizer::scriptHandler(WebCore::HTMLTokenizer::State) + 3568
14  com.apple.WebCore 0x92261c9b 
WebCore::HTMLTokenizer::parseSpecial(WebCore::SegmentedString, 
WebCore::HTMLTokenizer::State) + 2267
15  com.apple.WebCore 0x9224f6df 
WebCore::HTMLTokenizer::parseTag(WebCore::SegmentedString, 
WebCore::HTMLTokenizer::State) + 9103
16  com.apple.WebCore 0x9224cc9b 
WebCore::HTMLTokenizer::write(WebCore::SegmentedString const, bool) + 2907
17  com.apple.WebCore 0x921f7c50 
WebCore::FrameLoader::write(char const*, int, bool) + 432
18  com.apple.WebCore 0x9224b3f7 
WebCore::FrameLoader::addData(char const*, int) + 39
19  com.apple.WebKit  0x9322ec0c -[WebFrame(WebInternal) 
_receivedData:textEncodingName:] + 140
20  com.apple.WebKit  0x9322eb33 -[WebHTMLRepresentation 
receivedData:withDataSource:] + 499
21  com.apple.WebKit  0x9322e8db -[WebDataSource(WebInternal) 
_receivedData:] + 91
22  com.apple.WebKit  0x9322e859 
WebFrameLoaderClient::committedLoad(WebCore::DocumentLoader*, char const*, int) 
+ 137
23  com.apple.WebCore 0x9223d356 
WebCore::DocumentLoader::commitLoad(char const*, int) + 70
24  com.apple.WebCore 0x9223cf85 
WebCore::ResourceLoader::didReceiveData(char const*, int, long long, bool) + 69
25  com.apple.WebCore 0x9223c752 
WebCore::MainResourceLoader::didReceiveData(char const*, int, long long, bool) 
+ 114
26  com.apple.WebCore 

Re: [webkit-dev] [wxWindows] ubuntu build problem

2009-06-12 Thread David Kilzer
It sounds like the wxWindows build is broken due to a file missing from its 
build system.  (Find the source file with JSC::jsonTable() defined in it, then 
add it to the wx build system files.)

I've copied Kevin Ollivier, the port maintainer, so that he's aware of the 
issue.

Kevin, any chance of getting the wxWindows buildbot back online?

Dave





From: anurag uniyal anuraguni...@yahoo.com
To: webkit-dev@lists.webkit.org
Sent: Thursday, June 11, 2009 10:56:52 PM
Subject: Re: [webkit-dev] ubuntu build problem


do anybody have a clue, or any pointers for me so that I can fix it myself?



I have checked out revision 44600 today and it gives me build problem
is there some stable version which I should be using?

I am building it on ubuntu machine
with command
./build-webkit --wx --wx-args=wxgc wxpython


ranlib /home/anushri/try/WebKit/WebKitBuild/Release/libjscore.a
g++ -o /home/anushri/try/WebKit/WebKitBuild/Release/jsc obj-gnu/jsc_jsc.o  -lm 
-L/usr/lib -licui18n -licuuc -licudata -lm 
-L/home/anushri/try/WebKit/WebKitBuild/Release 
-L/home/anushri/try/WebKit/WebKitTools/wx/../../WebKitLibraries/unix/lib 
-L/home/anushri/try/WebKit/WebKitTools/wx/../../WebKitLibraries -ljpeg -lpng 
`wx-config --libs core,base` -g-ljscore -lpthread  
/home/anushri/try/WebKit/WebKitBuild/Release/libjscore.a(jscore_JSGlobalData.o):
 In function `JSC::JSGlobalData::JSGlobalData(bool, JSC::VPtrSet const)':
JSGlobalData.cpp:(.text+0x8e1): undefined reference to `JSC::jsonTable'
/home/anushri/try/WebKit/WebKitBuild/Release/libjscore.a(jscore_JSGlobalData.o):
 In function `JSC::JSGlobalData::JSGlobalData(bool, JSC::VPtrSet const)':
JSGlobalData.cpp:(.text+0x1241): undefined reference to `JSC::jsonTable'
/home/anushri/try/WebKit/WebKitBuild/Release/libjscore.a(jscore_JSGlobalObject.o):
 In function `JSC::JSGlobalObject::reset(JSC::JSValue)':
JSGlobalObject.cpp:(.text+0x5391): undefined reference to `vtable for 
JSC::JSONObject'
collect2: ld returned 1 exit status
make: *** [/home/anushri/try/WebKit/WebKitBuild/Release/jsc] Error 1
make: Leaving directory `/home/anushri/try/WebKit/JavaScriptCore


rgds
Anurag

 Explore and discover exciting holidays and getaways with Yahoo! India Travel 
Click here!

 Own a website.Get an unlimited package.Pay next to nothing.*Click here!.

 Explore and discover exciting holidays and getaways with Yahoo! India Travel 
Click here!___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] RenderObject hasLayer method

2009-06-12 Thread Simon Fraser

On Jun 12, 2009, at 7:08 AM, Scott Thompson wrote:


On Jun 12, 2009, at 12:17 AM, Meryl Silverburgh wrote:


Hi,

Can someone please tell me what does the 'layer' in a RenderObject  
means?
in other words, what does hasLayer method returns or purpose of  
that method?



I'm going to speculate here, but on the MacOS, there is a technology  
called Core Animation.  Core Animation allows a program to create   
rectangular graphical areas and easily animate them on the screen.   
These rectangular areas are called Layers.


Safari supports CSS transitions and effects which (again I  
speculate) make use of those layers to simplify their animations.  I  
suspect, then, that a RenderObject, while animating, is associated  
with at least one CALayer and the hasLayer method would tell you  
whether or not that was, in fact, occurring.


http://developer.apple.com/documentation/Cocoa/Conceptual/CoreAnimation_guide/Introduction/Introduction.html


Indeed, that is all speculation  :-)

The layer() method on RenderObject (actually, it has now moved to  
RenderBoxModelObject if you look at TOT) returns a RenderLayer object.  
RenderLayers are responsible for painting and hit testing some subset  
of the render tree that shares a common coordinate space, to put it  
simply. RenderLayers hang off of the tree of RenderObjects, and are  
themselves parented in parallel with their associated RenderObjects.  
However, we build a painting order tree of RenderObjects via their z- 
order lists, which controls the back-to-front painting order between  
RenderLayers.


When painting happens, we start painting with the root RenderLayer,  
which paints tells any RLs behind it to paint, then paints its  
enclosing RenderObjects, and then tells any RLs in front of it to  
paint, and this continues down the RL tree. Hit testing all uses the z- 
order tree to do front-to-back hit testing.


RenderLayers get created for elements with overflow, absolute or  
relative position, transforms, masks, opacity  1 and various other  
reasons. RenderLayers are used on all platforms, and have no platform- 
specific behavior.


Now we do have some support in the code for accelerated compositing,  
and that does involve RenderLayers indirectly, but there is a much  
more complex relationship between a RenderLayer and associated  
hardware-based layers than Scott alludes to above (see the  
RenderLayerCompositor/RenderLayerBacking/GraphicsLayer code for that  
stuff).


Simon

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


[webkit-dev] Popup blocking feature

2009-06-12 Thread Nathan Summer
Hi,

The Popup blocking feature, is that part of Webkit code space? Or it
is Safari (which is closed source)?
Thank you.
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] Popup blocking feature

2009-06-12 Thread Geoffrey Garen

The Popup blocking feature, is that part of Webkit code space?


It's mostly in WebCore (a component of WebKit).

See DOMWindow::allowPopUp().

Geoff

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


Re: [webkit-dev] About Win32/Cairo port

2009-06-12 Thread Brent Fulgham
Hi Everyone,

2009/5/15 Joonghoon Kim luna...@tmax.co.kr:
 2) In ACID3 test, some assertion failure occures,
 for WebCore attempts to destroy cairo font structures
 which has 0 ref count. I changed SimpleFontData::platformDestroy()
 to destroy the structures while ref-count is bigger than 0.
 The failure has gone, but I'm not sure it's right.

I finally tracked this problem down.  You can read all about it in
https://bugs.webkit.org/show_bug.cgi?id=26353, but this is now fixed
in ToT as of revision @r44630.

Thanks,

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


Re: [webkit-dev] DOM building in Webkit

2009-06-12 Thread Darin Adler

On Jun 11, 2009, at 1:15 PM, Meryl Silverburgh wrote:

Does Webkit build DOM element for things like 'comment' in the html  
document? and does it build DOM element for text with only non  
visible characters (e.g. \n,   , \t)?


These are questions you can answer yourself by writing a little bit of  
test code in JavaScript. Please don’t ask the others on this mailing  
list to do that kind of basic research for you — do it yourself!


-- Darin

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


Re: [webkit-dev] about webkit's license in chrome

2009-06-12 Thread David Jones
well, is there a doc about that?
or, could you describe it more detailedly ? I want to know which part is under 
BSD, LGPL and so on.
I don't find a license illustration in webkit's src.

On Thu, Jun 11, 2009 at 10:44:25PM -0700, Peter Kasting wrote:
 2009/6/11 David Jones ds...@163.com
 
  As listed in http://code.google.com/chromium/terms.html#3rdparty ,
  there're three different licenses of webkit in chrome:
  BSD http://www.opensource.org/licenses/bsd-license.php/LGPL 2/LGPL 
  2.1http://opensource.org/licenses/lgpl-2.1.php
 
 
  Why?
 
 
 For the same reason the Mozilla code lists three licenses: because the code
 is tri-licensed.  It is offered simultaneously under three different
 licenses.

Technically, that is not true. While (most of) Mozilla code is
effectively tri-licensed, i.e. released under the terms of the three
licences, WebKit code is partly licensed under each one, i.e. parts are
under 2-clause BSD, parts under 3-clause BSD, and parts under LGPL 2 or
2.1.

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