< prev index next >
modules/javafx.web/src/main/native/Source/WebCore/rendering/RenderListItem.cpp
Print this page
@@ -270,13 +270,13 @@
return;
LayoutUnit markerOldLogicalLeft = m_marker->logicalLeft();
LayoutUnit blockOffset = 0;
LayoutUnit lineOffset = 0;
- for (RenderBox* o = m_marker->parentBox(); o != this; o = o->parentBox()) {
- blockOffset += o->logicalTop();
- lineOffset += o->logicalLeft();
+ for (auto* ancestor = m_marker->parentBox(); ancestor && ancestor != this; ancestor = ancestor->parentBox()) {
+ blockOffset += ancestor->logicalTop();
+ lineOffset += ancestor->logicalLeft();
}
bool adjustOverflow = false;
LayoutUnit markerLogicalLeft;
bool hitSelfPaintingLayer = false;
< prev index next >