Home | History | Annotate | Download | only in rendering

Lines Matching refs:graphicsContext

40 #include "GraphicsContext.h"
709 void RenderObject::drawLineForBoxSide(GraphicsContext* graphicsContext, int x1, int y1, int x2, int y2,
724 graphicsContext->setStrokeColor(color, m_style->colorSpace());
725 graphicsContext->setStrokeThickness(width);
726 graphicsContext->setStrokeStyle(style == DASHED ? DashedStroke : DottedStroke);
729 bool wasAntialiased = graphicsContext->shouldAntialias();
730 graphicsContext->setShouldAntialias(antialias);
735 graphicsContext->drawLine(IntPoint(x1, (y1 + y2) / 2), IntPoint(x2, (y1 + y2) / 2));
739 graphicsContext->drawLine(IntPoint((x1 + x2) / 2, y1), IntPoint((x1 + x2) / 2, y2));
742 graphicsContext->setShouldAntialias(wasAntialiased);
749 graphicsContext->setStrokeStyle(NoStroke);
750 graphicsContext->setFillColor(color, m_style->colorSpace());
752 bool wasAntialiased = graphicsContext->shouldAntialias();
753 graphicsContext->setShouldAntialias(antialias);
758 graphicsContext->drawRect(IntRect(x1, y1, x2 - x1, third));
759 graphicsContext->drawRect(IntRect(x1, y2 - third, x2 - x1, third));
762 graphicsContext->drawRect(IntRect(x1, y1 + 1, third, y2 - y1 - 1));
763 graphicsContext->drawRect(IntRect(x2 - third, y1 + 1, third, y2 - y1 - 1));
766 graphicsContext->drawRect(IntRect(x1, y1 + 1, third, y2 - y1 - 1));
767 graphicsContext->drawRect(IntRect(x2 - third, y1 + 1, third, y2 - y1 - 1));
771 graphicsContext->setShouldAntialias(wasAntialiased);
778 drawLineForBoxSide(graphicsContext, x1 + max((-adjacentWidth1 * 2 + 1) / 3, 0),
781 drawLineForBoxSide(graphicsContext, x1 + max((adjacentWidth1 * 2 + 1) / 3, 0),
786 drawLineForBoxSide(graphicsContext, x1, y1 + max((-adjacentWidth1 * 2 + 1) / 3, 0),
789 drawLineForBoxSide(graphicsContext, x2 - third, y1 + max((adjacentWidth1 * 2 + 1) / 3, 0),
794 drawLineForBoxSide(graphicsContext, x1 + max((adjacentWidth1 * 2 + 1) / 3, 0),
797 drawLineForBoxSide(graphicsContext, x1 + max((-adjacentWidth1 * 2 + 1) / 3, 0),
802 drawLineForBoxSide(graphicsContext, x1, y1 + max((adjacentWidth1 * 2 + 1) / 3, 0),
805 drawLineForBoxSide(graphicsContext, x2 - third, y1 + max((-adjacentWidth1 * 2 + 1) / 3, 0),
832 drawLineForBoxSide(graphicsContext, x1 + max(-adjacentWidth1, 0) / 2, y1, x2 - max(-adjacentWidth2, 0) / 2, (y1 + y2 + 1) / 2,
834 drawLineForBoxSide(graphicsContext, x1 + max(adjacentWidth1 + 1, 0) / 2, (y1 + y2 + 1) / 2, x2 - max(adjacentWidth2 + 1, 0) / 2, y2,
838 drawLineForBoxSide(graphicsContext, x1, y1 + max(-adjacentWidth1, 0) / 2, (x1 + x2 + 1) / 2, y2 - max(-adjacentWidth2, 0) / 2,
840 drawLineForBoxSide(graphicsContext, (x1 + x2 + 1) / 2, y1 + max(adjacentWidth1 + 1, 0) / 2, x2, y2 - max(adjacentWidth2 + 1, 0) / 2,
844 drawLineForBoxSide(graphicsContext, x1 + max(adjacentWidth1, 0) / 2, y1, x2 - max(adjacentWidth2, 0) / 2, (y1 + y2 + 1) / 2,
846 drawLineForBoxSide(graphicsContext, x1 + max(-adjacentWidth1 + 1, 0) / 2, (y1 + y2 + 1) / 2, x2 - max(-adjacentWidth2 + 1, 0) / 2, y2,
850 drawLineForBoxSide(graphicsContext, x1, y1 + max(adjacentWidth1, 0) / 2, (x1 + x2 + 1) / 2, y2 - max(adjacentWidth2, 0) / 2,
852 drawLineForBoxSide(graphicsContext, (x1 + x2 + 1) / 2, y1 + max(-adjacentWidth1 + 1, 0) / 2, x2, y2 - max(-adjacentWidth2 + 1, 0) / 2,
869 graphicsContext->setStrokeStyle(NoStroke);
870 graphicsContext->setFillColor(color, m_style->colorSpace());
876 bool wasAntialiased = graphicsContext->shouldAntialias();
877 graphicsContext->setShouldAntialias(antialias);
878 graphicsContext->drawRect(IntRect(x1, y1, x2 - x1, y2 - y1));
879 graphicsContext->setShouldAntialias(wasAntialiased);
910 graphicsContext->drawConvexPolygon(4, quad, antialias);
926 void RenderObject::drawArcForBoxSide(GraphicsContext* graphicsContext, int x, int y, float thickness, const IntSize& radius,
930 // FIXME: This function should be removed when all ports implement GraphicsContext::clipConvexPolygon()!!
941 graphicsContext->setStrokeColor(color, m_style->colorSpace());
942 graphicsContext->setStrokeStyle(style == DOTTED ? DottedStroke : DashedStroke);
943 graphicsContext->setStrokeThickness(thickness);
944 graphicsContext->strokeArc(IntRect(x, y, radius.width() * 2, radius.height() * 2), angleStart, angleSpan);
962 graphicsContext->setStrokeStyle(SolidStroke);
963 graphicsContext->setStrokeColor(color, m_style->colorSpace());
964 graphicsContext->setStrokeThickness(third);
965 graphicsContext->strokeArc(IntRect(x, outerY, radius.width() * 2, outerHeight), angleStart, angleSpan);
966 graphicsContext->setStrokeThickness(innerThird > 2 ? innerThird - 1 : innerThird);
967 graphicsContext->strokeArc(IntRect(innerX, innerY, innerWidth, innerHeight), angleStart, angleSpan);
981 graphicsContext->setStrokeStyle(SolidStroke);
982 graphicsContext->setStrokeColor(color, m_style->colorSpace());
983 graphicsContext->setStrokeThickness(thickness);
984 graphicsContext->strokeArc(IntRect(x, y, radius.width() * 2, radius.height() * 2), angleStart, angleSpan);
988 graphicsContext->setStrokeColor(c2, m_style->colorSpace());
989 graphicsContext->setStrokeThickness(halfThickness > 2 ? halfThickness - 1 : halfThickness);
990 graphicsContext->strokeArc(IntRect(x + shiftForInner, y + shiftForInner, (radius.width() - shiftForInner) * 2,
1001 graphicsContext->setStrokeStyle(SolidStroke);
1002 graphicsContext->setStrokeColor(color, m_style->colorSpace());
1003 graphicsContext->setStrokeThickness(thickness);
1004 graphicsContext->strokeArc(IntRect(x, y, radius.width() * 2, radius.height() * 2), angleStart, angleSpan);
1010 void RenderObject::paintFocusRing(GraphicsContext* context, int tx, int ty, RenderStyle* style)
1020 void RenderObject::addPDFURLRect(GraphicsContext* context, const IntRect& rect)
1033 void RenderObject::paintOutline(GraphicsContext* graphicsContext, int tx, int ty, int w, int h)
1049 paintFocusRing(graphicsContext, tx, ty, styleToUse);
1064 drawLineForBoxSide(graphicsContext, tx - ow, ty - ow, tx, ty + h + ow, BSLeft, oc, os, ow, ow);
1065 drawLineForBoxSide(graphicsContext, tx - ow, ty - ow, tx + w + ow, ty, BSTop, oc, os, ow, ow);
1066 drawLineForBoxSide(graphicsContext, tx + w, ty - ow, tx + w + ow, ty + h + ow, BSRight, oc, os, ow, ow);
1067 drawLineForBoxSide(graphicsContext, tx - ow, ty + h, tx + w + ow, ty + h + ow, BSBottom, oc, os, ow, ow);