Lines Matching full:graphicscontext
328 * platform/GraphicsContext.h:
329 * platform/GraphicsContext.cpp:
330 (WebCore::GraphicsContext::drawText): Changed QChar to UChar. Removed horizontalAlignment
332 (WebCore::GraphicsContext::drawHighlightForText): Changed QChar to UChar.
772 * platform/GraphicsContext.h:
1518 (GraphicsContext::translate): Added.
1519 (GraphicsContext::rotate): Ditto.
1520 (GraphicsContext::scale): Ditto.
1534 (WebCore::GraphicsContext::drawRect): Call alpha to check if the color is transparent.
1536 (WebCore::GraphicsContext::drawLine): Ditto.
1537 (WebCore::GraphicsContext::drawEllipse): Ditto.
1538 (WebCore::GraphicsContext::drawArc): Ditto.
1539 (WebCore::GraphicsContext::drawConvexPolygon): Ditto.
1812 (WebCore::GraphicsContext::drawRect): Use setCGFillColor to avoid allocating
1814 (WebCore::GraphicsContext::drawLine): Use setCGStrokeColor and setCGFillColor
1816 (WebCore::GraphicsContext::drawEllipse): Ditto.
1817 (WebCore::GraphicsContext::drawArc): Ditto.
1818 (WebCore::GraphicsContext::drawConvexPolygon): Ditto.
1819 (WebCore::GraphicsContext::fillRect): Ditto.
1951 another round of GraphicsContext improvements
1955 (WebCore::CanvasRenderingContext2D::scale): Use new GraphicsContext function.
1961 * platform/GraphicsContext.h: Changed fillColor and setFillColor to use Color
1964 * platform/GraphicsContext.cpp:
1965 (WebCore::GraphicsContext::setFillColor): Changed to use Color instead of RGBA32.
1966 (WebCore::GraphicsContext::fillColor): Ditto.
1972 (WebCore::GraphicsContext::drawRect): Rewrote to not rely on [NSGraphicsContext currentContext].
1973 (WebCore::GraphicsContext::drawLine): Ditto.
1974 (WebCore::GraphicsContext::drawEllipse): Ditto.
1975 (WebCore::GraphicsContext::drawArc): Ditto.
1976 (WebCore::GraphicsContext::drawConvexPolygon): Ditto.
1977 (WebCore::GraphicsContext::fillRect): Ditto.
1978 (WebCore::GraphicsContext::setLineWidth): Added check of paintingDisabled().
1979 (WebCore::GraphicsContext::setMiterLimit): Ditto.
1980 (WebCore::GraphicsContext::setAlpha): Ditto.
1981 (WebCore::GraphicsContext::clearRect): Ditto.
1982 (WebCore::GraphicsContext::strokeRect): Ditto.
1983 (WebCore::GraphicsContext::setLineCap): Ditto.
1984 (WebCore::GraphicsContext::setLineJoin): Ditto.
1985 (WebCore::GraphicsContext::clip): Ditto.
1986 (WebCore::GraphicsContext::scale): Added.
1987 (WebCore::GraphicsContext::rotate): Added.
1988 (WebCore::GraphicsContext::translate): Added.
1991 (WebCore::GraphicsContext::setCompositeOperation): Added check of paintingDisabled().
2469 make GraphicsContext more suitable for cross-platform use, step 2
2471 - Changed GraphicsContext to use NSGraphicsContext as little as possible.
2472 - Removed the printing flag from GraphicsContext.
2473 - Changed GraphicsContext to assume the NSGraphicsContext is always flipped,
2487 Update for changes to GraphicsContext constructor (no flipped or printing boolean).
2500 (WebCore::CanvasRenderingContext2D::save): Changed to use GraphicsContext instead
2518 (WebCore::CanvasRenderingContext2D::beginPath): Changed to use GraphicsContext instead
2532 GraphicsContext instead of using CGContext directly.
2533 (WebCore::CanvasRenderingContext2D::clearRect): Changed to use GraphicsContext instead
2547 * html/CanvasStyle.h: Changed to use GraphicsContext instead of CGContext. Now the
2560 the GraphicsContext, since there is no printing flag for GraphicsContext any more.
2561 (WebCore::Frame::adjustPageHeight): Update for change to GraphicsContext constructor.
2563 * platform/GraphicsContext.h: Define a type called PlatformGraphicsContext so the
2567 * platform/GraphicsContext.cpp:
2569 (WebCore::GraphicsContext::createGraphicsContextPrivate): Ditto.
2575 (WebCore::GraphicsContext::GraphicsContext): Removed constructor that
2578 (WebCore::GraphicsContext::savePlatformState): Removed NSGraphicsContext code.
2579 (WebCore::GraphicsContext::restorePlatformState): Ditto.
2580 (WebCore::GraphicsContext::drawRect): Updated assertion to more-precisely
2582 (WebCore::GraphicsContext::setColorFromFillColor): Ditto.
2583 (WebCore::GraphicsContext::setColorFromPen): Ditto.
2584 (WebCore::GraphicsContext::drawLine): Updated assertion to more-precisely
2587 (WebCore::GraphicsContext::fillRect): Ditto.
2588 (WebCore::GraphicsContext::setLineWidth): Added.
2589 (WebCore::GraphicsContext::setMiterLimit): Added.
2590 (WebCore::GraphicsContext::setAlpha): Added.
2591 (WebCore::GraphicsContext::setCompositeOperation): Added.
2592 (WebCore::GraphicsContext::clearRect): Added.
2593 (WebCore::GraphicsContext::strokeRect): Added.
2594 (WebCore::GraphicsContext::setLineCap): Added.
2595 (WebCore::GraphicsContext::setLineJoin): Added.
2596 (WebCore::GraphicsContext::clip): Added.
2629 (WebCore::fillSolidColorInRect): Changed to take a GraphicsContext instead of
2634 function that take GraphicsContext instead of CGContext.
2638 use GraphicsContext and FloatRect instead of CGContext and NSRect. Also
3246 (WebCore::GraphicsContext::drawFocusRing):
3800 (WebCore::GraphicsContext::fillRect): Update to use Color and match
3837 * platform/cairo/ImageCairo.cpp: Include the GraphicsContext.h header.
3839 * platform/win/TemporaryLinkStubs.cpp: (GraphicsContext::setShadow):
3840 Fix up this stub and remove the GraphicsContext empty constructor stub.
3859 - change GraphicsContext API to use IntRect/Point/Size in more cases
3860 - change GraphicsContext so it is closer to truly wrapping a graphics
3901 Changed to create a GraphicsContext with the new constructor that takes
3904 Changed to create a GraphicsContext with the new constructor that takes
3907 GraphicsContext with the new constructor that takes a CGContextRef.
3922 to create a GraphicsContext as needed and call the image drawing code with that.
3974 GraphicsContext*.
3984 to be a GraphicsContext instead of a CGContextRef.
3988 (WebCore::HTMLCanvasElement::reset): Updated for change to GraphicsContext
3992 GraphicsContext* instead of a CGContextRef.
3994 GraphicsContext* instead of a CGContextRef.
4013 GraphicsContext parameter.
4015 * kcanvas/RenderPath.h: Added GraphicsContext parameter to drawMarkersIfNeeded.
4020 Changed to generate and use an appropriate GraphicsContext.
4022 * kcanvas/device/quartz/KCanvasItemQuartz.h: Added GraphicsContext parameter to
4025 (WebCore::DrawMarkersData::DrawMarkersData): Added GraphicsContext*.
4026 (WebCore::drawMarkerWithData): Pass along a GraphicsContext*.
4028 (WebCore::KCanvasItemQuartz::drawMarkersIfNeeded): Pass a long a GraphicsContext*.
4031 to bridge back to a GraphicsContext. Long term that class will replace this one.
4037 Create and pass a GraphicsContext -- old code used the default constructor for
4038 GraphicsContext which meant "current context", and that no longer exists.
4047 Also removed the const from all the uses of GraphicsContext*.
4049 * platform/GraphicsContext.h: Eliminated default constructor and constructor
4056 currentCGContext and the other setCompositeOperation out of the GraphicsContext
4059 return the appropriate CGContextRef for the GraphicsContext. This eliminates
4062 * platform/GraphicsContext.cpp:
4065 (WebCore::GraphicsContext::setFillColor): Renamed from setBrush.
4066 (WebCore::GraphicsContext::fillColor): Renamed from brush.
4067 (WebCore::GraphicsContext::drawImage): Changed to use IntRect.
4068 (WebCore::GraphicsContext::drawTiledImage): Moved here from GraphicsContextMac.mm.
4069 (WebCore::GraphicsContext::drawText): Changed to use IntPoint.
4070 (WebCore::GraphicsContext::drawHighlightForText): Ditto.
4071 (WebCore::GraphicsContext::drawLineForText): Ditto.
4072 (WebCore::GraphicsContext::drawLineForMisspelling): Ditto.
4079 * platform/Widget.h: Added a GraphicsContext* return value from lockDrawingFocus
4084 const on GraphicsContext* parameter.
4096 (WebCore::GraphicsContext::GraphicsContext): Implement to set up both the
4099 (WebCore::GraphicsContext::savePlatformState): Implement for the CGContext-only
4101 (WebCore::GraphicsContext::restorePlatformState): Ditto.
4102 (WebCore::GraphicsContext::drawRect): Assert that the NS context is present
4104 (WebCore::GraphicsContext::setColorFromFillColor): Renamed from
4106 (WebCore::GraphicsContext::setColorFromPen): Added assertion.
4107 (WebCore::GraphicsContext::drawLine): Added assertion.
4108 (WebCore::GraphicsContext::drawEllipse): Get CGContext from the platformContext
4110 (WebCore::GraphicsContext::drawArc): Ditto.
4111 (WebCore::GraphicsContext::drawConvexPolygon): Ditto.
4114 (WebCore::GraphicsContext::drawImage): Move most of this into GraphicsContext.cpp.
4116 (WebCore::GraphicsContext::fillRect): Changed to take color instead of Brush.
4117 (WebCore::GraphicsContext::addClip): Added assertion.
4118 (WebCore::GraphicsContext::addRoundedRectClip): Get CGContextRef from the platformContext
4120 (WebCore::GraphicsContext::createRenderingDeviceContext): Ditto.
4121 (WebCore::GraphicsContext::beginTransparencyLayer): Ditto.
4122 (WebCore::GraphicsContext::endTransparencyLayer): Ditto.
4123 (WebCore::GraphicsContext::setShadow): Change to take size instead of x,y. Also get
4125 (WebCore::GraphicsContext::clearShadow): Get CGContextRef from the platformContext
4127 (WebCore::GraphicsContext::platformContext): Added. Returns m_data->m_cgContext.
4133 a GraphicsContext* parameter. Renamed from drawInRect.
4140 (WebCore::Widget::lockDrawingFocus): Changed to return a GraphicsContext*.
4141 (WebCore::Widget::unlockDrawingFocus): Changed to take a GraphicsContext*.
4164 (WebCore::setClip): Take out ifdefs. We'll do that inside GraphicsContext instead.
4179 (WebCore::GraphicsContext::drawImage): Update for parameter type changes.
4180 (WebCore::GraphicsContext::drawScaledAndTiledImage):
4181 (WebCore::GraphicsContext::setFocusRingClip):
4182 (WebCore::GraphicsContext::clearFocusRingClip):
4233 * platform/mac/GraphicsContextMac.mm: (WebCore::GraphicsContext::drawFocusRing):
4534 (WebCore::GraphicsContext::drawTiledImage):
4555 * platform/GraphicsContext.h: drawTiledImage() now takes the
4559 (WebCore::GraphicsContext::drawTiledImage):
4564 (WebCore::GraphicsContext::drawTiledImage):
4751 (WebCore::GraphicsContext::drawLine):
5316 (WebCore::GraphicsContext::addRoundedRectClip):
6278 * platform/GraphicsContext.cpp:
6358 * platform/GraphicsContext.h:
6362 (WebCore::GraphicsContext::setFocusRingClip):
6363 (WebCore::GraphicsContext::clearFocusRingClip):
6364 (WebCore::GraphicsContext::drawFocusRing):
9942 * platform/GraphicsContext.cpp:
9943 (WebCore::GraphicsContext::addFocusRingRect): Don't add a focus ring for an empty rect.
10332 * platform/GraphicsContext.cpp:
10333 (WebCore::GraphicsContext::createGraphicsContextPrivate):
10334 (WebCore::GraphicsContext::destroyGraphicsContextPrivate):
10335 * platform/GraphicsContext.h:
10516 (WebCore::GraphicsContext::drawLine):
10518 (WebCore::GraphicsContext::drawLine):
10822 * platform/GraphicsContext.h:
10837 (WebCore::GraphicsContext::setCompositeOperation):
10949 * platform/GraphicsContext.h:
11946 * platform/GraphicsContext.cpp:
11947 (WebCore::WebCore::GraphicsContext::createGraphicsContextPrivate):
11948 (WebCore::WebCore::GraphicsContext::destroyGraphicsContextPrivate):
11951 (WebCore::GraphicsContext::drawLine):
11952 (WebCore::GraphicsContext::drawFocusRing):
12107 Move GraphicsContext code from GraphicsContextMac to GraphicsContext.
12142 * platform/GraphicsContext.cpp:
12146 (WebCore::GraphicsContext::save):
12147 (WebCore::GraphicsContext::restore):
12148 (WebCore::GraphicsContext::font):
12149 (WebCore::GraphicsContext::setFont):
12150 (WebCore::GraphicsContext::pen):
12151 (WebCore::GraphicsContext::setPen):
12152 GraphicsContext::setBrush):
12153 (WebCore::GraphicsContext::brush):
12154 (WebCore::GraphicsContext::setUsesInactiveTextBackgroundColor):
12155 (WebCore::GraphicsContext::usesInactiveTextBackgroundColor):
12156 (WebCore::GraphicsContext::updatingControlTints):
12157 (WebCore::GraphicsContext::setUpdatingControlTints):
12158 (WebCore::GraphicsContext::setPaintingDisabled):
12159 (WebCore::GraphicsContext::paintingDisabled):
12160 (WebCore::GraphicsContext::printing):
12161 (WebCore::GraphicsContext::drawImageAtPoint):
12162 (WebCore::GraphicsContext::drawImageInRect):
12163 (WebCore::GraphicsContext::drawImage):
12164 (WebCore::GraphicsContext::initFocusRing):
12165 (WebCore::GraphicsContext::clearFocusRing):
12166 (WebCore::GraphicsContext::addFocusRingRect):
12167 (WebCore::GraphicsContext::focusRingWidth):
12168 (WebCore::GraphicsContext::focusRingOffset):
12169 (WebCore::GraphicsContext::focusRingRects):
12170 * platform/GraphicsContext.h:
12175 (WebCore::GraphicsContext::GraphicsContext):
12176 (WebCore::GraphicsContext::~GraphicsContext):
12177 (WebCore::GraphicsContext::savePlatformState):
12178 (WebCore::GraphicsContext::restorePlatformState):
12179 (WebCore::GraphicsContext::drawRect):
12180 (WebCore::GraphicsContext::setColorFromBrush):
12181 (WebCore::GraphicsContext::setColorFromPen):
12182 (WebCore::GraphicsContext::drawLine):
12183 (WebCore::GraphicsContext::drawEllipse):
12184 (WebCore::GraphicsContext::drawArc):
12185 (WebCore::GraphicsContext::drawConvexPolygon):
12186 (WebCore::GraphicsContext::drawFloatImage):
12187 (WebCore::GraphicsContext::drawTiledImage):
12188 (WebCore::GraphicsContext::drawScaledAndTiledImage):
12189 (WebCore::GraphicsContext::selectedTextBackgroundColor):
12190 (WebCore::GraphicsContext::fillRect):
12191 (WebCore::GraphicsContext::addClip):
12192 (WebCore::GraphicsContext::addRoundedRectClip):
12193 (WebCore::GraphicsContext::beginTransparencyLayer):
12194 (WebCore::GraphicsContext::endTransparencyLayer):
12195 (WebCore::GraphicsContext::setShadow):
12196 (WebCore::GraphicsContext::clearShadow):
12197 (WebCore::GraphicsContext::drawFocusRing):
13122 (WebCore::GraphicsContext::drawArc):
13123 (WebCore::GraphicsContext::drawFocusRing):
13141 (GraphicsContext::GraphicsContext):
13158 (GraphicsContext::selectedTextBackgroundColor):
13159 (GraphicsContext::addRoundedRectClip):
13228 Pushed focus ring handling down into GraphicsContext.cpp
13232 * platform/GraphicsContext.cpp:
13233 (WebCore::GraphicsContext::initFocusRing):
13234 (WebCore::GraphicsContext::clearFocusRing):
13235 (WebCore::GraphicsContext::addFocusRingRect):
13236 * platform/GraphicsContext.h:
13240 (WebCore::GraphicsContext::GraphicsContext):
13241 (WebCore::GraphicsContext::drawFocusRing):
14437 * platform/GraphicsContext.cpp:
14438 (WebCore::GraphicsContext::drawText): Restored AlignRight behavior.
14451 GraphicsContext::drawText, which checks the paintingDisabled flag.
14631 (GraphicsContext::clearFocusRing):
14632 (GraphicsContext::selectedTextBackgroundColor):
14650 Make GraphicsContext call into Font to draw all text and eliminate
14656 * platform/GraphicsContext.cpp:
14657 (WebCore::GraphicsContext::drawText):
14658 (WebCore::GraphicsContext::drawHighlightForText):
14659 (WebCore::GraphicsContext::drawLineForText):
14660 (WebCore::GraphicsContext::drawLineForMisspelling):
14661 (WebCore::GraphicsContext::misspellingLineThickness):
14662 * platform/GraphicsContext.h:
14663 (WebCore::GraphicsContext::platformContext):
14665 (WebCore::GraphicsContext::platformContext):
14742 (WebCore::GraphicsContext::drawText):
14750 * platform/GraphicsContext.h:
14752 (WebCore::GraphicsContext::drawText):
14754 (WebCore::GraphicsContext::drawText):
14769 (WebCore::GraphicsContext::font):
14770 (WebCore::GraphicsContext::setFont):
14771 (WebCore::GraphicsContext::drawText):
15138 (WebCore::GraphicsContext::drawText):
15309 (GraphicsContext::GraphicsContext):
15310 (GraphicsContext::addFocusRingRect):
15311 (GraphicsContext::drawLineForMisspelling):
15312 (GraphicsContext::drawFocusRing):
15313 (GraphicsContext::selectedTextBackgroundColor):
15314 (GraphicsContext::drawHighlightForText):
15315 (GraphicsContext::misspellingLineThickness):
15316 (GraphicsContext::addRoundedRectClip):
15637 (GraphicsContext::misspellingLineThickness):
15645 (GraphicsContext::beginTransparencyLayer):
15646 (GraphicsContext::endTransparencyLayer):
15672 (GraphicsContext::endTransparencyLayer):
15683 (GraphicsContext::drawLineForMisspelling):
15693 (GraphicsContext::setShadow):
15694 (GraphicsContext::clearShadow):
16104 Re-work ImageViewer to use GraphicsContext.
16105 Add GraphicsContext(cairo_t*) constructor to make double-buffering easier.
16112 * platform/GraphicsContext.h:
16114 (WebCore::GraphicsContext::GraphicsContext):
16166 * platform/GraphicsContext.h:
16244 (WebCore::GraphicsContext::drawTiledImage):
16245 (WebCore::GraphicsContext::drawScaledAndTiledImage):
16300 (WebCore::GraphicsContext::drawFloatImage): If passed-in context
16402 (WebCore::GraphicsContext::drawEllipse):
16481 (GraphicsContext::beginTransparencyLayer):
16583 (GraphicsContext::drawText):
16584 (GraphicsContext::drawLineForText):
16788 * WebCore.xcodeproj/project.pbxproj: update GraphicsContext.cpp path to fix build
16798 * platform/GraphicsContext.cpp: Added.
16799 * platform/GraphicsContext.h:
16806 (WebCore::GraphicsContext::GraphicsContext):
16807 (WebCore::GraphicsContext::~GraphicsContext):
16808 (WebCore::GraphicsContext::pen):
16809 (WebCore::GraphicsContext::setPen):
16810 (WebCore::GraphicsContext::setBrush):
16811 (WebCore::GraphicsContext::brush):
16812 (WebCore::GraphicsContext::save):
16813 (WebCore::GraphicsContext::restore):
16814 (WebCore::GraphicsContext::drawRect):
16815 (WebCore::GraphicsContext::setColorFromBrush):
16816 (WebCore::GraphicsContext::setColorFromPen):
16818 (WebCore::GraphicsContext::drawLine):
16819 (WebCore::GraphicsContext::drawEllipse):
16820 (WebCore::GraphicsContext::drawArc):
16821 (WebCore::GraphicsContext::drawConvexPolygon):
16822 (WebCore::GraphicsContext::drawFloatImage):
16823 (WebCore::GraphicsContext::drawTiledImage):
16824 (WebCore::GraphicsContext::drawScaledAndTiledImage):
16825 (WebCore::GraphicsContext::fillRect):
16826 (WebCore::GraphicsContext::addClip):
16827 (WebCore::GraphicsContext::setPaintingDisabled):
16828 (WebCore::GraphicsContext::paintingDisabled):
16838 (GraphicsContext::clearShadow):
16840 (GraphicsContext::drawText):
16904 (GraphicsContext::GraphicsContext):
16913 (GraphicsContext::font):
16914 (GraphicsContext::setFont):
16959 (GraphicsContext::drawLineForText):
16960 (WebCore::GraphicsContext::fillRect):
16962 (GraphicsContext::GraphicsContext):
16963 (WebCore::GraphicsContext::~GraphicsContext):
17179 (GraphicsContext::beginTransparencyLayer):
17181 (GraphicsContext::drawConvexPolygon):
17183 (GraphicsContext::setShadow):
17184 (GraphicsContext::clearFocusRing):
17185 (GraphicsContext::drawImageInRect):
17190 (WebCore::GraphicsContext::font):
17201 move QPainter to platform directory and name it GraphicsContext
17203 * platform/GraphicsContext.h: Added.
17322 Updated to use GraphicsContext instead of QPainter.
17341 * khtml/ecma/kjs_html.h: Fixed comments to mention GraphicsContext.
24395 (WebCore::graphicsContext):
25299 (WebCore::graphicsContext):
25650 (WebCore::graphicsContext):