Commit 531d0196 authored by Andrea Iacovitti's avatar Andrea Iacovitti

Always show list marker if valid list-style-image specified.

BUG: 279241
FIXED-IN: 4.13.3
parent 06b65573
......@@ -69,13 +69,15 @@ void RenderListItem::setStyle(RenderStyle *_style)
newStyle->inheritFrom(style());
if(!m_marker && style()->listStyleType() != LNONE) {
const bool showListMarker = style()->listStyleImage() || style()->listStyleType() != LNONE;
if (!m_marker && showListMarker) {
m_marker = new (renderArena()) RenderListMarker(element());
m_marker->setIsAnonymous( true );
m_marker->setStyle(newStyle);
m_marker->setListItem( this );
m_deleteMarker = true;
} else if ( m_marker && style()->listStyleType() == LNONE) {
} else if (m_marker && !showListMarker) {
m_marker->detach();
m_marker = 0;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment