Chromium Code Reviews| 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 r ights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. |
| 6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
| 7 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org) | 7 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org) |
| 8 * Copyright (C) 2010 Google Inc. All rights reserved. | 8 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 9 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) | 9 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) |
| 10 * Copyright (C) 2012 Samsung Electronics. All rights reserved. | 10 * Copyright (C) 2012 Samsung Electronics. All rights reserved. |
| (...skipping 1637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1648 bool HTMLInputElement::isEnumeratable() const | 1648 bool HTMLInputElement::isEnumeratable() const |
| 1649 { | 1649 { |
| 1650 return m_inputType->isEnumeratable(); | 1650 return m_inputType->isEnumeratable(); |
| 1651 } | 1651 } |
| 1652 | 1652 |
| 1653 bool HTMLInputElement::supportLabels() const | 1653 bool HTMLInputElement::supportLabels() const |
| 1654 { | 1654 { |
| 1655 return m_inputType->isInteractiveContent(); | 1655 return m_inputType->isInteractiveContent(); |
| 1656 } | 1656 } |
| 1657 | 1657 |
| 1658 bool HTMLInputElement::isDefaultButtonForForm() const | |
| 1659 { | |
| 1660 if (fastHasAttribute(checkedAttr)) | |
|
tkent
2016/03/03 13:29:08
The specification says "input elements to which th
ramya.v
2016/03/04 06:31:45
Done.
| |
| 1661 return true; | |
| 1662 return HTMLFormControlElement::isDefaultButtonForForm(); | |
| 1663 } | |
| 1664 | |
| 1658 bool HTMLInputElement::shouldAppearChecked() const | 1665 bool HTMLInputElement::shouldAppearChecked() const |
| 1659 { | 1666 { |
| 1660 return checked() && m_inputType->isCheckable(); | 1667 return checked() && m_inputType->isCheckable(); |
| 1661 } | 1668 } |
| 1662 | 1669 |
| 1663 void HTMLInputElement::setPlaceholderVisibility(bool visible) | 1670 void HTMLInputElement::setPlaceholderVisibility(bool visible) |
| 1664 { | 1671 { |
| 1665 m_isPlaceholderVisible = visible; | 1672 m_isPlaceholderVisible = visible; |
| 1666 } | 1673 } |
| 1667 | 1674 |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1928 void HTMLInputElement::ensurePrimaryContent() | 1935 void HTMLInputElement::ensurePrimaryContent() |
| 1929 { | 1936 { |
| 1930 m_inputTypeView->ensurePrimaryContent(); | 1937 m_inputTypeView->ensurePrimaryContent(); |
| 1931 } | 1938 } |
| 1932 | 1939 |
| 1933 bool HTMLInputElement::hasFallbackContent() const | 1940 bool HTMLInputElement::hasFallbackContent() const |
| 1934 { | 1941 { |
| 1935 return m_inputTypeView->hasFallbackContent(); | 1942 return m_inputTypeView->hasFallbackContent(); |
| 1936 } | 1943 } |
| 1937 } // namespace blink | 1944 } // namespace blink |
| OLD | NEW |