| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "core/css/cssom/CSSOMKeywords.h" | 5 #include "core/css/cssom/CSSOMKeywords.h" |
| 6 | 6 |
| 7 #include "core/css/CSSPropertyIDTemplates.h" | 7 #include "core/css/CSSPropertyIDTemplates.h" |
| 8 #include "core/css/cssom/CSSKeywordValue.h" | 8 #include "core/css/cssom/CSSKeywordValue.h" |
| 9 #include "wtf/HashMap.h" | 9 #include "platform/wtf/HashMap.h" |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 namespace { | 13 namespace { |
| 14 | 14 |
| 15 using KeywordTable = HashMap<CSSPropertyID, Vector<CSSValueID>>; | 15 using KeywordTable = HashMap<CSSPropertyID, Vector<CSSValueID>>; |
| 16 | 16 |
| 17 KeywordTable createKeywordTable() { | 17 KeywordTable createKeywordTable() { |
| 18 KeywordTable table; | 18 KeywordTable table; |
| 19 | 19 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 | 51 |
| 52 const KeywordTable::iterator tableIterator = keywordTable().Find(id); | 52 const KeywordTable::iterator tableIterator = keywordTable().Find(id); |
| 53 if (tableIterator == keywordTable().end()) { | 53 if (tableIterator == keywordTable().end()) { |
| 54 return false; | 54 return false; |
| 55 } | 55 } |
| 56 | 56 |
| 57 return tableIterator->value.Contains(valueID); | 57 return tableIterator->value.Contains(valueID); |
| 58 } | 58 } |
| 59 | 59 |
| 60 } // namespace blink | 60 } // namespace blink |
| OLD | NEW |