| Index: third_party/WebKit/Source/core/html/HTMLInputElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/HTMLInputElement.cpp b/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
|
| index 77db91671a0e37d0448b181acc33ffafcfd20927..bdffa0fb98c5b834ce84fd07c437d9f0f3f3e502 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
|
| @@ -1681,6 +1681,19 @@ bool HTMLInputElement::ShouldAppearIndeterminate() const {
|
| return input_type_->ShouldAppearIndeterminate();
|
| }
|
|
|
| +String HTMLInputElement::capture() const {
|
| + const String capture = FastGetAttribute(captureAttr).LowerASCII();
|
| + if (capture == "user")
|
| + return capture;
|
| +
|
| + // |capture| is equivalent to 'environment' if unspecified.
|
| + return "environment";
|
| +}
|
| +
|
| +void HTMLInputElement::setCapture(const AtomicString& value) {
|
| + setAttribute(captureAttr, value);
|
| +}
|
| +
|
| bool HTMLInputElement::IsInRequiredRadioButtonGroup() {
|
| // TODO(tkent): Remove type check.
|
| DCHECK_EQ(type(), InputTypeNames::radio);
|
|
|