Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(464)

Unified Diff: third_party/WebKit/Source/core/html/HTMLLIElement.cpp

Issue 2369783002: Align position of unstyled list items' bullet point with IE firefox (Closed)
Patch Set: Align position of unstyled list items' bullet point with IE firefox Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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));
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698