blob: 446efe950adcddce1754c3906ada1bfedc55b3df [file] [log] [blame]
// Copyright 2018 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 "third_party/blink/renderer/core/svg/svg_enumeration_map.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"
namespace blink {
unsigned short SVGEnumerationMap::ValueFromName(const String& name) const {
for (const Entry& entry : *this) {
if (name == entry.name)
return entry.value;
}
return 0;
}
} // namespace blink