[webkit-help] How does native UI widget for HTML Inputs get created
n179911
n179911 at gmail.com
Fri Oct 9 10:11:56 PDT 2009
Thank you.
I put debug print statement in each of the 'case' statement inside:
bool RenderTheme::paint(RenderObject* o, const
RenderObject::PaintInfo& paintInfo, const IntRect& r)
When I load "www.google.com", the only printfs I see is under
case MenulistButtonPart:
case TextFieldPart:
case TextAreaPart:
case ListboxPart:
cout << " Calling MenulistButtonPart, TextFieldPart, TextAreaPart,
ListboxPart " << endl;
return true;
I assume that is for the search box of www.google.com, but why I don't
see any printf for the input buttons?
I have printf in
case PushButtonPart:
case SquareButtonPart:
case ListButtonPart:
case DefaultButtonPart:
case ButtonPart:
cout << " Calling paintButton " << endl;
return paintButton(o, paintInfo, r);
On Thu, Aug 13, 2009 at 12:13 AM, Adele Peterson <adele at apple.com> wrote:
> Look at the RenderTheme classes in the rendering directory.
>
> - Adele
>
> On Aug 13, 2009, at 12:10 AM, n179911 wrote:
>
>> Hi,
>>
>> I am looking thru Webkit code,
>> For each html input, it has
>> 1. HTMLInputElement for the DOM
>> 2.RenderButton for the Render Tree
>>
>> But my question is how does these map to the native UI widget that
>> WebKit creates to display on screen?
>> Can you please point me to the code which webkit creates the native UI
>> widget (e.g. Text box for html input element)?
>>
>> Thank you.
>> _______________________________________________
>> webkit-help mailing list
>> webkit-help at lists.webkit.org
>> http://lists.webkit.org/mailman/listinfo.cgi/webkit-help
>
>
More information about the webkit-help
mailing list