/external/webkit/Source/WebCore/platform/graphics/ |
D | ShadowBlur.cpp | 399 void ShadowBlur::drawShadowBuffer(GraphicsContext* graphicsContext) in drawShadowBuffer() argument 404 graphicsContext->save(); in drawShadowBuffer() 410 graphicsContext->clip(FloatRect(m_layerOrigin, m_layerSize)); in drawShadowBuffer() 412 graphicsContext->clipToImageBuffer(m_layerImage, FloatRect(m_layerOrigin, bufferSize)); in drawShadowBuffer() 413 graphicsContext->setFillColor(m_color, m_colorSpace); in drawShadowBuffer() 415 graphicsContext->clearShadow(); in drawShadowBuffer() 416 graphicsContext->fillRect(FloatRect(m_layerOrigin, m_sourceRect.size())); in drawShadowBuffer() 418 graphicsContext->restore(); in drawShadowBuffer() 444 void ShadowBlur::drawRectShadow(GraphicsContext* graphicsContext, const FloatRect& shadowedRect, co… in drawRectShadow() argument 446 …IntRect layerRect = calculateLayerBoundingRect(graphicsContext, shadowedRect, graphicsContext->cli… in drawRectShadow() [all …]
|
/external/webkit/Source/WebKit2/UIProcess/ |
D | FindIndicator.cpp | 145 void FindIndicator::draw(GraphicsContext& graphicsContext, const IntRect& dirtyRect) in draw() argument 151 graphicsContext.save(); in draw() 153 …graphicsContext.setShadow(FloatSize(shadowOffsetX, shadowOffsetY), shadowBlurRadius, shadowColor()… in draw() 154 graphicsContext.setFillColor(lightBorderColor(), ColorSpaceDeviceRGB); in draw() 155 graphicsContext.fillPath(pathWithRoundedRect(outerPathRect, cornerRadius)); in draw() 156 graphicsContext.restore(); in draw() 158 graphicsContext.save(); in draw() 160 graphicsContext.clip(pathWithRoundedRect(innerPathRect, cornerRadius)); in draw() 164 graphicsContext.setFillGradient(gradient); in draw() 165 graphicsContext.fillRect(outerPathRect); in draw() [all …]
|
/external/webkit/Source/WebCore/platform/graphics/win/ |
D | FontCGWin.cpp | 130 static void drawGDIGlyphs(GraphicsContext* graphicsContext, const SimpleFontData* font, const Glyph… in drawGDIGlyphs() argument 133 Color fillColor = graphicsContext->fillColor(); in drawGDIGlyphs() 136 TextDrawingModeFlags drawingMode = graphicsContext->textDrawingMode(); in drawGDIGlyphs() 141 drawIntoBitmap = fillColor.alpha() != 255 || graphicsContext->inTransparencyLayer(); in drawGDIGlyphs() 148 graphicsContext->getShadow(offset, blur, color, shadowColorSpace); in drawGDIGlyphs() 165 hdc = graphicsContext->getWindowsContext(textRect, true, false); in drawGDIGlyphs() 176 bitmap.set(graphicsContext->createWindowsBitmap(textRect.size())); in drawGDIGlyphs() 240 CGContextRef cgContext = graphicsContext->platformContext(); in drawGDIGlyphs() 295 graphicsContext->drawWindowsBitmap(bitmap.get(), textRect.location()); in drawGDIGlyphs() 297 graphicsContext->releaseWindowsContext(hdc, textRect, true, false); in drawGDIGlyphs() [all …]
|
D | LocalWindowsContext.h | 37 …LocalWindowsContext(GraphicsContext* graphicsContext, const IntRect& rect, bool supportAlphaBlend … 38 : m_graphicsContext(graphicsContext) in m_graphicsContext() argument
|
/external/webkit/Source/WebCore/rendering/ |
D | RenderBoxModelObject.cpp | 925 bool RenderBoxModelObject::paintNinePieceImage(GraphicsContext* graphicsContext, int tx, int ty, in… in paintNinePieceImage() argument 976 … graphicsContext->drawImage(image.get(), colorSpace, IntRect(tx, ty, leftWidth, topWidth), in paintNinePieceImage() 982 …graphicsContext->drawImage(image.get(), colorSpace, IntRect(tx, ty + h - bottomWidth, leftWidth, b… in paintNinePieceImage() 987 … graphicsContext->drawTiledImage(image.get(), colorSpace, IntRect(tx, ty + topWidth, leftWidth, in paintNinePieceImage() 998 …graphicsContext->drawImage(image.get(), colorSpace, IntRect(tx + w - rightWidth, ty, rightWidth, t… in paintNinePieceImage() 1004 …graphicsContext->drawImage(image.get(), colorSpace, IntRect(tx + w - rightWidth, ty + h - bottomWi… in paintNinePieceImage() 1008 …graphicsContext->drawTiledImage(image.get(), colorSpace, IntRect(tx + w - rightWidth, ty + topWidt… in paintNinePieceImage() 1016 …graphicsContext->drawTiledImage(image.get(), colorSpace, IntRect(tx + leftWidth, ty, w - leftWidth… in paintNinePieceImage() 1022 …graphicsContext->drawTiledImage(image.get(), colorSpace, IntRect(tx + leftWidth, ty + h - bottomWi… in paintNinePieceImage() 1029 …graphicsContext->drawTiledImage(image.get(), colorSpace, IntRect(tx + leftWidth, ty + topWidth, w … in paintNinePieceImage() [all …]
|
D | RenderObject.cpp | 709 void RenderObject::drawLineForBoxSide(GraphicsContext* graphicsContext, int x1, int y1, int x2, int… in drawLineForBoxSide() argument 724 graphicsContext->setStrokeColor(color, m_style->colorSpace()); in drawLineForBoxSide() 725 graphicsContext->setStrokeThickness(width); in drawLineForBoxSide() 726 graphicsContext->setStrokeStyle(style == DASHED ? DashedStroke : DottedStroke); in drawLineForBoxSide() 729 bool wasAntialiased = graphicsContext->shouldAntialias(); in drawLineForBoxSide() 730 graphicsContext->setShouldAntialias(antialias); in drawLineForBoxSide() 735 … graphicsContext->drawLine(IntPoint(x1, (y1 + y2) / 2), IntPoint(x2, (y1 + y2) / 2)); in drawLineForBoxSide() 739 … graphicsContext->drawLine(IntPoint((x1 + x2) / 2, y1), IntPoint((x1 + x2) / 2, y2)); in drawLineForBoxSide() 742 graphicsContext->setShouldAntialias(wasAntialiased); in drawLineForBoxSide() 749 graphicsContext->setStrokeStyle(NoStroke); in drawLineForBoxSide() [all …]
|
D | RenderFieldset.cpp | 164 GraphicsContext* graphicsContext = paintInfo.context; in paintBoxDecorations() local 165 graphicsContext->save(); in paintBoxDecorations() 173 graphicsContext->clipOut(IntRect(tx + legend->x(), clipTop, legend->width(), clipHeight)); in paintBoxDecorations() 177 graphicsContext->clipOut(IntRect(clipLeft, ty + legend->y(), clipWidth, legend->height())); in paintBoxDecorations() 182 graphicsContext->restore(); in paintBoxDecorations()
|
/external/webkit/Source/WebCore/platform/wx/wxcode/mac/carbon/ |
D | non-kerned-drawing.cpp | 44 void drawTextWithSpacing(GraphicsContext* graphicsContext, const SimpleFontData* font, const wxColo… in drawTextWithSpacing() argument 46 graphicsContext->save(); in drawTextWithSpacing() 48 wxGCDC* dc = static_cast<wxGCDC*>(graphicsContext->platformContext()); in drawTextWithSpacing() 51 graphicsContext->setFillColor(graphicsContext->fillColor(), ColorSpaceDeviceRGB); in drawTextWithSpacing() 62 graphicsContext->fillColor().getRGBA(red, green, blue, alpha); in drawTextWithSpacing() 77 graphicsContext->restore(); in drawTextWithSpacing()
|
/external/webkit/Source/WebCore/platform/graphics/chromium/ |
D | FontChromiumWin.cpp | 377 static void drawGlyphsWin(GraphicsContext* graphicsContext, in drawGlyphsWin() argument 383 graphicsContext->platformContext()->prepareForSoftwareDraw(); in drawGlyphsWin() 385 … TransparencyAwareGlyphPainter painter(graphicsContext, font, glyphBuffer, from, numGlyphs, point); in drawGlyphsWin() 445 void Font::drawGlyphs(GraphicsContext* graphicsContext, in drawGlyphs() argument 452 SkColor color = graphicsContext->platformContext()->effectiveFillColor(); in drawGlyphs() 455 …if (!alpha && graphicsContext->platformContext()->getStrokeStyle() == NoStroke && !graphicsContext… in drawGlyphs() 458 drawGlyphsWin(graphicsContext, font, glyphBuffer, from, numGlyphs, point); in drawGlyphs() 480 void Font::drawComplexText(GraphicsContext* graphicsContext, in drawComplexText() argument 486 PlatformGraphicsContext* context = graphicsContext->platformContext(); in drawComplexText() 489 SkColor color = graphicsContext->platformContext()->effectiveFillColor(); in drawComplexText() [all …]
|
/external/webkit/Source/WebKit2/WebProcess/WebPage/ |
D | PageOverlay.cpp | 100 void PageOverlay::drawRect(GraphicsContext& graphicsContext, const IntRect& dirtyRect) in drawRect() argument 107 graphicsContext.save(); in drawRect() 108 graphicsContext.beginTransparencyLayer(1); in drawRect() 109 graphicsContext.setCompositeOperation(CompositeCopy); in drawRect() 111 m_client->drawRect(this, graphicsContext, paintRect); in drawRect() 113 graphicsContext.endTransparencyLayer(); in drawRect() 114 graphicsContext.restore(); in drawRect()
|
D | FindController.cpp | 183 … OwnPtr<GraphicsContext> graphicsContext = findIndicatorTextBackingStore->createGraphicsContext(); in updateFindIndicator() local 189 graphicsContext->translate(-paintRect.x(), -paintRect.y()); in updateFindIndicator() 193 selectedFrame->view()->paint(graphicsContext.get(), paintRect); in updateFindIndicator() 293 void FindController::drawRect(PageOverlay* pageOverlay, GraphicsContext& graphicsContext, const Int… in drawRect() argument 300 graphicsContext.fillRect(dirtyRect, overlayBackgroundColor(fractionFadedIn), ColorSpaceSRGB); in drawRect() 302 graphicsContext.save(); in drawRect() 303 …graphicsContext.setShadow(FloatSize(shadowOffsetX, shadowOffsetY), shadowBlurRadius, holeShadowCol… in drawRect() 305 graphicsContext.setFillColor(holeFillColor(fractionFadedIn), ColorSpaceSRGB); in drawRect() 312 graphicsContext.fillRect(whiteFrameRect); in drawRect() 315 graphicsContext.restore(); in drawRect() [all …]
|
/external/webkit/Source/WebCore/page/ |
D | PrintContext.cpp | 328 void PrintContext::spoolAllPagesWithBoundaries(Frame* frame, GraphicsContext& graphicsContext, cons… in spoolAllPagesWithBoundaries() argument 346 graphicsContext.setFillColor(Color(255, 255, 255), ColorSpaceDeviceRGB); in spoolAllPagesWithBoundaries() 347 graphicsContext.fillRect(FloatRect(0, 0, pageWidth, totalHeight)); in spoolAllPagesWithBoundaries() 349 graphicsContext.save(); in spoolAllPagesWithBoundaries() 350 graphicsContext.translate(0, totalHeight); in spoolAllPagesWithBoundaries() 351 graphicsContext.scale(FloatSize(1, -1)); in spoolAllPagesWithBoundaries() 357 graphicsContext.save(); in spoolAllPagesWithBoundaries() 358 graphicsContext.setStrokeColor(Color(0, 0, 255), ColorSpaceDeviceRGB); in spoolAllPagesWithBoundaries() 359 graphicsContext.setFillColor(Color(0, 0, 255), ColorSpaceDeviceRGB); in spoolAllPagesWithBoundaries() 360 graphicsContext.drawLine(IntPoint(0, currentHeight), in spoolAllPagesWithBoundaries() [all …]
|
/external/webkit/Source/WebCore/platform/ |
D | ScrollbarThemeComposite.cpp | 58 bool ScrollbarThemeComposite::paint(Scrollbar* scrollbar, GraphicsContext* graphicsContext, const I… in paint() argument 115 if (page->chrome()->client()->paintCustomScrollbar(graphicsContext, in paint() 130 paintScrollbarBackground(graphicsContext, scrollbar); in paint() 134 paintButton(graphicsContext, scrollbar, backButtonStartPaintRect, BackButtonStartPart); in paint() 136 paintButton(graphicsContext, scrollbar, backButtonEndPaintRect, BackButtonEndPart); in paint() 138 … paintButton(graphicsContext, scrollbar, forwardButtonStartPaintRect, ForwardButtonStartPart); in paint() 140 paintButton(graphicsContext, scrollbar, forwardButtonEndPaintRect, ForwardButtonEndPart); in paint() 143 paintTrackBackground(graphicsContext, scrollbar, trackPaintRect); in paint() 148 paintTrackPiece(graphicsContext, scrollbar, startTrackRect, BackTrackPart); in paint() 150 paintTrackPiece(graphicsContext, scrollbar, endTrackRect, ForwardTrackPart); in paint() [all …]
|
/external/webkit/Source/WebKit2/WebProcess/WebPage/qt/ |
D | TiledDrawingAreaQt.cpp | 48 GraphicsContext graphicsContext(&painter); in paintIntoUpdateChunk() local 49 graphicsContext.translate(-tileRect.x(), -tileRect.y()); in paintIntoUpdateChunk() 50 graphicsContext.scale(FloatSize(scale, scale)); in paintIntoUpdateChunk() 55 m_webPage->drawRect(graphicsContext, contentRect); in paintIntoUpdateChunk()
|
D | ChunkedUpdateDrawingAreaQt.cpp | 45 GraphicsContext graphicsContext(&painter); in paintIntoUpdateChunk() local 46 graphicsContext.translate(-updateChunk->rect().x(), -updateChunk->rect().y()); in paintIntoUpdateChunk() 48 m_webPage->drawRect(graphicsContext, updateChunk->rect()); in paintIntoUpdateChunk()
|
/external/webkit/Source/WebCore/platform/mac/ |
D | LocalCurrentGraphicsContext.mm | 28 LocalCurrentGraphicsContext::LocalCurrentGraphicsContext(GraphicsContext* graphicsContext) 30 m_savedGraphicsContext = graphicsContext; 31 graphicsContext->save(); 33 if (graphicsContext->platformContext() == [[NSGraphicsContext currentContext] graphicsPort]) { 39 …ext* newContext = [NSGraphicsContext graphicsContextWithGraphicsPort:graphicsContext->platformCont…
|
/external/webkit/Source/WebCore/platform/gtk/ |
D | ScrollbarThemeGtk.cpp | 185 bool ScrollbarThemeGtk::paint(Scrollbar* scrollbar, GraphicsContext* graphicsContext, const IntRect… in paint() argument 187 if (graphicsContext->paintingDisabled()) in paint() 234 paintScrollbarBackground(graphicsContext, scrollbar); in paint() 235 paintTrackBackground(graphicsContext, scrollbar, trackPaintRect); in paint() 239 paintButton(graphicsContext, scrollbar, backButtonStartPaintRect, BackButtonStartPart); in paint() 241 paintButton(graphicsContext, scrollbar, backButtonEndPaintRect, BackButtonEndPart); in paint() 243 … paintButton(graphicsContext, scrollbar, forwardButtonStartPaintRect, ForwardButtonStartPart); in paint() 245 paintButton(graphicsContext, scrollbar, forwardButtonEndPaintRect, ForwardButtonEndPart); in paint() 249 paintThumb(graphicsContext, scrollbar, currentThumbRect); in paint()
|
/external/webkit/Source/WebKit2/Shared/ |
D | WebGraphicsContext.cpp | 37 WebGraphicsContext::WebGraphicsContext(GraphicsContext* graphicsContext) in WebGraphicsContext() argument 39 : m_platformContext(graphicsContext->platformContext()) in WebGraphicsContext() 41 : m_platformContext(graphicsContext->platformContext()->cr()) in WebGraphicsContext()
|
/external/webkit/Source/WebCore/platform/graphics/cairo/ |
D | FontCairo.cpp | 68 static void drawGlyphsShadow(GraphicsContext* graphicsContext, const FloatPoint& point, const Simpl… in drawGlyphsShadow() argument 70 ContextShadow* shadow = graphicsContext->contextShadow(); in drawGlyphsShadow() 73 …if (!(graphicsContext->textDrawingMode() & TextModeFill) || shadow->m_type == ContextShadow::NoSha… in drawGlyphsShadow() 76 if (!shadow->mustUseContextShadow(graphicsContext)) { in drawGlyphsShadow() 78 cairo_t* context = graphicsContext->platformContext()->cr(); in drawGlyphsShadow() 91 cairo_t* shadowContext = shadow->beginShadowLayer(graphicsContext, fontExtentsRect); in drawGlyphsShadow() 95 shadow->endShadowLayer(graphicsContext); in drawGlyphsShadow()
|
/external/webkit/Source/WebCore/platform/graphics/haiku/ |
D | FontHaiku.cpp | 73 void Font::drawGlyphs(GraphicsContext* graphicsContext, const SimpleFontData* font, in drawGlyphs() argument 76 Color color = graphicsContext->fillColor(); in drawGlyphs() 77 BView* view = graphicsContext->platformContext(); in drawGlyphs() 80 graphicsContext->setCompositeOperation(CompositeSourceOver); in drawGlyphs()
|
/external/webkit/Source/WebKit2/WebProcess/WebPage/mac/ |
D | ChunkedUpdateDrawingAreaMac.cpp | 55 GraphicsContext graphicsContext(bitmapContext.get()); in paintIntoUpdateChunk() local 56 graphicsContext.translate(-updateChunk->rect().x(), -updateChunk->rect().y()); in paintIntoUpdateChunk() 58 m_webPage->drawRect(graphicsContext, updateChunk->rect()); in paintIntoUpdateChunk()
|
/external/webkit/Source/WebCore/platform/win/ |
D | ScrollbarThemeSafari.cpp | 206 void ScrollbarThemeSafari::paintTrackBackground(GraphicsContext* graphicsContext, Scrollbar* scroll… in paintTrackBackground() argument 216 …tation() == VerticalScrollbar ? VScrollTrackPart : HScrollTrackPart, graphicsContext->platformCont… in paintTrackBackground() 219 void ScrollbarThemeSafari::paintButton(GraphicsContext* graphicsContext, Scrollbar* scrollbar, cons… in paintButton() argument 232 …on() == VerticalScrollbar ? ScrollUpArrowPart : ScrollLeftArrowPart, graphicsContext->platformCont… in paintButton() 235 …) == VerticalScrollbar ? ScrollDownArrowPart : ScrollRightArrowPart, graphicsContext->platformCont… in paintButton() 239 void ScrollbarThemeSafari::paintThumb(GraphicsContext* graphicsContext, Scrollbar* scrollbar, const… in paintThumb() argument 251 …tation() == VerticalScrollbar ? VScrollThumbPart : HScrollThumbPart, graphicsContext->platformCont… in paintThumb()
|
/external/webkit/Source/WebCore/platform/graphics/gtk/ |
D | FontGtk.cpp | 221 static void drawGlyphsShadow(GraphicsContext* graphicsContext, const FloatPoint& point, PangoLayout… in drawGlyphsShadow() argument 223 ContextShadow* shadow = graphicsContext->contextShadow(); in drawGlyphsShadow() 226 …if (!(graphicsContext->textDrawingMode() & TextModeFill) || shadow->m_type == ContextShadow::NoSha… in drawGlyphsShadow() 232 if (!shadow->mustUseContextShadow(graphicsContext)) { in drawGlyphsShadow() 233 cairo_t* context = graphicsContext->platformContext()->cr(); in drawGlyphsShadow() 248 cairo_t* shadowContext = shadow->beginShadowLayer(graphicsContext, extents); in drawGlyphsShadow() 257 cairo_t* context = graphicsContext->platformContext()->cr(); in drawGlyphsShadow() 264 shadow->endShadowLayer(graphicsContext); in drawGlyphsShadow()
|
/external/webkit/Source/WebKit2/WebProcess/Plugins/ |
D | PluginProxy.cpp | 125 void PluginProxy::paint(GraphicsContext* graphicsContext, const IntRect& dirtyRect) in paint() argument 134 OwnPtr<WebCore::GraphicsContext> graphicsContext = m_backingStore->createGraphicsContext(); in paint() local 135 graphicsContext->setCompositeOperation(CompositeCopy); in paint() 137 …m_pluginBackingStore->paint(*graphicsContext, IntPoint(), IntRect(0, 0, m_frameRect.width(), m_fra… in paint() 145 m_backingStore->paint(*graphicsContext, dirtyRect.location(), dirtyRectInPluginCoordinates); in paint() 470 OwnPtr<GraphicsContext> graphicsContext = m_backingStore->createGraphicsContext(); in update() local 471 graphicsContext->setCompositeOperation(CompositeCopy); in update() 472 m_pluginBackingStore->paint(*graphicsContext, paintedRectPluginCoordinates.location(), in update()
|
/external/webkit/Source/WebCore/platform/wx/wxcode/win/ |
D | non-kerned-drawing.cpp | 72 void drawTextWithSpacing(GraphicsContext* graphicsContext, const SimpleFontData* font, const wxColo… in drawTextWithSpacing() argument 75 wxGCDC* dc = static_cast<wxGCDC*>(graphicsContext->platformContext()); in drawTextWithSpacing() 77 wxDC* dc = graphicsContext->platformContext(); in drawTextWithSpacing()
|