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