| Index: third_party/WebKit/Source/core/paint/ListMarkerPainter.cpp
|
| diff --git a/third_party/WebKit/Source/core/paint/ListMarkerPainter.cpp b/third_party/WebKit/Source/core/paint/ListMarkerPainter.cpp
|
| index 867626938279b2802748dadaea8ad996e117ecdf..eb30da5223a8791a8efb5b415f3d8845dadaede8 100644
|
| --- a/third_party/WebKit/Source/core/paint/ListMarkerPainter.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/ListMarkerPainter.cpp
|
| @@ -130,9 +130,11 @@ void ListMarkerPainter::paint(const PaintInfo& paintInfo,
|
|
|
| TextRunPaintInfo textRunPaintInfo(textRun);
|
| textRunPaintInfo.bounds = marker;
|
| + const SimpleFontData* fontData =
|
| + m_layoutListMarker.style()->font().primaryFont();
|
| IntPoint textOrigin = IntPoint(
|
| marker.x(),
|
| - marker.y() + m_layoutListMarker.style()->getFontMetrics().ascent());
|
| + marker.y() + (fontData ? fontData->getFontMetrics().ascent() : 0));
|
|
|
| // Text is not arbitrary. We can judge whether it's RTL from the first
|
| // character, and we only need to handle the direction RightToLeft for now.
|
|
|