Home | History | Annotate | Download | only in rendering

Lines Matching defs:graphicsContext

103 InterpolationQuality RenderBoxModelObject::chooseInterpolationQuality(GraphicsContext* context, Image* image, const void* layer, const LayoutSize& size)
445 void RenderBoxModelObject::clipRoundedInnerRect(GraphicsContext * context, const LayoutRect& rect, const RoundedRect& clipRect)
479 static LayoutRect shrinkRectByOnePixel(GraphicsContext* context, const LayoutRect& rect)
488 LayoutRect RenderBoxModelObject::borderInnerRectAdjustedForBleedAvoidance(GraphicsContext* context, const LayoutRect& rect, BackgroundBleedAvoidance bleedAvoidance) const
494 RoundedRect RenderBoxModelObject::backgroundRoundedRectAdjustedForBleedAvoidance(GraphicsContext* context, const LayoutRect& borderRect, BackgroundBleedAvoidance bleedAvoidance, InlineFlowBox* box, const LayoutSize& boxSize, bool includeLogicalLeftEdge, bool includeLogicalRightEdge) const
506 static void applyBoxShadowForBackground(GraphicsContext* context, const RenderObject* renderer)
524 GraphicsContext* context = paintInfo.context;
1160 bool RenderBoxModelObject::paintNinePieceImage(GraphicsContext* graphicsContext, const LayoutRect& rect, const RenderStyle* style,
1241 graphicsContext->drawImage(image.get(), IntRect(borderImageRect.location(), IntSize(leftWidth, topWidth)),
1247 graphicsContext->drawImage(image.get(), IntRect(borderImageRect.x(), borderImageRect.maxY() - bottomWidth, leftWidth, bottomWidth),
1253 graphicsContext->drawTiledImage(image.get(), IntRect(borderImageRect.x(), borderImageRect.y() + topWidth, leftWidth, destinationHeight),
1263 graphicsContext->drawImage(image.get(), IntRect(borderImageRect.maxX() - rightWidth, borderImageRect.y(), rightWidth, topWidth),
1269 graphicsContext->drawImage(image.get(), IntRect(borderImageRect.maxX() - rightWidth, borderImageRect.maxY() - bottomWidth, rightWidth, bottomWidth),
1274 graphicsContext->drawTiledImage(image.get(), IntRect(borderImageRect.maxX() - rightWidth, borderImageRect.y() + topWidth, rightWidth,
1283 graphicsContext->drawTiledImage(image.get(), IntRect(borderImageRect.x() + leftWidth, borderImageRect.y(), destinationWidth, topWidth),
1289 graphicsContext->drawTiledImage(image.get(), IntRect(borderImageRect.x() + leftWidth, borderImageRect.maxY() - bottomWidth,
1317 graphicsContext->drawTiledImage(image.get(),
1581 void RenderBoxModelObject::paintOneBorderSide(GraphicsContext* graphicsContext, const RenderStyle* style, const RoundedRect& outerBorder, const RoundedRect& innerBorder,
1599 GraphicsContextStateSaver stateSaver(*graphicsContext);
1601 clipBorderSidePolygon(graphicsContext, outerBorder, innerBorder, side, adjacentSide1StylesMatch, adjacentSide2StylesMatch);
1603 clipBorderSideForComplexInnerPath(graphicsContext, outerBorder, innerBorder, side, edges);
1605 drawBoxSideFromPath(graphicsContext, outerBorder.rect(), *path, edges, edgeToRender.width, thickness, side, style,
1613 GraphicsContextStateSaver clipStateSaver(*graphicsContext, shouldClip);
1617 clipBorderSidePolygon(graphicsContext, outerBorder, innerBorder, side, !aliasAdjacentSide1, !aliasAdjacentSide2);
1623 drawLineForBoxSide(graphicsContext, sideRect.x(), sideRect.y(), sideRect.maxX(), sideRect.maxY(), side, colorToPaint, edgeToRender.style,
1645 void RenderBoxModelObject::paintBorderSides(GraphicsContext* graphicsContext, const RenderStyle* style, const RoundedRect& outerBorder, const RoundedRect& innerBorder,
1665 paintOneBorderSide(graphicsContext, style, outerBorder, innerBorder, sideRect, BSTop, BSLeft, BSRight, edges, usePath ? &roundedPath : 0, bleedAvoidance, includeLogicalLeftEdge, includeLogicalRightEdge, antialias, overrideColor);
1673 paintOneBorderSide(graphicsContext, style, outerBorder, innerBorder, sideRect, BSBottom, BSLeft, BSRight, edges, usePath ? &roundedPath : 0, bleedAvoidance, includeLogicalLeftEdge, includeLogicalRightEdge, antialias, overrideColor);
1681 paintOneBorderSide(graphicsContext, style, outerBorder, innerBorder, sideRect, BSLeft, BSTop, BSBottom, edges, usePath ? &roundedPath : 0, bleedAvoidance, includeLogicalLeftEdge, includeLogicalRightEdge, antialias, overrideColor);
1689 paintOneBorderSide(graphicsContext, style, outerBorder, innerBorder, sideRect, BSRight, BSTop, BSBottom, edges, usePath ? &roundedPath : 0, bleedAvoidance, includeLogicalLeftEdge, includeLogicalRightEdge, antialias, overrideColor);
1693 void RenderBoxModelObject::paintTranslucentBorderSides(GraphicsContext* graphicsContext, const RenderStyle* style, const RoundedRect& outerBorder, const RoundedRect& innerBorder, const IntPoint& innerBorderAdjustment,
1723 graphicsContext->beginTransparencyLayer(static_cast<float>(commonColor.alpha()) / 255);
1727 paintBorderSides(graphicsContext, style, outerBorder, innerBorder, innerBorderAdjustment, edges, commonColorEdgeSet, bleedAvoidance, includeLogicalLeftEdge, includeLogicalRightEdge, antialias, &commonColor);
1730 graphicsContext->endLayer();
1739 GraphicsContext* graphicsContext = info.context;
1741 if (paintNinePieceImage(graphicsContext, rect, style, style->borderImage()))
1744 if (graphicsContext->paintingDisabled())
1750 RoundedRect innerBorder = style->getRoundedInnerBorderFor(borderInnerRectAdjustedForBleedAvoidance(graphicsContext, rect, bleedAvoidance), includeLogicalLeftEdge, includeLogicalRightEdge);
1818 graphicsContext->fillBetweenRoundedRects(outerBorder, innerBorder, edges[firstVisibleEdge].color);
1870 graphicsContext->setFillRule(RULE_EVENODD);
1871 graphicsContext->setFillColor(edges[firstVisibleEdge].color);
1872 graphicsContext->fillPath(path);
1887 graphicsContext->setFillRule(RULE_NONZERO);
1888 graphicsContext->setFillColor(edges[firstVisibleEdge].color);
1889 graphicsContext->fillPath(path);
1895 GraphicsContextStateSaver stateSaver(*graphicsContext, clipToOuterBorder);
1899 graphicsContext->clipRoundedRect(outerBorder);
1903 graphicsContext->clipOutRoundedRect(innerBorder);
1907 bool antialias = shouldAntialiasLines(graphicsContext) || numEdgesVisible == 1;
1911 paintTranslucentBorderSides(graphicsContext, style, outerBorder, unadjustedInnerBorder, innerBorderAdjustment, edges, edgesToDraw, bleedAvoidance, includeLogicalLeftEdge, includeLogicalRightEdge, antialias);
1913 paintBorderSides(graphicsContext, style, outerBorder, unadjustedInnerBorder, innerBorderAdjustment, edges, edgesToDraw, bleedAvoidance, includeLogicalLeftEdge, includeLogicalRightEdge, antialias);
1916 void RenderBoxModelObject::drawBoxSideFromPath(GraphicsContext* graphicsContext, const LayoutRect& borderRect, const Path& borderPath, const BorderEdge edges[],
1932 graphicsContext->setStrokeColor(color);
1938 graphicsContext->setStrokeThickness(drawThickness * 2 * 1.1f);
1939 graphicsContext->setStrokeStyle(borderStyle == DASHED ? DashedStroke : DottedStroke);
1962 graphicsContext->setLineDash(lineDash, dashLength);
1968 graphicsContext->strokePath(borderPath);
1991 GraphicsContextStateSaver stateSaver(*graphicsContext);
1996 graphicsContext->clipRoundedRect(innerClip);
1997 drawBoxSideFromPath(graphicsContext, borderRect, borderPath, edges, thickness, drawThickness, side, style, color, SOLID, bleedAvoidance, includeLogicalLeftEdge, includeLogicalRightEdge);
2002 GraphicsContextStateSaver stateSaver(*graphicsContext);
2015 graphicsContext->clipOutRoundedRect(outerClip);
2016 drawBoxSideFromPath(graphicsContext, borderRect, borderPath, edges, thickness, drawThickness, side, style, color, SOLID, bleedAvoidance, includeLogicalLeftEdge, includeLogicalRightEdge);
2034 drawBoxSideFromPath(graphicsContext, borderRect, borderPath, edges, thickness, drawThickness, side, style, color, s1, bleedAvoidance, includeLogicalLeftEdge, includeLogicalRightEdge);
2037 GraphicsContextStateSaver stateSaver(*graphicsContext);
2047 graphicsContext->clipRoundedRect(clipRect);
2048 drawBoxSideFromPath(graphicsContext, borderRect, borderPath, edges, thickness, drawThickness, side, style, color, s2, bleedAvoidance, includeLogicalLeftEdge, includeLogicalRightEdge);
2063 graphicsContext->setStrokeStyle(NoStroke);
2064 graphicsContext->setFillColor(color);
2065 graphicsContext->drawRect(pixelSnappedIntRect(borderRect));
2068 void RenderBoxModelObject::clipBorderSidePolygon(GraphicsContext* graphicsContext, const RoundedRect& outerBorder, const RoundedRect& innerBorder,
2213 graphicsContext->clipConvexPolygon(4, quad, !firstEdgeMatches);
2245 graphicsContext->clipConvexPolygon(4, firstQuad, !firstEdgeMatches);
2252 graphicsContext->clipConvexPolygon(4, secondQuad, !secondEdgeMatches);
2362 void RenderBoxModelObject::clipBorderSideForComplexInnerPath(GraphicsContext* graphicsContext, const RoundedRect& outerBorder, const RoundedRect& innerBorder,
2365 graphicsContext->clip(calculateSideRectIncludingInner(outerBorder, edges, side));
2368 graphicsContext->clipOutRoundedRect(adjustedInnerRect);
2493 GraphicsContext* context = info.context;
2598 GraphicsContext::Edges clippedEdges = GraphicsContext::NoEdge;
2601 clippedEdges |= GraphicsContext::LeftEdge;
2603 clippedEdges |= GraphicsContext::TopEdge;
2607 clippedEdges |= GraphicsContext::RightEdge;
2609 clippedEdges |= GraphicsContext::BottomEdge;
2736 bool RenderBoxModelObject::shouldAntialiasLines(GraphicsContext* context)