Home | History | Annotate | Download | only in rendering

Lines Matching defs:graphicsContext

84 #include "platform/graphics/GraphicsContext.h"
960 void RenderObject::drawLineForBoxSide(GraphicsContext* graphicsContext, int x1, int y1, int x2, int y2,
988 drawDashedOrDottedBoxSide(graphicsContext, x1, y1, x2, y2, side,
992 drawDoubleBoxSide(graphicsContext, x1, y1, x2, y2, length, side, color,
997 drawRidgeOrGrooveBoxSide(graphicsContext, x1, y1, x2, y2, side, color,
1011 drawSolidBoxSide(graphicsContext, x1, y1, x2, y2, side, color, adjacentWidth1, adjacentWidth2, antialias);
1016 void RenderObject::drawDashedOrDottedBoxSide(GraphicsContext* graphicsContext, int x1, int y1, int x2, int y2,
1022 bool wasAntialiased = graphicsContext->shouldAntialias();
1023 StrokeStyle oldStrokeStyle = graphicsContext->strokeStyle();
1024 graphicsContext->setShouldAntialias(antialias);
1025 graphicsContext->setStrokeColor(color);
1026 graphicsContext->setStrokeThickness(thickness);
1027 graphicsContext->setStrokeStyle(style == DASHED ? DashedStroke : DottedStroke);
1032 graphicsContext->drawLine(IntPoint(x1, (y1 + y2) / 2), IntPoint(x2, (y1 + y2) / 2));
1036 graphicsContext->drawLine(IntPoint((x1 + x2) / 2, y1), IntPoint((x1 + x2) / 2, y2));
1039 graphicsContext->setShouldAntialias(wasAntialiased);
1040 graphicsContext->setStrokeStyle(oldStrokeStyle);
1043 void RenderObject::drawDoubleBoxSide(GraphicsContext* graphicsContext, int x1, int y1, int x2, int y2,
1050 StrokeStyle oldStrokeStyle = graphicsContext->strokeStyle();
1051 graphicsContext->setStrokeStyle(NoStroke);
1052 graphicsContext->setFillColor(color);
1054 bool wasAntialiased = graphicsContext->shouldAntialias();
1055 graphicsContext->setShouldAntialias(antialias);
1060 graphicsContext->drawRect(IntRect(x1, y1, length, thirdOfThickness));
1061 graphicsContext->drawRect(IntRect(x1, y2 - thirdOfThickness, length, thirdOfThickness));
1067 graphicsContext->drawRect(IntRect(x1, y1 + 1, thirdOfThickness, length - 1));
1068 graphicsContext->drawRect(IntRect(x2 - thirdOfThickness, y1 + 1, thirdOfThickness, length - 1));
1073 graphicsContext->setShouldAntialias(wasAntialiased);
1074 graphicsContext->setStrokeStyle(oldStrokeStyle);
1083 drawLineForBoxSide(graphicsContext, x1 + max((-adjacentWidth1 * 2 + 1) / 3, 0),
1086 drawLineForBoxSide(graphicsContext, x1 + max((adjacentWidth1 * 2 + 1) / 3, 0),
1091 drawLineForBoxSide(graphicsContext, x1, y1 + max((-adjacentWidth1 * 2 + 1) / 3, 0),
1094 drawLineForBoxSide(graphicsContext, x2 - thirdOfThickness, y1 + max((adjacentWidth1 * 2 + 1) / 3, 0),
1099 drawLineForBoxSide(graphicsContext, x1 + max((adjacentWidth1 * 2 + 1) / 3, 0),
1102 drawLineForBoxSide(graphicsContext, x1 + max((-adjacentWidth1 * 2 + 1) / 3, 0),
1107 drawLineForBoxSide(graphicsContext, x1, y1 + max((adjacentWidth1 * 2 + 1) / 3, 0),
1110 drawLineForBoxSide(graphicsContext, x2 - thirdOfThickness, y1 + max((-adjacentWidth1 * 2 + 1) / 3, 0),
1119 void RenderObject::drawRidgeOrGrooveBoxSide(GraphicsContext* graphicsContext, int x1, int y1, int x2, int y2,
1137 drawLineForBoxSide(graphicsContext, x1 + max(-adjacentWidth1, 0) / 2, y1, x2 - max(-adjacentWidth2, 0) / 2, (y1 + y2 + 1) / 2,
1139 drawLineForBoxSide(graphicsContext, x1 + max(adjacentWidth1 + 1, 0) / 2, (y1 + y2 + 1) / 2, x2 - max(adjacentWidth2 + 1, 0) / 2, y2,
1143 drawLineForBoxSide(graphicsContext, x1, y1 + max(-adjacentWidth1, 0) / 2, (x1 + x2 + 1) / 2, y2 - max(-adjacentWidth2, 0) / 2,
1145 drawLineForBoxSide(graphicsContext, (x1 + x2 + 1) / 2, y1 + max(adjacentWidth1 + 1, 0) / 2, x2, y2 - max(adjacentWidth2 + 1, 0) / 2,
1149 drawLineForBoxSide(graphicsContext, x1 + max(adjacentWidth1, 0) / 2, y1, x2 - max(adjacentWidth2, 0) / 2, (y1 + y2 + 1) / 2,
1151 drawLineForBoxSide(graphicsContext, x1 + max(-adjacentWidth1 + 1, 0) / 2, (y1 + y2 + 1) / 2, x2 - max(-adjacentWidth2 + 1, 0) / 2, y2,
1155 drawLineForBoxSide(graphicsContext, x1, y1 + max(adjacentWidth1, 0) / 2, (x1 + x2 + 1) / 2, y2 - max(adjacentWidth2, 0) / 2,
1157 drawLineForBoxSide(graphicsContext, (x1 + x2 + 1) / 2, y1 + max(-adjacentWidth1 + 1, 0) / 2, x2, y2 - max(-adjacentWidth2 + 1, 0) / 2,
1163 void RenderObject::drawSolidBoxSide(GraphicsContext* graphicsContext, int x1, int y1, int x2, int y2,
1166 StrokeStyle oldStrokeStyle = graphicsContext->strokeStyle();
1167 graphicsContext->setStrokeStyle(NoStroke);
1168 graphicsContext->setFillColor(color);
1174 bool wasAntialiased = graphicsContext->shouldAntialias();
1175 graphicsContext->setShouldAntialias(antialias);
1176 graphicsContext->drawRect(IntRect(x1, y1, x2 - x1, y2 - y1));
1177 graphicsContext->setShouldAntialias(wasAntialiased);
1178 graphicsContext->setStrokeStyle(oldStrokeStyle);
1209 graphicsContext->drawConvexPolygon(4, quad, antialias);
1210 graphicsContext->setStrokeStyle(oldStrokeStyle);
1223 void RenderObject::addPDFURLRect(GraphicsContext* context, const LayoutRect& rect)
1278 GraphicsContext* graphicsContext = paintInfo.context;
1285 graphicsContext->setFillRule(RULE_EVENODD);
1286 graphicsContext->setFillColor(outlineColor);
1287 graphicsContext->fillPath(path);
1290 graphicsContext->beginTransparencyLayer(static_cast<float>(outlineColor.alpha()) / 255);
1303 drawLineForBoxSide(graphicsContext, leftOuter, topOuter, leftInner, bottomOuter, BSLeft, outlineColor, outlineStyle, outlineWidth, outlineWidth);
1304 drawLineForBoxSide(graphicsContext, leftOuter, topOuter, rightOuter, topInner, BSTop, outlineColor, outlineStyle, outlineWidth, outlineWidth);
1305 drawLineForBoxSide(graphicsContext, rightInner, topOuter, rightOuter, bottomOuter, BSRight, outlineColor, outlineStyle, outlineWidth, outlineWidth);
1306 drawLineForBoxSide(graphicsContext, leftOuter, bottomInner, rightOuter, bottomOuter, BSBottom, outlineColor, outlineStyle, outlineWidth, outlineWidth);
1309 graphicsContext->endLayer();