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

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

Issue 1759173002: [Layout API] Create api/LayoutLIItem and use it in html/HTMLLIElement (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/layout/api/LayoutItem.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 86ffd01fdbd5ecf8ecffd3693abff7ee33f371a3..2724d976b29ac888f4d62085f6a98d037275f30d 100644
--- a/third_party/WebKit/Source/core/html/HTMLLIElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLLIElement.cpp
@@ -27,6 +27,7 @@
#include "core/HTMLNames.h"
#include "core/dom/LayoutTreeBuilderTraversal.h"
#include "core/layout/LayoutListItem.h"
+#include "core/layout/api/LayoutLIItem.h"
namespace blink {
@@ -95,7 +96,7 @@ void HTMLLIElement::attach(const AttachContext& context)
HTMLElement::attach(context);
if (layoutObject() && layoutObject()->isListItem()) {
- LayoutListItem* listItemLayoutObject = toLayoutListItem(layoutObject());
+ LayoutLIItem liLayoutItem = LayoutLIItem(toLayoutListItem(layoutObject()));
ASSERT(!document().childNeedsDistributionRecalc());
@@ -113,7 +114,7 @@ void HTMLLIElement::attach(const AttachContext& context)
// 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)
- listItemLayoutObject->setNotInList(true);
+ liLayoutItem.setNotInList(true);
parseValue(fastGetAttribute(valueAttr));
}
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/layout/api/LayoutItem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698