Home | History | Annotate | Download | only in css

Lines Matching refs:secondPoint

475 static void endPointsFromAngle(float angleDeg, const IntSize& size, FloatPoint& firstPoint, FloatPoint& secondPoint)
483 secondPoint.set(size.width(), 0);
489 secondPoint.set(0, 0);
495 secondPoint.set(0, 0);
524 secondPoint.set(halfWidth + endX, size.height() - (halfHeight + endY));
526 firstPoint.set(size.width() - secondPoint.x(), size.height() - secondPoint.y());
536 FloatPoint secondPoint;
539 endPointsFromAngle(angle, size, firstPoint, secondPoint);
544 secondPoint = computeEndPoint(m_secondX.get(), m_secondY.get(), renderer->style(), rootStyle, size);
547 secondPoint.setX(size.width() - firstPoint.x());
549 secondPoint.setY(size.height() - firstPoint.y());
553 RefPtr<Gradient> gradient = Gradient::create(firstPoint, secondPoint);
734 FloatPoint secondPoint = computeEndPoint(m_secondX.get(), m_secondY.get(), renderer->style(), rootStyle, size);
736 secondPoint.setX(size.width() / 2);
738 secondPoint.setY(size.height() / 2);
786 float xDist = min(secondPoint.x(), size.width() - secondPoint.x());
787 float yDist = min(secondPoint.y(), size.height() - secondPoint.y());
798 float xDist = max(secondPoint.x(), size.width() - secondPoint.x());
799 float yDist = max(secondPoint.y(), size.height() - secondPoint.y());
811 float distance = distanceToClosestCorner(secondPoint, size, corner);
817 float xDist = min(secondPoint.x(), size.width() - secondPoint.x());
818 float yDist = min(secondPoint.y(), size.height() - secondPoint.y());
820 secondRadius = horizontalEllipseRadius(corner - secondPoint, xDist / yDist);
828 float distance = distanceToFarthestCorner(secondPoint, size, corner);
834 float xDist = max(secondPoint.x(), size.width() - secondPoint.x());
835 float yDist = max(secondPoint.y(), size.height() - secondPoint.y());
837 secondRadius = horizontalEllipseRadius(corner - secondPoint, xDist / yDist);
845 RefPtr<Gradient> gradient = Gradient::create(firstPoint, firstRadius, secondPoint, secondRadius, aspectRatio);
851 maxExtent = distanceToFarthestCorner(secondPoint, size, corner);