float Axis::GetPageEnd() {
  return GetPageStart() + GetPageLength();
}
Example #2
0
bool Axis::Scrollable() {
    if (mAxisLocked) {
        return false;
    }
    return GetCompositionLength() < GetPageLength();
}
Example #3
0
CSSCoord Axis::GetPageEnd() const {
  return GetPageStart() + GetPageLength();
}
Example #4
0
bool Axis::CanScroll() const {
  return GetPageLength() - GetCompositionLength() > COORDINATE_EPSILON;
}
Example #5
0
bool Axis::ScaleWillOverscrollBothSides(float aScale) const {
  const FrameMetrics& metrics = GetFrameMetrics();
  ParentLayerRect screenCompositionBounds = metrics.GetCompositionBounds()
                                          / ParentLayerToParentLayerScale(aScale);
  return GetRectLength(screenCompositionBounds) - GetPageLength() > COORDINATE_EPSILON;
}
Example #6
0
ParentLayerCoord Axis::GetPageEnd() const {
  return GetPageStart() + GetPageLength();
}