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

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

Issue 303473004: Remove the UseCounters for the capture attribute (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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/HTMLInputElement.h ('k') | Source/core/html/forms/FileInputType.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 126beb0f5f2792d8a6c8f9e24eb67c08d66bf4b6..5f2ecaae9af2c3f21672456a8840e32df1ac38aa 100644
--- a/Source/core/html/HTMLInputElement.cpp
+++ b/Source/core/html/HTMLInputElement.cpp
@@ -1682,25 +1682,6 @@ bool HTMLInputElement::shouldAppearIndeterminate() const
return m_inputType->supportsIndeterminateAppearance() && indeterminate();
}
-#if ENABLE(MEDIA_CAPTURE)
-bool HTMLInputElement::capture() const
-{
- if (!isFileUpload() || !fastHasAttribute(captureAttr))
- return false;
-
- // As per crbug.com/240252, emit a deprecation warning when the "capture"
- // attribute is used as an enum. The spec has been updated and "capture" is
- // supposed to be used as a boolean.
- bool hasDeprecatedUsage = !fastGetAttribute(captureAttr).isEmpty();
- if (hasDeprecatedUsage)
- UseCounter::countDeprecation(document(), UseCounter::CaptureAttributeAsEnum);
- else
- UseCounter::count(document(), UseCounter::CaptureAttributeAsBoolean);
-
- return true;
-}
-#endif
-
bool HTMLInputElement::isInRequiredRadioButtonGroup()
{
ASSERT(isRadioButton());
« no previous file with comments | « Source/core/html/HTMLInputElement.h ('k') | Source/core/html/forms/FileInputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698