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 "platform/LayoutLocale.h" | 5 #include "platform/LayoutLocale.h" |
6 | 6 |
7 #include "platform/Language.h" | 7 #include "platform/Language.h" |
8 #include "platform/fonts/AcceptLanguagesResolver.h" | 8 #include "platform/fonts/AcceptLanguagesResolver.h" |
9 #include "platform/text/ICUError.h" | 9 #include "platform/text/ICUError.h" |
10 #include "platform/text/LocaleToScriptMapping.h" | 10 #include "platform/text/LocaleToScriptMapping.h" |
11 #include "wtf/HashMap.h" | 11 #include "platform/wtf/HashMap.h" |
12 #include "wtf/text/AtomicStringHash.h" | 12 #include "platform/wtf/text/AtomicStringHash.h" |
13 #include "wtf/text/StringHash.h" | 13 #include "platform/wtf/text/StringHash.h" |
14 | 14 |
15 #include <hb.h> | 15 #include <hb.h> |
16 #include <unicode/locid.h> | 16 #include <unicode/locid.h> |
17 | 17 |
18 namespace blink { | 18 namespace blink { |
19 | 19 |
20 const LayoutLocale* LayoutLocale::default_ = nullptr; | 20 const LayoutLocale* LayoutLocale::default_ = nullptr; |
21 const LayoutLocale* LayoutLocale::system_ = nullptr; | 21 const LayoutLocale* LayoutLocale::system_ = nullptr; |
22 const LayoutLocale* LayoutLocale::default_for_han_ = nullptr; | 22 const LayoutLocale* LayoutLocale::default_for_han_ = nullptr; |
23 bool LayoutLocale::default_for_han_computed_ = false; | 23 bool LayoutLocale::default_for_han_computed_ = false; |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 DCHECK_EQ(length_needed, length_needed2); | 233 DCHECK_EQ(length_needed, length_needed2); |
234 if (U_SUCCESS(status) && length_needed == length_needed2) | 234 if (U_SUCCESS(status) && length_needed == length_needed2) |
235 return AtomicString::FromUTF8(buffer.Data(), length_needed); | 235 return AtomicString::FromUTF8(buffer.Data(), length_needed); |
236 } | 236 } |
237 | 237 |
238 NOTREACHED(); | 238 NOTREACHED(); |
239 return string_; | 239 return string_; |
240 } | 240 } |
241 | 241 |
242 } // namespace blink | 242 } // namespace blink |
OLD | NEW |