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

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

Issue 14070021: Rename 'UseCounter::observe' to 'UseCounter::count'. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebaseline. Created 7 years, 8 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/HTMLFormControlElement.cpp ('k') | Source/core/html/HTMLTextFormControlElement.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 c218ce5584d5beb1363ae98aaff2ed9a26370a28..a8532d0542502e62d1ccd8024c1928613a880505 100644
--- a/Source/core/html/HTMLInputElement.cpp
+++ b/Source/core/html/HTMLInputElement.cpp
@@ -669,34 +669,34 @@ void HTMLInputElement::parseAttribute(const QualifiedName& name, const AtomicStr
if (m_maxResults != oldResults && (m_maxResults <= 0 || oldResults <= 0))
reattachIfAttached();
setNeedsStyleRecalc();
- UseCounter::observe(document(), UseCounter::ResultsAttribute);
+ UseCounter::count(document(), UseCounter::ResultsAttribute);
} else if (name == autosaveAttr) {
setNeedsStyleRecalc();
- UseCounter::observe(document(), UseCounter::AutoSaveAttribute);
+ UseCounter::count(document(), UseCounter::AutoSaveAttribute);
} else if (name == incrementalAttr) {
setNeedsStyleRecalc();
- UseCounter::observe(document(), UseCounter::IncrementalAttribute);
+ UseCounter::count(document(), UseCounter::IncrementalAttribute);
} else if (name == minAttr) {
m_inputType->minOrMaxAttributeChanged();
setNeedsValidityCheck();
- UseCounter::observe(document(), UseCounter::MinAttribute);
+ UseCounter::count(document(), UseCounter::MinAttribute);
} else if (name == maxAttr) {
m_inputType->minOrMaxAttributeChanged();
setNeedsValidityCheck();
- UseCounter::observe(document(), UseCounter::MaxAttribute);
+ UseCounter::count(document(), UseCounter::MaxAttribute);
} else if (name == multipleAttr) {
m_inputType->multipleAttributeChanged();
setNeedsValidityCheck();
} else if (name == stepAttr) {
m_inputType->stepAttributeChanged();
setNeedsValidityCheck();
- UseCounter::observe(document(), UseCounter::StepAttribute);
+ UseCounter::count(document(), UseCounter::StepAttribute);
} else if (name == patternAttr) {
setNeedsValidityCheck();
- UseCounter::observe(document(), UseCounter::PatternAttribute);
+ UseCounter::count(document(), UseCounter::PatternAttribute);
} else if (name == precisionAttr) {
setNeedsValidityCheck();
- UseCounter::observe(document(), UseCounter::PrecisionAttribute);
+ UseCounter::count(document(), UseCounter::PrecisionAttribute);
} else if (name == disabledAttr) {
HTMLTextFormControlElement::parseAttribute(name, value);
m_inputType->disabledAttributeChanged();
@@ -711,7 +711,7 @@ void HTMLInputElement::parseAttribute(const QualifiedName& name, const AtomicStr
resetListAttributeTargetObserver();
listAttributeTargetChanged();
}
- UseCounter::observe(document(), UseCounter::ListAttribute);
+ UseCounter::count(document(), UseCounter::ListAttribute);
}
#endif
#if ENABLE(INPUT_SPEECH)
@@ -731,13 +731,13 @@ void HTMLInputElement::parseAttribute(const QualifiedName& name, const AtomicStr
}
setFormControlValueMatchesRenderer(false);
setNeedsStyleRecalc();
- UseCounter::observe(document(), UseCounter::PrefixedSpeechAttribute);
+ UseCounter::count(document(), UseCounter::PrefixedSpeechAttribute);
} else if (name == onwebkitspeechchangeAttr)
setAttributeEventListener(eventNames().webkitspeechchangeEvent, createAttributeEventListener(this, name, value));
#endif
else if (name == webkitdirectoryAttr) {
HTMLTextFormControlElement::parseAttribute(name, value);
- UseCounter::observe(document(), UseCounter::PrefixedDirectoryAttribute);
+ UseCounter::count(document(), UseCounter::PrefixedDirectoryAttribute);
}
else
HTMLTextFormControlElement::parseAttribute(name, value);
« no previous file with comments | « Source/core/html/HTMLFormControlElement.cpp ('k') | Source/core/html/HTMLTextFormControlElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698