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

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