Ejemplo n.º 1
0
void RenderTheme::updateControlStatesForRenderer(const RenderBox& box, ControlStates& controlStates) const
{
    ControlStates newStates = extractControlStatesForRenderer(box);
    controlStates.setStates(newStates.states());
    if (isFocused(box))
        controlStates.setTimeSinceControlWasFocused(box.document().page()->focusController().timeSinceFocusWasSet());
}
Ejemplo n.º 2
0
void RenderTheme::updateControlStatesForRenderer(const RenderObject& o, ControlStates* controlStates) const
{
    ControlStates newStates = extractControlStatesForRenderer(o);
    controlStates->setStates(newStates.states());
    if (isFocused(o))
        controlStates->setTimeSinceControlWasFocused(o.document().page()->focusController().timeSinceFocusWasSet());
}
Ejemplo n.º 3
0
void RenderTheme::adjustRepaintRect(const RenderObject& renderer, FloatRect& rect)
{
#if USE(NEW_THEME)
    ControlStates states(extractControlStatesForRenderer(renderer));
    m_theme->inflateControlPaintRect(renderer.style().appearance(), states, rect, renderer.style().effectiveZoom());
#else
    UNUSED_PARAM(renderer);
    UNUSED_PARAM(rect);
#endif
}
Ejemplo n.º 4
0
void RenderTheme::adjustRepaintRect(const RenderObject& o, IntRect& r)
{
#if USE(NEW_THEME)
    ControlStates states(extractControlStatesForRenderer(o));
    m_theme->inflateControlPaintRect(o.style().appearance(), &states, r, o.style().effectiveZoom());
#else
    UNUSED_PARAM(o);
    UNUSED_PARAM(r);
#endif
}