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 1731 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1742 // FIXME: Remove type check. | 1742 // FIXME: Remove type check. |
1743 if (type() != InputTypeNames::radio) | 1743 if (type() != InputTypeNames::radio) |
1744 return nullptr; | 1744 return nullptr; |
1745 if (HTMLFormElement* formElement = form()) | 1745 if (HTMLFormElement* formElement = form()) |
1746 return &formElement->radioButtonGroupScope(); | 1746 return &formElement->radioButtonGroupScope(); |
1747 if (inDocument()) | 1747 if (inDocument()) |
1748 return &document().formController().radioButtonGroupScope(); | 1748 return &document().formController().radioButtonGroupScope(); |
1749 return nullptr; | 1749 return nullptr; |
1750 } | 1750 } |
1751 | 1751 |
| 1752 unsigned HTMLInputElement::posInRadioGroup() |
| 1753 { |
| 1754 RadioButtonGroupScope* scope = radioButtonGroupScope(); |
| 1755 if (!scope) |
| 1756 return 0; |
| 1757 return scope->posInGroup(this); |
| 1758 } |
| 1759 |
| 1760 unsigned HTMLInputElement::sizeOfRadioGroup() |
| 1761 { |
| 1762 RadioButtonGroupScope* scope = radioButtonGroupScope(); |
| 1763 if (!scope) |
| 1764 return 0; |
| 1765 return scope->sizeOfGroup(this); |
| 1766 } |
| 1767 |
1752 inline void HTMLInputElement::addToRadioButtonGroup() | 1768 inline void HTMLInputElement::addToRadioButtonGroup() |
1753 { | 1769 { |
1754 if (RadioButtonGroupScope* scope = radioButtonGroupScope()) | 1770 if (RadioButtonGroupScope* scope = radioButtonGroupScope()) |
1755 scope->addButton(this); | 1771 scope->addButton(this); |
1756 } | 1772 } |
1757 | 1773 |
1758 inline void HTMLInputElement::removeFromRadioButtonGroup() | 1774 inline void HTMLInputElement::removeFromRadioButtonGroup() |
1759 { | 1775 { |
1760 if (RadioButtonGroupScope* scope = radioButtonGroupScope()) | 1776 if (RadioButtonGroupScope* scope = radioButtonGroupScope()) |
1761 scope->removeButton(this); | 1777 scope->removeButton(this); |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1921 void HTMLInputElement::ensurePrimaryContent() | 1937 void HTMLInputElement::ensurePrimaryContent() |
1922 { | 1938 { |
1923 m_inputTypeView->ensurePrimaryContent(); | 1939 m_inputTypeView->ensurePrimaryContent(); |
1924 } | 1940 } |
1925 | 1941 |
1926 bool HTMLInputElement::hasFallbackContent() const | 1942 bool HTMLInputElement::hasFallbackContent() const |
1927 { | 1943 { |
1928 return m_inputTypeView->hasFallbackContent(); | 1944 return m_inputTypeView->hasFallbackContent(); |
1929 } | 1945 } |
1930 } // namespace | 1946 } // namespace |
OLD | NEW |