void RenderThemeQtMobile::adjustTextFieldStyle(CSSStyleSelector*, RenderStyle* style, Element*) const { // Resetting the style like this leads to differences like: // - RenderTextControl {INPUT} at (2,2) size 168x25 [bgcolor=#FFFFFF] border: (2px inset #000000)] // + RenderTextControl {INPUT} at (2,2) size 166x26 // in layout tests when a CSS style is applied that doesn't affect background color, border or // padding. Just worth keeping in mind! style->setBackgroundColor(Color::transparent); style->resetBorder(); style->resetPadding(); computeSizeBasedOnStyle(style); style->setPaddingLeft(Length(textFieldPadding, Fixed)); style->setPaddingRight(Length(textFieldPadding, Fixed)); }
void RenderThemeQt::adjustMenuListStyle(CSSStyleSelector*, RenderStyle* style, Element*) const { style->resetBorder(); // Height is locked to auto. style->setHeight(Length(Auto)); // White-space is locked to pre style->setWhiteSpace(PRE); computeSizeBasedOnStyle(style); // Add in the padding that we'd like to use. setPopupPadding(style); }
void RenderThemeQt::adjustMenuListButtonStyle(CSSStyleSelector* selector, RenderStyle* style, Element* e) const { // WORKAROUND because html4.css specifies -webkit-border-radius for <select> so we override it here // see also http://bugs.webkit.org/show_bug.cgi?id=18399 style->resetBorderRadius(); // Height is locked to auto. style->setHeight(Length(Auto)); // White-space is locked to pre style->setWhiteSpace(PRE); computeSizeBasedOnStyle(style); // Add in the padding that we'd like to use. setPopupPadding(style); }
void RenderThemeQt::setButtonSize(RenderStyle* style) const { computeSizeBasedOnStyle(style); }
void RenderThemeQt::setCheckboxSize(RenderStyle* style) const { computeSizeBasedOnStyle(style); }