| 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 4771182306c78ecc6d4aa10c1c1a311d7738aaec..f29852ffff7d78335384e881a111909558d96de2 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutListItem.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutListItem.cpp
|
| @@ -24,7 +24,7 @@
|
| #include "core/layout/LayoutListItem.h"
|
|
|
| #include "core/HTMLNames.h"
|
| -#include "core/dom/shadow/ComposedTreeTraversal.h"
|
| +#include "core/dom/shadow/FlatTreeTraversal.h"
|
| #include "core/html/HTMLOListElement.h"
|
| #include "core/layout/LayoutListMarker.h"
|
| #include "core/layout/LayoutView.h"
|
| @@ -128,7 +128,7 @@ static Node* enclosingList(const LayoutListItem* listItem)
|
| return nullptr;
|
| Node* firstNode = nullptr;
|
| // We use parentNode because the enclosing list could be a ShadowRoot that's not Element.
|
| - for (Node* parent = ComposedTreeTraversal::parent(*listItemNode); parent; parent = ComposedTreeTraversal::parent(*parent)) {
|
| + for (Node* parent = FlatTreeTraversal::parent(*listItemNode); parent; parent = FlatTreeTraversal::parent(*parent)) {
|
| if (isList(*parent))
|
| return parent;
|
| if (!firstNode)
|
|
|