| Index: third_party/WebKit/Source/core/css/CSSPropertyIDTemplates.h
|
| diff --git a/third_party/WebKit/Source/core/css/CSSPropertyIDTemplates.h b/third_party/WebKit/Source/core/css/CSSPropertyIDTemplates.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..7d984e1d016c4553af8784c57e4d3a6639c69f2f
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/core/css/CSSPropertyIDTemplates.h
|
| @@ -0,0 +1,23 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CSSPropertyIDTemplates_h
|
| +#define CSSPropertyIDTemplates_h
|
| +
|
| +#include "core/CSSPropertyNames.h"
|
| +#include "wtf/HashFunctions.h"
|
| +#include "wtf/HashTraits.h"
|
| +
|
| +namespace WTF {
|
| +template<> struct DefaultHash<blink::CSSPropertyID> {
|
| + typedef IntHash<unsigned> Hash;
|
| +};
|
| +template<> struct HashTraits<blink::CSSPropertyID> : GenericHashTraits<blink::CSSPropertyID> {
|
| + static const bool emptyValueIsZero = true;
|
| + static void constructDeletedValue(blink::CSSPropertyID& slot, bool) { slot = static_cast<blink::CSSPropertyID>(blink::lastUnresolvedCSSProperty + 1); }
|
| + static bool isDeletedValue(blink::CSSPropertyID value) { return value == (blink::lastUnresolvedCSSProperty + 1); }
|
| +};
|
| +} // namespace WTF
|
| +
|
| +#endif // CSSPropertyIDTemplates_h
|
|
|