Lines Matching full:style
365 bool RenderThemeWin::supportsFocusRing(const RenderStyle* style) const
367 return supportsFocus(style->appearance());
373 switch (o->style()->appearance()) {
385 state = (o->style()->appearance() == RadioPart) ? DFCS_BUTTONRADIO : DFCS_BUTTONCHECK;
408 ControlPart appearance = o->style()->appearance();
429 else if (supportsFocus(o->style()->appearance()) && isFocused(o->parent()))
445 else if (supportsFocus(o->style()->appearance()) && isFocused(o))
457 switch (o->style()->appearance()) {
504 switch (o->style()->appearance()) {
575 } else if ((o->style()->appearance() == SliderThumbHorizontalPart ||
576 o->style()->appearance() == SliderThumbVerticalPart) &&
602 if (o->style()->appearance() == DefaultButtonPart) {
620 void RenderThemeWin::setCheckboxSize(RenderStyle* style) const
623 if (!style->width().isIntrinsicOrAuto() && !style->height().isAuto())
630 if (style->width().isIntrinsicOrAuto())
631 style->setWidth(Length(13, Fixed));
632 if (style->height().isAuto())
633 style->setHeight(Length(13, Fixed));
662 void RenderThemeWin::adjustMenuListStyle(CSSStyleSelector* selector, RenderStyle* style, Element* e) const
664 style->resetBorder();
665 adjustMenuListButtonStyle(selector, style, e);
668 void RenderThemeWin::adjustMenuListButtonStyle(CSSStyleSelector* selector, RenderStyle* style, Element* e) const
672 const int dropDownBoxPaddingRight = style->direction() == LTR ? 4 + dropDownButtonWidth : 4;
674 const int dropDownBoxPaddingLeft = style->direction() == LTR ? 4 : 4 + dropDownButtonWidth;
679 style->setPaddingTop(Length(dropDownBoxPaddingTop, Fixed));
680 style->setPaddingRight(Length(dropDownBoxPaddingRight, Fixed));
681 style->setPaddingBottom(Length(dropDownBoxPaddingBottom, Fixed));
682 style->setPaddingLeft(Length(dropDownBoxPaddingLeft, Fixed));
685 style->setHeight(Length(Auto));
688 int minHeight = style->font().height();
691 style->setMinHeight(Length(minHeight, Fixed));
694 style->setWhiteSpace(PRE);
706 if (o->style()->direction() == LTR)
728 if (o->style()->appearance() == SliderHorizontalPart) {
731 } else if (o->style()->appearance() == SliderVerticalPart) {
751 if (o->style()->appearance() == SliderThumbVerticalPart) {
752 o->style()->setWidth(Length(sliderThumbHeight, Fixed));
753 o->style()->setHeight(Length(sliderThumbWidth, Fixed));
754 } else if (o->style()->appearance() == SliderThumbHorizontalPart) {
755 o->style()->setWidth(Length(sliderThumbWidth, Fixed));
756 o->style()->setHeight(Length(sliderThumbHeight, Fixed));
759 else if (o->style()->appearance() == MediaSliderThumbPart)
789 void RenderThemeWin::adjustSearchFieldStyle(CSSStyleSelector* selector, RenderStyle* style, Element* e) const
793 style->setPaddingLeft(Length(padding, Fixed));
794 style->setPaddingRight(Length(padding, Fixed));
795 style->setPaddingTop(Length(padding, Fixed));
796 style->setPaddingBottom(Length(padding, Fixed));
798 style->setOutlineOffset(-2);
822 paintInfo.context->drawImage(isPressed(o) ? cancelPressedImage : cancelImage, o->style()->colorSpace(), bounds);
826 void RenderThemeWin::adjustSearchFieldCancelButtonStyle(CSSStyleSelector* selector, RenderStyle* style, Element* e) const
829 float fontScale = style->fontSize() / defaultControlFontPixelSize;
831 style->setWidth(Length(cancelButtonSize, Fixed));
832 style->setHeight(Length(cancelButtonSize, Fixed));
835 void RenderThemeWin::adjustSearchFieldDecorationStyle(CSSStyleSelector* selector, RenderStyle* style, Element* e) const
838 style->setWidth(Length(emptySize.width(), Fixed));
839 style->setHeight(Length(emptySize.height(), Fixed));
842 void RenderThemeWin::adjustSearchFieldResultsDecorationStyle(CSSStyleSelector* selector, RenderStyle* style, Element* e) const
845 float fontScale = style->fontSize() / defaultControlFontPixelSize;
848 style->setWidth(Length(magnifierSize, Fixed));
849 style->setHeight(Length(magnifierSize, Fixed));
871 paintInfo.context->drawImage(magnifierImage, o->style()->colorSpace(), bounds);
875 void RenderThemeWin::adjustSearchFieldResultsButtonStyle(CSSStyleSelector* selector, RenderStyle* style, Element* e) const
878 float fontScale = style->fontSize() / defaultControlFontPixelSize;
882 style->setWidth(Length(magnifierWidth, Fixed));
883 style->setHeight(Length(magnifierHeight, Fixed));
907 paintInfo.context->drawImage(magnifierImage, o->style()->colorSpace(), bounds);