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