< prev index next >
modules/javafx.web/src/main/native/Source/WebCore/rendering/RenderListMarker.cpp
Print this page
@@ -1380,12 +1380,12 @@
{
StackStats::LayoutCheckPoint layoutCheckPoint;
ASSERT(needsLayout());
LayoutUnit blockOffset;
- for (auto* box = parentBox(); box && box != &m_listItem; box = box->parentBox())
- blockOffset += box->logicalTop();
+ for (auto* ancestor = parentBox(); ancestor && ancestor != &m_listItem; ancestor = ancestor->parentBox())
+ blockOffset += ancestor->logicalTop();
if (style().isLeftToRightDirection())
m_lineOffsetForListItem = m_listItem.logicalLeftOffsetForLine(blockOffset, DoNotIndentText, LayoutUnit());
else
m_lineOffsetForListItem = m_listItem.logicalRightOffsetForLine(blockOffset, DoNotIndentText, LayoutUnit());
< prev index next >