| Index: third_party/WebKit/Source/core/layout/LayoutListItem.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutListItem.cpp b/third_party/WebKit/Source/core/layout/LayoutListItem.cpp
|
| index badb3a06f52091495cb3760cd7c472f975a045fc..b0f7801b64c6df59fdd6ea93c674864b6a0a8e00 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutListItem.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutListItem.cpp
|
| @@ -299,7 +299,8 @@ bool LayoutListItem::updateMarkerLocation()
|
| ASSERT(m_marker);
|
|
|
| LayoutObject* markerParent = m_marker->parent();
|
| - LayoutObject* lineBoxParent = getParentOfFirstLineBox(this, m_marker);
|
| + // list-style-position:inside makes the ::marker pseudo an ordinary position:static element that should be attached to LayoutListItem block.
|
| + LayoutObject* lineBoxParent = m_marker->isInside() ? this : getParentOfFirstLineBox(this, m_marker);
|
| if (!lineBoxParent) {
|
| // If the marker is currently contained inside an anonymous box, then we
|
| // are the only item in that anonymous box (since no line box parent was
|
|
|