| Index: third_party/WebKit/Source/build/scripts/templates/CSSPrimitiveValueUnitTrie.cpp.tmpl
|
| diff --git a/third_party/WebKit/Source/build/scripts/templates/CSSPrimitiveValueUnitTrie.cpp.tmpl b/third_party/WebKit/Source/build/scripts/templates/CSSPrimitiveValueUnitTrie.cpp.tmpl
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..d8580db81e30d9eeffa2eb3bb8a94e04f11a28e7
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/build/scripts/templates/CSSPrimitiveValueUnitTrie.cpp.tmpl
|
| @@ -0,0 +1,22 @@
|
| +{% from 'macros.tmpl' import trie_length_switch %}
|
| +{% macro trie_return_statement(unit_name) %}
|
| + return CSSPrimitiveValue::UnitType::{{unit_name}};
|
| +{% endmacro %}
|
| +// 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.
|
| +
|
| +#include "core/css/CSSPrimitiveValueUnitTrie.h"
|
| +#include "core/css/CSSPrimitiveValue.h"
|
| +
|
| +namespace blink {
|
| +
|
| +CSSPrimitiveValue::UnitType lookupCSSPrimitiveValueUnit(const String& data, unsigned length)
|
| +{
|
| + DCHECK(data);
|
| + DCHECK(length);
|
| + {{trie_length_switch(empty_case_return_value, length_tries, trie_return_statement, 'CSSPrimitiveValue::UnitType::Unknown')}}
|
| +}
|
| +
|
| +} // namespace blink
|
| +
|
|
|