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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 case EthiopicHalehame: | 94 case EthiopicHalehame: |
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 Hiragana: | 105 case Hiragana: |
105 case HiraganaIroha: | 106 case HiraganaIroha: |
106 case Kannada: | 107 case Kannada: |
107 case Katakana: | 108 case Katakana: |
108 case KatakanaIroha: | 109 case KatakanaIroha: |
109 case Khmer: | 110 case Khmer: |
110 case Lao: | 111 case Lao: |
111 case LowerAlpha: | 112 case LowerAlpha: |
112 case LowerArmenian: | 113 case LowerArmenian: |
113 case LowerGreek: | 114 case LowerGreek: |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 if (m_layoutListMarker.style()->isLeftToRightDirection()) { | 175 if (m_layoutListMarker.style()->isLeftToRightDirection()) { |
175 context->drawText(font, textRunPaintInfo, textOrigin); | 176 context->drawText(font, textRunPaintInfo, textOrigin); |
176 context->drawText(font, suffixRunInfo, textOrigin + IntSize(font.width(t
extRun), 0)); | 177 context->drawText(font, suffixRunInfo, textOrigin + IntSize(font.width(t
extRun), 0)); |
177 } else { | 178 } else { |
178 context->drawText(font, suffixRunInfo, textOrigin); | 179 context->drawText(font, suffixRunInfo, textOrigin); |
179 context->drawText(font, textRunPaintInfo, textOrigin + IntSize(font.widt
h(suffixRun), 0)); | 180 context->drawText(font, textRunPaintInfo, textOrigin + IntSize(font.widt
h(suffixRun), 0)); |
180 } | 181 } |
181 } | 182 } |
182 | 183 |
183 } // namespace blink | 184 } // namespace blink |
OLD | NEW |