| 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 1741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1752 // FIXME: Remove type check. | 1752 // FIXME: Remove type check. |
| 1753 if (type() != InputTypeNames::radio) | 1753 if (type() != InputTypeNames::radio) |
| 1754 return nullptr; | 1754 return nullptr; |
| 1755 if (HTMLFormElement* formElement = form()) | 1755 if (HTMLFormElement* formElement = form()) |
| 1756 return &formElement->radioButtonGroupScope(); | 1756 return &formElement->radioButtonGroupScope(); |
| 1757 if (inDocument()) | 1757 if (inDocument()) |
| 1758 return &document().formController().radioButtonGroupScope(); | 1758 return &document().formController().radioButtonGroupScope(); |
| 1759 return nullptr; | 1759 return nullptr; |
| 1760 } | 1760 } |
| 1761 | 1761 |
| 1762 unsigned HTMLInputElement::sizeOfRadioGroup() const |
| 1763 { |
| 1764 RadioButtonGroupScope* scope = radioButtonGroupScope(); |
| 1765 if (!scope) |
| 1766 return 0; |
| 1767 return scope->groupSizeFor(this); |
| 1768 } |
| 1769 |
| 1762 inline void HTMLInputElement::addToRadioButtonGroup() | 1770 inline void HTMLInputElement::addToRadioButtonGroup() |
| 1763 { | 1771 { |
| 1764 if (RadioButtonGroupScope* scope = radioButtonGroupScope()) | 1772 if (RadioButtonGroupScope* scope = radioButtonGroupScope()) |
| 1765 scope->addButton(this); | 1773 scope->addButton(this); |
| 1766 } | 1774 } |
| 1767 | 1775 |
| 1768 inline void HTMLInputElement::removeFromRadioButtonGroup() | 1776 inline void HTMLInputElement::removeFromRadioButtonGroup() |
| 1769 { | 1777 { |
| 1770 if (RadioButtonGroupScope* scope = radioButtonGroupScope()) | 1778 if (RadioButtonGroupScope* scope = radioButtonGroupScope()) |
| 1771 scope->removeButton(this); | 1779 scope->removeButton(this); |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1931 void HTMLInputElement::ensurePrimaryContent() | 1939 void HTMLInputElement::ensurePrimaryContent() |
| 1932 { | 1940 { |
| 1933 m_inputTypeView->ensurePrimaryContent(); | 1941 m_inputTypeView->ensurePrimaryContent(); |
| 1934 } | 1942 } |
| 1935 | 1943 |
| 1936 bool HTMLInputElement::hasFallbackContent() const | 1944 bool HTMLInputElement::hasFallbackContent() const |
| 1937 { | 1945 { |
| 1938 return m_inputTypeView->hasFallbackContent(); | 1946 return m_inputTypeView->hasFallbackContent(); |
| 1939 } | 1947 } |
| 1940 } // namespace blink | 1948 } // namespace blink |
| OLD | NEW |