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

Unified Diff: Source/WebCore/html/HTMLFormControlElement.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/HTMLFormControlElement.cpp
diff --git a/Source/WebCore/html/HTMLFormControlElement.cpp b/Source/WebCore/html/HTMLFormControlElement.cpp
index 3b393ed3d0ce7fde423ddbfc7138b14344485fe3..51b7538cad5e125f17ebe9a8eb1c2e7d6d8ee0a7 100644
--- a/Source/WebCore/html/HTMLFormControlElement.cpp
+++ b/Source/WebCore/html/HTMLFormControlElement.cpp
@@ -30,7 +30,7 @@
#include "Event.h"
#include "EventHandler.h"
#include "EventNames.h"
-#include "FeatureObserver.h"
+#include "UseCounter.h"
#include "Frame.h"
#include "HTMLFieldSetElement.h"
#include "HTMLFormElement.h"
@@ -126,7 +126,7 @@ void HTMLFormControlElement::parseAttribute(const QualifiedName& name, const Ato
{
if (name == formAttr) {
formAttributeChanged();
- FeatureObserver::observe(document(), FeatureObserver::FormAttribute);
+ UseCounter::observe(document(), UseCounter::FormAttribute);
} else if (name == disabledAttr) {
bool oldDisabled = m_disabled;
m_disabled = !value.isNull();
@@ -146,10 +146,10 @@ void HTMLFormControlElement::parseAttribute(const QualifiedName& name, const Ato
m_isRequired = !value.isNull();
if (wasRequired != m_isRequired)
requiredAttributeChanged();
- FeatureObserver::observe(document(), FeatureObserver::RequiredAttribute);
+ UseCounter::observe(document(), UseCounter::RequiredAttribute);
} else if (name == autofocusAttr) {
HTMLElement::parseAttribute(name, value);
- FeatureObserver::observe(document(), FeatureObserver::AutoFocusAttribute);
+ UseCounter::observe(document(), UseCounter::AutoFocusAttribute);
} else
HTMLElement::parseAttribute(name, value);
}

Powered by Google App Engine
This is Rietveld 408576698