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

Unified Diff: Source/core/html/HTMLInputElement.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/HTMLImageElement.cpp ('k') | Source/core/html/HTMLLIElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLInputElement.cpp
diff --git a/Source/core/html/HTMLInputElement.cpp b/Source/core/html/HTMLInputElement.cpp
index 6d221ea6365eca9d4d2de0c4659b0668577c53b0..cb6b0b18d03eddccb7f544a6ee8e184fe29966b3 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
« no previous file with comments | « Source/core/html/HTMLImageElement.cpp ('k') | Source/core/html/HTMLLIElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698