OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/fonts/ScriptRunIterator.h" | 5 #include "platform/fonts/ScriptRunIterator.h" |
6 | 6 |
| 7 #include <string> |
7 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
8 #include "wtf/Assertions.h" | 9 #include "wtf/Assertions.h" |
9 #include "wtf/Threading.h" | 10 #include "wtf/Threading.h" |
10 #include "wtf/text/WTFString.h" | 11 #include "wtf/text/WTFString.h" |
11 #include <string> | |
12 | 12 |
13 namespace blink { | 13 namespace blink { |
14 | 14 |
15 struct TestRun { | 15 struct TestRun { |
16 std::string text; | 16 std::string text; |
17 UScriptCode code; | 17 UScriptCode code; |
18 }; | 18 }; |
19 | 19 |
20 struct ExpectedRun { | 20 struct ExpectedRun { |
21 unsigned limit; | 21 unsigned limit; |
(...skipping 657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
679 } | 679 } |
680 } | 680 } |
681 } | 681 } |
682 | 682 |
683 // ZWJ is \u200D Cf (Format, other) and its script is inherited. I'm going to | 683 // ZWJ is \u200D Cf (Format, other) and its script is inherited. I'm going to |
684 // ignore this for now, as I think it shouldn't matter which run it ends up | 684 // ignore this for now, as I think it shouldn't matter which run it ends up |
685 // in. HarfBuzz needs to be able to use it as context and shape each | 685 // in. HarfBuzz needs to be able to use it as context and shape each |
686 // neighboring character appropriately no matter what run it got assigned to. | 686 // neighboring character appropriately no matter what run it got assigned to. |
687 | 687 |
688 } // namespace blink | 688 } // namespace blink |
OLD | NEW |