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

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

Issue 977113003: Rename renderer() to layoutObject(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase to master Created 5 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
Index: Source/core/html/HTMLInputElement.cpp
diff --git a/Source/core/html/HTMLInputElement.cpp b/Source/core/html/HTMLInputElement.cpp
index 87288aaf8daffcd5bd72877dfa4bc1ad047d124e..107d5ec753613f3292dc555144fa21d60cfcd121 100644
--- a/Source/core/html/HTMLInputElement.cpp
+++ b/Source/core/html/HTMLInputElement.cpp
@@ -731,8 +731,8 @@ void HTMLInputElement::parseAttribute(const QualifiedName& name, const AtomicStr
int valueAsInteger;
if (!value.isEmpty() && parseHTMLInteger(value, valueAsInteger) && valueAsInteger > 0)
m_size = valueAsInteger;
- if (m_size != oldSize && renderer())
- renderer()->setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation();
+ if (m_size != oldSize && layoutObject())
+ layoutObject()->setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation();
} else if (name == altAttr)
m_inputTypeView->altAttributeChanged();
else if (name == srcAttr)
@@ -911,16 +911,16 @@ void HTMLInputElement::setChecked(bool nowChecked, TextFieldEventBehavior eventB
if (RadioButtonGroupScope* scope = radioButtonGroupScope())
scope->updateCheckedState(this);
- if (renderer() && renderer()->style()->hasAppearance())
- LayoutTheme::theme().stateChanged(renderer(), CheckedControlState);
+ if (layoutObject() && layoutObject()->style()->hasAppearance())
+ LayoutTheme::theme().stateChanged(layoutObject(), CheckedControlState);
setNeedsValidityCheck();
// Ideally we'd do this from the render tree (matching
// RenderTextView), but it's not possible to do it at the moment
// because of the way the code is structured.
- if (renderer()) {
- if (AXObjectCache* cache = renderer()->document().existingAXObjectCache())
+ if (layoutObject()) {
+ if (AXObjectCache* cache = layoutObject()->document().existingAXObjectCache())
cache->checkedStateChanged(this);
}
@@ -948,8 +948,8 @@ void HTMLInputElement::setIndeterminate(bool newValue)
pseudoStateChanged(CSSSelector::PseudoIndeterminate);
- if (renderer() && renderer()->style()->hasAppearance())
- LayoutTheme::theme().stateChanged(renderer(), CheckedControlState);
+ if (layoutObject() && layoutObject()->style()->hasAppearance())
+ LayoutTheme::theme().stateChanged(layoutObject(), CheckedControlState);
}
int HTMLInputElement::size() const
@@ -1027,7 +1027,7 @@ void HTMLInputElement::setSuggestedValue(const String& value)
void HTMLInputElement::setEditingValue(const String& value)
{
- if (!renderer() || !isTextField())
+ if (!layoutObject() || !isTextField())
return;
setInnerEditorValue(value);
subtreeHasChanged();
@@ -1431,8 +1431,8 @@ void HTMLInputElement::setCanReceiveDroppedFiles(bool canReceiveDroppedFiles)
if (m_canReceiveDroppedFiles == canReceiveDroppedFiles)
return;
m_canReceiveDroppedFiles = canReceiveDroppedFiles;
- if (renderer())
- renderer()->updateFromElement();
+ if (layoutObject())
+ layoutObject()->updateFromElement();
}
String HTMLInputElement::sanitizeValue(const String& proposedValue) const

Powered by Google App Engine
This is Rietveld 408576698