Oh, and google.com has custom buttons which may or may not go through that function at all (I haven't checked).
Avi On Fri, Oct 9, 2009 at 4:44 PM, Avi Drissman <a...@chromium.org> wrote: > You found it. > > At the beginning of the function you see: > > *static* NSButtonCell *buttonCell; >> //... >> if (!buttonCell) { >> > > There is only one cell created ever, and it's reused. > > Avi > > > On Fri, Oct 9, 2009 at 4:20 PM, hap 497 <hap...@gmail.com> wrote: > >> >> Hi, >> >> Does Chromium MacOSX always create NSButtonCell for each html input >> submit button? >> I put a printf() statement in ThemeChromiumMac.mm: >> static NSButtonCell* button(ControlPart part, ControlStates states, >> const IntRect& zoomedRect, float zoomFactor). >> >> It gets called and create a NSButtonCell for a input submit button >> when i load this test page: >> <html><body><form> >> <input type="submit" value="button1" text="button1"> >> </form></body></html> >> >> But when I load www.google.com (which has 2 input buttons), I don't >> see the same button() function gets called to create NSButtonCell. >> >> Can you please tell me where is the code which create native gui >> widget for input submit button for the case of www.google.com? >> >> Thank you. >> >> >> >> > --~--~---------~--~----~------------~-------~--~----~ Chromium Developers mailing list: chromium-dev@googlegroups.com View archives, change email options, or unsubscribe: http://groups.google.com/group/chromium-dev -~----------~----~----~----~------~----~------~--~---