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

Unified Diff: Source/platform/geometry/IntSizeHash.h

Issue 400543004: Rename WebCore namespace to blink in Platform (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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
« no previous file with comments | « Source/platform/geometry/IntSize.h ('k') | Source/platform/geometry/LayoutBoxExtent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/geometry/IntSizeHash.h
diff --git a/Source/platform/geometry/IntSizeHash.h b/Source/platform/geometry/IntSizeHash.h
index c80f4d23161b7f70cf1b8963ffb52e97a1eb0ba1..dc283cad93d7e117ef9f383afe371b3d5d4049bd 100644
--- a/Source/platform/geometry/IntSizeHash.h
+++ b/Source/platform/geometry/IntSizeHash.h
@@ -26,21 +26,21 @@
namespace WTF {
-template<> struct IntHash<WebCore::IntSize> {
- static unsigned hash(const WebCore::IntSize& key) { return pairIntHash(key.width(), key.height()); }
- static bool equal(const WebCore::IntSize& a, const WebCore::IntSize& b) { return a == b; }
+template<> struct IntHash<blink::IntSize> {
+ static unsigned hash(const blink::IntSize& key) { return pairIntHash(key.width(), key.height()); }
+ static bool equal(const blink::IntSize& a, const blink::IntSize& b) { return a == b; }
static const bool safeToCompareToEmptyOrDeleted = true;
};
-template<> struct DefaultHash<WebCore::IntSize> {
- typedef IntHash<WebCore::IntSize> Hash;
+template<> struct DefaultHash<blink::IntSize> {
+ typedef IntHash<blink::IntSize> Hash;
};
-template<> struct HashTraits<WebCore::IntSize> : GenericHashTraits<WebCore::IntSize> {
+template<> struct HashTraits<blink::IntSize> : GenericHashTraits<blink::IntSize> {
static const bool emptyValueIsZero = true;
static const bool needsDestruction = false;
- static void constructDeletedValue(WebCore::IntSize& slot) { new (NotNull, &slot) WebCore::IntSize(-1, -1); }
- static bool isDeletedValue(const WebCore::IntSize& value) { return value.width() == -1 && value.height() == -1; }
+ static void constructDeletedValue(blink::IntSize& slot) { new (NotNull, &slot) blink::IntSize(-1, -1); }
+ static bool isDeletedValue(const blink::IntSize& value) { return value.width() == -1 && value.height() == -1; }
};
} // namespace WTF
« no previous file with comments | « Source/platform/geometry/IntSize.h ('k') | Source/platform/geometry/LayoutBoxExtent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698