Index: Source/core/frame/Frame.h |
diff --git a/Source/core/frame/Frame.h b/Source/core/frame/Frame.h |
index 72d5afda33fa7a5a756f3d5a2bae599e43eee36a..ba6b672098e8335ca7ac71e172f878066a257bf2 100644 |
--- a/Source/core/frame/Frame.h |
+++ b/Source/core/frame/Frame.h |
@@ -143,16 +143,7 @@ inline FrameTree& Frame::tree() const |
} |
// Allow equality comparisons of Frames by reference or pointer, interchangeably. |
-inline bool operator==(const Frame& a, const Frame& b) { return &a == &b; } |
-inline bool operator==(const Frame& a, const Frame* b) { return &a == b; } |
-inline bool operator==(const Frame* a, const Frame& b) { return a == &b; } |
-inline bool operator!=(const Frame& a, const Frame& b) { return !(a == b); } |
-inline bool operator!=(const Frame& a, const Frame* b) { return !(a == b); } |
-inline bool operator!=(const Frame* a, const Frame& b) { return !(a == b); } |
-inline bool operator==(const PassRefPtr<Frame>& a, const Frame& b) { return a.get() == &b; } |
-inline bool operator==(const Frame& a, const PassRefPtr<Frame>& b) { return &a == b.get(); } |
-inline bool operator!=(const PassRefPtr<Frame>& a, const Frame& b) { return !(a == b); } |
-inline bool operator!=(const Frame& a, const PassRefPtr<Frame>& b) { return !(a == b); } |
+DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES_REFCOUNTED(Frame) |
} // namespace WebCore |