void RenderTextControlSingleLine::autoscroll(const IntPoint& position) { RenderTextControlInnerBlock* renderer = innerTextElement()->renderer(); if (!renderer) return; RenderLayer* layer = renderer->layer(); if (layer) layer->autoscroll(position); }
bool RenderTextControlSingleLine::scroll(ScrollDirection direction, ScrollGranularity granularity, float multiplier, Element** stopElement, RenderBox* startBox, const IntPoint& wheelEventAbsolutePoint) { RenderTextControlInnerBlock* renderer = innerTextElement()->renderer(); if (!renderer) return false; RenderLayer* layer = renderer->layer(); if (layer && layer->scroll(direction, granularity, multiplier)) return true; return RenderBlockFlow::scroll(direction, granularity, multiplier, stopElement, startBox, wheelEventAbsolutePoint); }