Lines Matching defs:controlSize
182 static float systemFontSizeForControlSize(NSControlSize controlSize)
186 return sizes[controlSize];
263 NSControlSize controlSize = controlSizeForFont(o->style());
269 r = inflateRect(r, checkboxSizes()[controlSize], checkboxMargins(controlSize));
275 r = inflateRect(r, radioSizes()[controlSize], radioMargins(controlSize));
284 r = inflateRect(r, buttonSizes()[controlSize], buttonMargins(controlSize));
288 r = inflateRect(r, popupButtonSizes()[controlSize], popupButtonMargins(controlSize));
361 if (size != [cell controlSize]) // Only update if we have to, since AppKit does work even if the size is the same.
385 void RenderThemeSafari::setFontFromControlSize(CSSStyleSelector* selector, RenderStyle* style, NSControlSize controlSize) const
391 float fontSize = systemFontSizeForControlSize(controlSize);
417 NSControlSize controlSize = controlSizeForFont(o->style());
419 IntRect inflatedRect = inflateRect(r, checkboxSizes()[controlSize], checkboxMargins(controlSize));
420 paintThemePart(SafariTheme::CheckboxPart, paintInfo.context->platformContext(), inflatedRect, controlSize, determineState(o));
431 const int* RenderThemeSafari::checkboxMargins(NSControlSize controlSize) const
439 return margins[controlSize];
456 NSControlSize controlSize = controlSizeForFont(o->style());
458 IntRect inflatedRect = inflateRect(r, radioSizes()[controlSize], radioMargins(controlSize));
459 paintThemePart(RadioButtonPart, paintInfo.context->platformContext(), inflatedRect, controlSize, determineState(o));
470 controlSize) const
478 return margins[controlSize];
517 NSControlSize controlSize = controlSizeForFont(style);
533 setButtonPaddingFromControlSize(style, controlSize);
538 setFontFromControlSize(selector, style, controlSize);
555 const int* RenderThemeSafari::buttonMargins(NSControlSize controlSize) const
563 return margins[controlSize];
583 NSControlSize controlSize = controlSizeFromRect(r, buttonSizes());
591 IntSize size = buttonSizes()[controlSize];
601 inflatedRect = inflateRect(inflatedRect, size, buttonMargins(controlSize));
605 paintThemePart(part, paintInfo.context->platformContext(), inflatedRect, controlSize, determineState(o));
681 NSControlSize controlSize = controlSizeFromRect(r, popupButtonSizes());
683 IntSize size = popupButtonSizes()[controlSize];
688 inflatedRect = inflateRect(inflatedRect, size, popupButtonMargins(controlSize));
690 paintThemePart(DropDownButtonPart, info.context->platformContext(), inflatedRect, controlSize, determineState(o));
863 NSControlSize controlSize = controlSizeForFont(style);
884 setFontFromControlSize(selector, style, controlSize);
1077 NSControlSize controlSize = controlSizeForFont(style);
1078 setFontFromControlSize(selector, style, controlSize);