Skip to content

Commit

Permalink
put some things back in non-qt builds
Browse files Browse the repository at this point in the history
  • Loading branch information
mnutt committed Sep 13, 2022
1 parent 85d8ab7 commit 996a8a9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion Source/WebCore/platform/DragImage.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,12 @@ class DragImage final {
bool hasVisiblePath() const { return !!m_visiblePath; }
std::optional<Path> visiblePath() const { return m_visiblePath; }

explicit operator bool() const { return /*!!m_dragImageRef*/ !m_dragImageRef.isNull(); }
#if PLATFORM(QT)
explicit operator bool() const { return !m_dragImageRef.isNull(); }
#else
explicit operator bool() const { return !!m_dragImageRef; }
#endif

DragImageRef get() const { return m_dragImageRef; }

private:
Expand Down
2 changes: 1 addition & 1 deletion Source/WebCore/platform/graphics/Path.h
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ class Path {
#if PLATFORM(QT)
WEBCORE_EXPORT bool isNull() const { return false; }
#else
WEBCORE_EXPORT bool isNull() const { return !m_path; }
WEBCORE_EXPORT bool isNull() const;
#endif
bool isEmpty() const;
// Gets the current point of the current path, which is conceptually the final point reached by the path so far.
Expand Down

0 comments on commit 996a8a9

Please sign in to comment.