12020-03-09 Carlos Garcia Campos <cgarcia@igalia.com>
2
3 [Cairo] Remove PlatformPathCairo
4 https://bugs.webkit.org/show_bug.cgi?id=208807
5
6 Reviewed by NOBODY (OOPS!).
7
8 We have a class CairoPath defined in PlatformPathCairo.h that simply wraps a cairo_t. We can use the cairo_t
9 directly as PlatformPath and simplify the cairo path implementation.
10
11 * platform/SourcesCairo.txt:
12 * platform/graphics/Path.h:
13 (WebCore::Path::platformPath const):
14 * platform/graphics/cairo/CairoOperations.cpp:
15 (WebCore::Cairo::fillRectWithRoundedHole):
16 (WebCore::Cairo::fillPath):
17 (WebCore::Cairo::strokePath):
18 (WebCore::Cairo::clipPath):
19 * platform/graphics/cairo/CairoUtilities.cpp:
20 (WebCore::appendWebCorePathToCairoContext):
21 * platform/graphics/cairo/FontCairo.cpp:
22 (WebCore::Font::platformPathForGlyph const):
23 * platform/graphics/cairo/PathCairo.cpp:
24 (WebCore::Path::Path):
25 (WebCore::Path::ensurePlatformPath):
26 (WebCore::Path::operator=):
27 (WebCore::Path::clear):
28 (WebCore::Path::isEmptySlowCase const):
29 (WebCore::Path::currentPointSlowCase const):
30 (WebCore::Path::translate):
31 (WebCore::Path::moveToSlowCase):
32 (WebCore::Path::addLineToSlowCase):
33 (WebCore::Path::addRect):
34 (WebCore::Path::addQuadCurveTo):
35 (WebCore::Path::addBezierCurveTo):
36 (WebCore::Path::addArcSlowCase):
37 (WebCore::Path::addArcTo):
38 (WebCore::Path::addEllipse):
39 (WebCore::Path::addPath):
40 (WebCore::Path::closeSubpath):
41 (WebCore::Path::boundingRectSlowCase const):
42 (WebCore::Path::strokeBoundingRect const):
43 (WebCore::Path::contains const):
44 (WebCore::Path::strokeContains const):
45 (WebCore::Path::applySlowCase const):
46 (WebCore::Path::transform):
47 * platform/graphics/cairo/PlatformPathCairo.cpp: Removed.
48 * platform/graphics/cairo/PlatformPathCairo.h: Removed.
49