Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(496)

Unified Diff: third_party/WebKit/Source/core/layout/api/LineLayoutItem.h

Issue 1839003002: WTF: De-specialize PtrHash<T>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove extra equal() definitions. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/api/LineLayoutItem.h
diff --git a/third_party/WebKit/Source/core/layout/api/LineLayoutItem.h b/third_party/WebKit/Source/core/layout/api/LineLayoutItem.h
index c4b1e3891a4937dbe57ed8771063ba3a65cb7da8..a42d636ee90050fa1850c1fa854bf874445c2bbc 100644
--- a/third_party/WebKit/Source/core/layout/api/LineLayoutItem.h
+++ b/third_party/WebKit/Source/core/layout/api/LineLayoutItem.h
@@ -422,10 +422,10 @@ public:
struct LineLayoutItemHash {
STATIC_ONLY(LineLayoutItemHash);
- static unsigned hash(const LineLayoutItem& key) { return WTF::PtrHash<LayoutObject*>::hash(key.m_layoutObject); }
+ static unsigned hash(const LineLayoutItem& key) { return WTF::PtrHash<LayoutObject>::hash(key.m_layoutObject); }
static bool equal(const LineLayoutItem& a, const LineLayoutItem& b)
{
- return WTF::PtrHash<LayoutObject*>::equal(a.m_layoutObject, b.m_layoutObject);
+ return WTF::PtrHash<LayoutObject>::equal(a.m_layoutObject, b.m_layoutObject);
}
static const bool safeToCompareToEmptyOrDeleted = true;
};

Powered by Google App Engine
This is Rietveld 408576698