Index: third_party/WebKit/Source/core/html/HTMLLIElement.cpp |
diff --git a/third_party/WebKit/Source/core/html/HTMLLIElement.cpp b/third_party/WebKit/Source/core/html/HTMLLIElement.cpp |
index 011dab2f3042fe44430b9cdbc5cf9897170d565a..83cb15c103f3fc95b38ddc2f5faf11ebb0876a83 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLLIElement.cpp |
+++ b/third_party/WebKit/Source/core/html/HTMLLIElement.cpp |
@@ -95,27 +95,8 @@ void HTMLLIElement::attachLayoutTree(const AttachContext& context) { |
HTMLElement::attachLayoutTree(context); |
if (layoutObject() && layoutObject()->isListItem()) { |
- LayoutLIItem liLayoutItem = LayoutLIItem(toLayoutListItem(layoutObject())); |
- |
DCHECK(!document().childNeedsDistributionRecalc()); |
- // Find the enclosing list node. |
- Element* listNode = 0; |
- Element* current = this; |
- while (!listNode) { |
- current = LayoutTreeBuilderTraversal::parentElement(*current); |
- if (!current) |
- break; |
- if (isHTMLUListElement(*current) || isHTMLOListElement(*current)) |
- listNode = current; |
- } |
- |
- // If we are not in a list, tell the layoutObject so it can position us |
- // inside. We don't want to change our style to say "inside" since that |
- // would affect nested nodes. |
- if (!listNode) |
- liLayoutItem.setNotInList(true); |
- |
parseValue(fastGetAttribute(valueAttr)); |
} |
} |