Index: Source/core/html/HTMLFormControlElement.cpp |
diff --git a/Source/core/html/HTMLFormControlElement.cpp b/Source/core/html/HTMLFormControlElement.cpp |
index 331ef50806ac317ff8f1df115cb2815f476e96a8..d98c9afeab1815ba62466e2cc5a338ca8b8967f5 100644 |
--- a/Source/core/html/HTMLFormControlElement.cpp |
+++ b/Source/core/html/HTMLFormControlElement.cpp |
@@ -126,7 +126,7 @@ void HTMLFormControlElement::parseAttribute(const QualifiedName& name, const Ato |
{ |
if (name == formAttr) { |
formAttributeChanged(); |
- UseCounter::observe(document(), UseCounter::FormAttribute); |
+ UseCounter::count(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(); |
- UseCounter::observe(document(), UseCounter::RequiredAttribute); |
+ UseCounter::count(document(), UseCounter::RequiredAttribute); |
} else if (name == autofocusAttr) { |
HTMLElement::parseAttribute(name, value); |
- UseCounter::observe(document(), UseCounter::AutoFocusAttribute); |
+ UseCounter::count(document(), UseCounter::AutoFocusAttribute); |
} else |
HTMLElement::parseAttribute(name, value); |
} |