OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All |
6 * rights reserved. | 6 * rights reserved. |
7 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 7 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
8 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org) | 8 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org) |
9 * Copyright (C) 2010 Google Inc. All rights reserved. | 9 * Copyright (C) 2010 Google Inc. All rights reserved. |
10 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. | 10 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. |
(...skipping 1663 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1674 } | 1674 } |
1675 | 1675 |
1676 String HTMLInputElement::DefaultToolTip() const { | 1676 String HTMLInputElement::DefaultToolTip() const { |
1677 return input_type_->DefaultToolTip(*input_type_view_); | 1677 return input_type_->DefaultToolTip(*input_type_view_); |
1678 } | 1678 } |
1679 | 1679 |
1680 bool HTMLInputElement::ShouldAppearIndeterminate() const { | 1680 bool HTMLInputElement::ShouldAppearIndeterminate() const { |
1681 return input_type_->ShouldAppearIndeterminate(); | 1681 return input_type_->ShouldAppearIndeterminate(); |
1682 } | 1682 } |
1683 | 1683 |
1684 String HTMLInputElement::GetCapture() const { | |
1685 String capture = FastGetAttribute(captureAttr).DeprecatedLower(); | |
mcasas
2017/04/26 19:27:36
DeprecatedLower() looks deprecated, perhaps you ca
riju_
2017/04/27 12:30:19
Done.
| |
1686 if (capture == "user" || capture == "environment") | |
1687 return capture; | |
1688 | |
1689 // The missing value default and invalid value default is the | |
1690 // implementation-specific state, which is 'environment'. | |
1691 return "environment"; | |
mcasas
2017/04/26 19:27:36
This is implied by l.1686. What about:
if (captur
riju_
2017/04/27 12:30:19
Done.
| |
1692 } | |
1693 | |
1694 void HTMLInputElement::SetCapture(const AtomicString& value) { | |
1695 setAttribute(captureAttr, value); | |
1696 } | |
1697 | |
1684 bool HTMLInputElement::IsInRequiredRadioButtonGroup() { | 1698 bool HTMLInputElement::IsInRequiredRadioButtonGroup() { |
1685 // TODO(tkent): Remove type check. | 1699 // TODO(tkent): Remove type check. |
1686 DCHECK_EQ(type(), InputTypeNames::radio); | 1700 DCHECK_EQ(type(), InputTypeNames::radio); |
1687 if (RadioButtonGroupScope* scope = GetRadioButtonGroupScope()) | 1701 if (RadioButtonGroupScope* scope = GetRadioButtonGroupScope()) |
1688 return scope->IsInRequiredGroup(this); | 1702 return scope->IsInRequiredGroup(this); |
1689 return false; | 1703 return false; |
1690 } | 1704 } |
1691 | 1705 |
1692 HTMLInputElement* HTMLInputElement::CheckedRadioButtonForGroup() { | 1706 HTMLInputElement* HTMLInputElement::CheckedRadioButtonForGroup() { |
1693 if (checked()) | 1707 if (checked()) |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1887 | 1901 |
1888 bool HTMLInputElement::HasFallbackContent() const { | 1902 bool HTMLInputElement::HasFallbackContent() const { |
1889 return input_type_view_->HasFallbackContent(); | 1903 return input_type_view_->HasFallbackContent(); |
1890 } | 1904 } |
1891 | 1905 |
1892 void HTMLInputElement::SetFilesFromPaths(const Vector<String>& paths) { | 1906 void HTMLInputElement::SetFilesFromPaths(const Vector<String>& paths) { |
1893 return input_type_->SetFilesFromPaths(paths); | 1907 return input_type_->SetFilesFromPaths(paths); |
1894 } | 1908 } |
1895 | 1909 |
1896 } // namespace blink | 1910 } // namespace blink |
OLD | NEW |