Summary: | Let the RenderTheme decide if an input type should have a spinner | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Joseph Pecoraro <joepeck> | ||||||
Component: | Forms | Assignee: | Nobody <webkit-unassigned> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | ddkilzer, joepeck, sam, tkent | ||||||
Priority: | P2 | ||||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | PC | ||||||||
OS: | OS X 10.5 | ||||||||
Attachments: |
|
Description
Joseph Pecoraro
2011-04-22 15:14:18 PDT
Created attachment 90776 [details]
[PATCH] Let RenderTheme make the decisions
Currently only TextFields check if a SpinButton should be added.
However the RenderTheme decision could be used in other places
in the future.
Created attachment 90777 [details]
[PATCH] Let RenderTheme make the decisions
Updated ChangeLog. (git add issue!)
Comment on attachment 90777 [details] [PATCH] Let RenderTheme make the decisions View in context: https://bugs.webkit.org/attachment.cgi?id=90777&action=review > Source/WebCore/rendering/RenderTheme.h:206 > + // Return true if the input element should have a spin button. > + virtual bool shouldHaveSpinButtonForInputElement(InputElement*) const; nit: The comment might be unnecessary. nit: "ForInputElement" in the function name is redundant. We may remove it. > > Source/WebCore/rendering/RenderTheme.h:206
> > + // Return true if the input element should have a spin button.
> > + virtual bool shouldHaveSpinButtonForInputElement(InputElement*) const;
>
> nit: The comment might be unnecessary.
> nit: "ForInputElement" in the function name is redundant. We may remove it.
Sounds good. Thanks!
Landed in <http://trac.webkit.org/changeset/84695>. Thanks! |