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

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

Issue 977113003: Rename renderer() to layoutObject(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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 | « Source/core/html/HTMLInputElement.cpp ('k') | Source/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLLIElement.cpp
diff --git a/Source/core/html/HTMLLIElement.cpp b/Source/core/html/HTMLLIElement.cpp
index b67831b45274f4f75d29b537e644475835bbfe88..04812a6b7224adccf933f5e4e9078669b6920703 100644
--- a/Source/core/html/HTMLLIElement.cpp
+++ b/Source/core/html/HTMLLIElement.cpp
@@ -69,7 +69,7 @@ void HTMLLIElement::collectStyleForPresentationAttribute(const QualifiedName& na
void HTMLLIElement::parseAttribute(const QualifiedName& name, const AtomicString& value)
{
if (name == valueAttr) {
- if (renderer() && renderer()->isListItem())
+ if (layoutObject() && layoutObject()->isListItem())
parseValue(value);
} else
HTMLElement::parseAttribute(name, value);
@@ -79,8 +79,8 @@ void HTMLLIElement::attach(const AttachContext& context)
{
HTMLElement::attach(context);
- if (renderer() && renderer()->isListItem()) {
- LayoutListItem* listItemLayoutObject = toLayoutListItem(renderer());
+ if (layoutObject() && layoutObject()->isListItem()) {
+ LayoutListItem* listItemLayoutObject = toLayoutListItem(layoutObject());
ASSERT(!document().childNeedsDistributionRecalc());
@@ -106,14 +106,14 @@ void HTMLLIElement::attach(const AttachContext& context)
inline void HTMLLIElement::parseValue(const AtomicString& value)
{
- ASSERT(renderer() && renderer()->isListItem());
+ ASSERT(layoutObject() && layoutObject()->isListItem());
bool valueOK;
int requestedValue = value.toInt(&valueOK);
if (valueOK)
- toLayoutListItem(renderer())->setExplicitValue(requestedValue);
+ toLayoutListItem(layoutObject())->setExplicitValue(requestedValue);
else
- toLayoutListItem(renderer())->clearExplicitValue();
+ toLayoutListItem(layoutObject())->clearExplicitValue();
}
}
« no previous file with comments | « Source/core/html/HTMLInputElement.cpp ('k') | Source/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698