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()); }
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()); }