Skip to content

Commit

Permalink
Cherry-pick 269805@main (d64c4de). rdar://119608829
Browse files Browse the repository at this point in the history
    [cairo] Crash in PathStream::copy() after 268923@main
    https://bugs.webkit.org/show_bug.cgi?id=263666

    Reviewed by Chris Dumez.

    This happens sometimes when threaded rendering in enabled. We need to
    make PathImpl reference count thread safe. Fix spotted by Chris Dumez.

    * Source/WebCore/platform/graphics/PathImpl.h:

    Canonical link: https://commits.webkit.org/269805@main

Canonical link: https://commits.webkit.org/267815.631@safari-7617-branch
  • Loading branch information
carlosgcampos authored and kkinnunen-apple committed Dec 14, 2023
1 parent bc765d1 commit 0ec30d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/WebCore/platform/graphics/PathImpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@
#include "PathElement.h"
#include "PathSegment.h"
#include <wtf/FastMalloc.h>
#include <wtf/RefCounted.h>
#include <wtf/ThreadSafeRefCounted.h>
#include <wtf/UniqueRef.h>

namespace WebCore {

class PathImpl : public RefCounted<PathImpl> {
class PathImpl : public ThreadSafeRefCounted<PathImpl> {
WTF_MAKE_FAST_ALLOCATED;
public:
virtual ~PathImpl() = default;
Expand Down

0 comments on commit 0ec30d8

Please sign in to comment.