示例#1
0
  // ScrollableArea Impl
  int scrollSize(ScrollbarOrientation orientation) const override {
    IntSize scrollDimensions =
        maximumScrollOffsetInt() - minimumScrollOffsetInt();

    return (orientation == HorizontalScrollbar) ? scrollDimensions.width()
                                                : scrollDimensions.height();
  }
示例#2
0
int RootFrameViewport::scrollSize(ScrollbarOrientation orientation) const {
  IntSize scrollDimensions =
      maximumScrollOffsetInt() - minimumScrollOffsetInt();
  return (orientation == HorizontalScrollbar) ? scrollDimensions.width()
                                              : scrollDimensions.height();
}