OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "config.h" | 5 #include "config.h" |
6 #include "core/paint/ListMarkerPainter.h" | 6 #include "core/paint/ListMarkerPainter.h" |
7 | 7 |
8 #include "core/layout/LayoutListItem.h" | 8 #include "core/layout/LayoutListItem.h" |
9 #include "core/layout/LayoutListMarker.h" | 9 #include "core/layout/LayoutListMarker.h" |
10 #include "core/layout/TextRunConstructor.h" | 10 #include "core/layout/TextRunConstructor.h" |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 case EthiopicHalehameAm: | 95 case EthiopicHalehameAm: |
96 case EthiopicHalehameTiEr: | 96 case EthiopicHalehameTiEr: |
97 case EthiopicHalehameTiEt: | 97 case EthiopicHalehameTiEt: |
98 case Georgian: | 98 case Georgian: |
99 case Gujarati: | 99 case Gujarati: |
100 case Gurmukhi: | 100 case Gurmukhi: |
101 case Hebrew: | 101 case Hebrew: |
102 case Hangul: | 102 case Hangul: |
103 case HangulConsonant: | 103 case HangulConsonant: |
104 case KoreanHangulFormal: | 104 case KoreanHangulFormal: |
| 105 case KoreanHanjaFormal: |
| 106 case KoreanHanjaInformal: |
105 case Hiragana: | 107 case Hiragana: |
106 case HiraganaIroha: | 108 case HiraganaIroha: |
107 case Kannada: | 109 case Kannada: |
108 case Katakana: | 110 case Katakana: |
109 case KatakanaIroha: | 111 case KatakanaIroha: |
110 case Khmer: | 112 case Khmer: |
111 case Lao: | 113 case Lao: |
112 case LowerAlpha: | 114 case LowerAlpha: |
113 case LowerArmenian: | 115 case LowerArmenian: |
114 case LowerGreek: | 116 case LowerGreek: |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 if (m_layoutListMarker.style()->isLeftToRightDirection()) { | 181 if (m_layoutListMarker.style()->isLeftToRightDirection()) { |
180 context->drawText(font, textRunPaintInfo, textOrigin); | 182 context->drawText(font, textRunPaintInfo, textOrigin); |
181 context->drawText(font, suffixRunInfo, textOrigin + IntSize(font.width(t
extRun), 0)); | 183 context->drawText(font, suffixRunInfo, textOrigin + IntSize(font.width(t
extRun), 0)); |
182 } else { | 184 } else { |
183 context->drawText(font, suffixRunInfo, textOrigin); | 185 context->drawText(font, suffixRunInfo, textOrigin); |
184 context->drawText(font, textRunPaintInfo, textOrigin + IntSize(font.widt
h(suffixRun), 0)); | 186 context->drawText(font, textRunPaintInfo, textOrigin + IntSize(font.widt
h(suffixRun), 0)); |
185 } | 187 } |
186 } | 188 } |
187 | 189 |
188 } // namespace blink | 190 } // namespace blink |
OLD | NEW |