| Index: Source/WebCore/rendering/RenderObjectChildList.cpp
|
| ===================================================================
|
| --- Source/WebCore/rendering/RenderObjectChildList.cpp (revision 95425)
|
| +++ Source/WebCore/rendering/RenderObjectChildList.cpp (working copy)
|
| @@ -299,8 +299,13 @@
|
| do {
|
| // Skip list markers and generated run-ins
|
| first = first->firstChild();
|
| - while (first && (first->isListMarker() || (first->isRenderInline() && first->isRunIn() && first->isAnonymous())))
|
| + while (first && first->isListMarker()) {
|
| + if (first->parent() != owner && first->parent()->isAnonymousBlock())
|
| + first = first->parent();
|
| first = first->nextSibling();
|
| + }
|
| + while (first && first->isRenderInline() && first->isRunIn())
|
| + first = first->nextSibling();
|
| } while (first && first->isAnonymous() && first->style()->styleType() == NOPSEUDO);
|
|
|
| if (!first)
|
| @@ -321,7 +326,7 @@
|
| // We still need to skip any list markers that could exist before the run-in.
|
| while (first && first->isListMarker())
|
| first = first->nextSibling();
|
| - if (first && first->style()->styleType() == BEFORE && first->isRenderInline() && first->isRunIn() && first->isAnonymous())
|
| + if (first && first->style()->styleType() == BEFORE && first->isRenderInline() && first->isRunIn())
|
| return first;
|
| }
|
| return 0;
|
|
|