diff --git a/Source/WebCore/platform/graphics/qt/PathQt.cpp b/Source/WebCore/platform/graphics/qt/PathQt.cpp index f9a4599658005..33a27637e1e4c 100644 --- a/Source/WebCore/platform/graphics/qt/PathQt.cpp +++ b/Source/WebCore/platform/graphics/qt/PathQt.cpp @@ -110,7 +110,7 @@ Ref PathQt::copy() const return create(m_path); } -QPainterPath PathQt::platformPath() const +PlatformPathPtr PathQt::platformPath() const { return m_path; } diff --git a/Source/WebCore/platform/graphics/qt/PathQt.h b/Source/WebCore/platform/graphics/qt/PathQt.h index 8b249270836c8..b2b3ea581f7a6 100644 --- a/Source/WebCore/platform/graphics/qt/PathQt.h +++ b/Source/WebCore/platform/graphics/qt/PathQt.h @@ -52,7 +52,7 @@ class PathQt final : public PathImpl { PathQt& operator=(const PathQt&); PathQt& operator=(PathQt&& other); - QPainterPath platformPath() const; + PlatformPathPtr platformPath() const; void addPath(const PathQt&, const AffineTransform&); @@ -68,8 +68,6 @@ class PathQt final : public PathImpl { private: Ref copy() const final; - QPainterPath ensurePlatformPath() { return platformPath(); } - void add(PathMoveTo) final; void add(PathLineTo) final;