Index: Source/core/rendering/RenderListMarker.cpp |
diff --git a/Source/core/rendering/RenderListMarker.cpp b/Source/core/rendering/RenderListMarker.cpp |
index b127c8cebc262accbd4c618eb8d1140c2d8b8567..f43e26df26a6026d6f993913b0cb42716f4dd944 100644 |
--- a/Source/core/rendering/RenderListMarker.cpp |
+++ b/Source/core/rendering/RenderListMarker.cpp |
@@ -1678,6 +1678,27 @@ int RenderListMarker::baselinePosition(FontBaseline baselineType, bool firstLine |
return RenderBox::baselinePosition(baselineType, firstLine, direction, linePositionMode); |
} |
+String RenderListMarker::suffix() const |
+{ |
+ EListStyleType type = style()->listStyleType(); |
+ const UChar suffix = listMarkerSuffix(type, m_listItem->value()); |
+ |
+ if (suffix == ' ') |
+ return String(" "); |
+ |
+ // If the suffix is not ' ', an extra space is needed |
+ UChar data[2]; |
+ if (style()->isLeftToRightDirection()) { |
+ data[0] = suffix; |
+ data[1] = ' '; |
+ } else { |
+ data[0] = ' '; |
+ data[1] = suffix; |
+ } |
+ |
+ return String(data, 2); |
+} |
+ |
bool RenderListMarker::isInside() const |
{ |
return m_listItem->notInList() || style()->listStylePosition() == INSIDE; |