Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(138)

Side by Side Diff: Source/core/paint/ListMarkerPainter.cpp

Issue 1184433004: Implement chinese counter styles (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch for landing Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/layout/LayoutListMarker.cpp ('k') | Source/core/style/ComputedStyleConstants.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 case LowerAlpha: 112 case LowerAlpha:
113 case LowerArmenian: 113 case LowerArmenian:
114 case LowerGreek: 114 case LowerGreek:
115 case LowerLatin: 115 case LowerLatin:
116 case LowerRoman: 116 case LowerRoman:
117 case Malayalam: 117 case Malayalam:
118 case Mongolian: 118 case Mongolian:
119 case Myanmar: 119 case Myanmar:
120 case Oriya: 120 case Oriya:
121 case Persian: 121 case Persian:
122 case SimpChineseFormal:
123 case SimpChineseInformal:
122 case Telugu: 124 case Telugu:
123 case Thai: 125 case Thai:
124 case Tibetan: 126 case Tibetan:
127 case TradChineseFormal:
128 case TradChineseInformal:
125 case UpperAlpha: 129 case UpperAlpha:
126 case UpperArmenian: 130 case UpperArmenian:
127 case UpperLatin: 131 case UpperLatin:
128 case UpperRoman: 132 case UpperRoman:
129 case Urdu: 133 case Urdu:
130 break; 134 break;
131 } 135 }
132 if (m_layoutListMarker.text().isEmpty()) 136 if (m_layoutListMarker.text().isEmpty())
133 return; 137 return;
134 138
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 if (m_layoutListMarker.style()->isLeftToRightDirection()) { 179 if (m_layoutListMarker.style()->isLeftToRightDirection()) {
176 context->drawText(font, textRunPaintInfo, textOrigin); 180 context->drawText(font, textRunPaintInfo, textOrigin);
177 context->drawText(font, suffixRunInfo, textOrigin + IntSize(font.width(t extRun), 0)); 181 context->drawText(font, suffixRunInfo, textOrigin + IntSize(font.width(t extRun), 0));
178 } else { 182 } else {
179 context->drawText(font, suffixRunInfo, textOrigin); 183 context->drawText(font, suffixRunInfo, textOrigin);
180 context->drawText(font, textRunPaintInfo, textOrigin + IntSize(font.widt h(suffixRun), 0)); 184 context->drawText(font, textRunPaintInfo, textOrigin + IntSize(font.widt h(suffixRun), 0));
181 } 185 }
182 } 186 }
183 187
184 } // namespace blink 188 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutListMarker.cpp ('k') | Source/core/style/ComputedStyleConstants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698