Chromium Code Reviews

Side by Side Diff: third_party/WebKit/Source/build/scripts/templates/CSSOMKeywords.cpp.tmpl

Issue 2007073003: Move CSSPropertyID templates instantiations to a separate file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove more includes from CSSPropertyNames.h Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
OLDNEW
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/cssom/CSSKeywordValue.h" 8 #include "core/css/cssom/CSSKeywordValue.h"
8 #include "wtf/HashMap.h" 9 #include "wtf/HashMap.h"
9 10
10 namespace blink { 11 namespace blink {
11 12
12 namespace { 13 namespace {
13 14
14 using KeywordTable = HashMap<CSSPropertyID, Vector<CSSValueID>>; 15 using KeywordTable = HashMap<CSSPropertyID, Vector<CSSValueID>>;
15 16
16 KeywordTable createKeywordTable() 17 KeywordTable createKeywordTable()
(...skipping 34 matching lines...)
51 52
52 const KeywordTable::iterator tableIterator = keywordTable().find(id); 53 const KeywordTable::iterator tableIterator = keywordTable().find(id);
53 if (tableIterator == keywordTable().end()) { 54 if (tableIterator == keywordTable().end()) {
54 return false; 55 return false;
55 } 56 }
56 57
57 return tableIterator->value.contains(valueID); 58 return tableIterator->value.contains(valueID);
58 } 59 }
59 60
60 } // namespace blink 61 } // namespace blink
OLDNEW

Powered by Google App Engine