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

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

Issue 2463573002: Problem: Blink list-item-position is inside for unstyled list items Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « AUTHORS ('k') | third_party/WebKit/Source/core/layout/LayoutListItem.h » ('j') | 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 2724d976b29ac888f4d62085f6a98d037275f30d..e0f41d685904cfb939b3e2acc1619378f9437afe 100644
--- a/third_party/WebKit/Source/core/html/HTMLLIElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLLIElement.cpp
@@ -96,7 +96,6 @@ void HTMLLIElement::attach(const AttachContext& context)
HTMLElement::attach(context);
if (layoutObject() && layoutObject()->isListItem()) {
- LayoutLIItem liLayoutItem = LayoutLIItem(toLayoutListItem(layoutObject()));
ASSERT(!document().childNeedsDistributionRecalc());
@@ -111,11 +110,6 @@ void HTMLLIElement::attach(const AttachContext& context)
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 | « AUTHORS ('k') | third_party/WebKit/Source/core/layout/LayoutListItem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698