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

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

Issue 14301003: Rename FeatureObserver to UseCounter to make clear that all it stores are usage counts. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Now with 20% more awesome 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
Index: Source/WebCore/html/HTMLInputElement.cpp
diff --git a/Source/WebCore/html/HTMLInputElement.cpp b/Source/WebCore/html/HTMLInputElement.cpp
index cfe9ff5847f79531a3269e204d386a385952d7d2..bfad960b7ab1f69b7e3e8f431f1273e4665c8203 100644
--- a/Source/WebCore/html/HTMLInputElement.cpp
+++ b/Source/WebCore/html/HTMLInputElement.cpp
@@ -38,7 +38,7 @@
#include "ElementShadow.h"
#include "EventNames.h"
#include "ExceptionCode.h"
-#include "FeatureObserver.h"
+#include "UseCounter.h"
#include "FileInputType.h"
#include "FileList.h"
#include "FormController.h"
@@ -696,34 +696,34 @@ void HTMLInputElement::parseAttribute(const QualifiedName& name, const AtomicStr
if (m_maxResults != oldResults && (m_maxResults <= 0 || oldResults <= 0))
reattachIfAttached();
setNeedsStyleRecalc();
- FeatureObserver::observe(document(), FeatureObserver::ResultsAttribute);
+ UseCounter::observe(document(), UseCounter::ResultsAttribute);
} else if (name == autosaveAttr) {
setNeedsStyleRecalc();
- FeatureObserver::observe(document(), FeatureObserver::AutoSaveAttribute);
+ UseCounter::observe(document(), UseCounter::AutoSaveAttribute);
} else if (name == incrementalAttr) {
setNeedsStyleRecalc();
- FeatureObserver::observe(document(), FeatureObserver::IncrementalAttribute);
+ UseCounter::observe(document(), UseCounter::IncrementalAttribute);
} else if (name == minAttr) {
m_inputType->minOrMaxAttributeChanged();
setNeedsValidityCheck();
- FeatureObserver::observe(document(), FeatureObserver::MinAttribute);
+ UseCounter::observe(document(), UseCounter::MinAttribute);
} else if (name == maxAttr) {
m_inputType->minOrMaxAttributeChanged();
setNeedsValidityCheck();
- FeatureObserver::observe(document(), FeatureObserver::MaxAttribute);
+ UseCounter::observe(document(), UseCounter::MaxAttribute);
} else if (name == multipleAttr) {
m_inputType->multipleAttributeChanged();
setNeedsValidityCheck();
} else if (name == stepAttr) {
m_inputType->stepAttributeChanged();
setNeedsValidityCheck();
- FeatureObserver::observe(document(), FeatureObserver::StepAttribute);
+ UseCounter::observe(document(), UseCounter::StepAttribute);
} else if (name == patternAttr) {
setNeedsValidityCheck();
- FeatureObserver::observe(document(), FeatureObserver::PatternAttribute);
+ UseCounter::observe(document(), UseCounter::PatternAttribute);
} else if (name == precisionAttr) {
setNeedsValidityCheck();
- FeatureObserver::observe(document(), FeatureObserver::PrecisionAttribute);
+ UseCounter::observe(document(), UseCounter::PrecisionAttribute);
} else if (name == disabledAttr) {
HTMLTextFormControlElement::parseAttribute(name, value);
m_inputType->disabledAttributeChanged();
@@ -738,7 +738,7 @@ void HTMLInputElement::parseAttribute(const QualifiedName& name, const AtomicStr
resetListAttributeTargetObserver();
listAttributeTargetChanged();
}
- FeatureObserver::observe(document(), FeatureObserver::ListAttribute);
+ UseCounter::observe(document(), UseCounter::ListAttribute);
}
#endif
#if ENABLE(INPUT_SPEECH)
@@ -758,13 +758,13 @@ void HTMLInputElement::parseAttribute(const QualifiedName& name, const AtomicStr
}
setFormControlValueMatchesRenderer(false);
setNeedsStyleRecalc();
- FeatureObserver::observe(document(), FeatureObserver::PrefixedSpeechAttribute);
+ UseCounter::observe(document(), UseCounter::PrefixedSpeechAttribute);
} else if (name == onwebkitspeechchangeAttr)
setAttributeEventListener(eventNames().webkitspeechchangeEvent, createAttributeEventListener(this, name, value));
#endif
else if (name == webkitdirectoryAttr) {
HTMLTextFormControlElement::parseAttribute(name, value);
- FeatureObserver::observe(document(), FeatureObserver::PrefixedDirectoryAttribute);
+ UseCounter::observe(document(), UseCounter::PrefixedDirectoryAttribute);
}
else
HTMLTextFormControlElement::parseAttribute(name, value);

Powered by Google App Engine
This is Rietveld 408576698