Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(866)

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLInputElement.cpp

Issue 1628283002: posinset and setsize for input type, radio, exposed in AX tree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed typo Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 1630 matching lines...) Expand 10 before | Expand all | Expand 10 after
1641 bool HTMLInputElement::isTextButton() const 1641 bool HTMLInputElement::isTextButton() const
1642 { 1642 {
1643 return m_inputType->isTextButton(); 1643 return m_inputType->isTextButton();
1644 } 1644 }
1645 1645
1646 bool HTMLInputElement::isImage() const 1646 bool HTMLInputElement::isImage() const
1647 { 1647 {
1648 return m_inputType->isImage(); 1648 return m_inputType->isImage();
1649 } 1649 }
1650 1650
1651 bool HTMLInputElement::isRadioButton() const
1652 {
1653 return m_inputType->isRadioButton();
1654 }
1655
1651 bool HTMLInputElement::isEnumeratable() const 1656 bool HTMLInputElement::isEnumeratable() const
1652 { 1657 {
1653 return m_inputType->isEnumeratable(); 1658 return m_inputType->isEnumeratable();
1654 } 1659 }
1655 1660
1656 bool HTMLInputElement::supportLabels() const 1661 bool HTMLInputElement::supportLabels() const
1657 { 1662 {
1658 return m_inputType->isInteractiveContent(); 1663 return m_inputType->isInteractiveContent();
1659 } 1664 }
1660 1665
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
1752 // FIXME: Remove type check. 1757 // FIXME: Remove type check.
1753 if (type() != InputTypeNames::radio) 1758 if (type() != InputTypeNames::radio)
1754 return nullptr; 1759 return nullptr;
1755 if (HTMLFormElement* formElement = form()) 1760 if (HTMLFormElement* formElement = form())
1756 return &formElement->radioButtonGroupScope(); 1761 return &formElement->radioButtonGroupScope();
1757 if (inDocument()) 1762 if (inDocument())
1758 return &document().formController().radioButtonGroupScope(); 1763 return &document().formController().radioButtonGroupScope();
1759 return nullptr; 1764 return nullptr;
1760 } 1765 }
1761 1766
1767 unsigned HTMLInputElement::sizeOfRadioGroup() const
1768 {
1769 RadioButtonGroupScope* scope = radioButtonGroupScope();
1770 if (!scope)
1771 return 0;
1772 return scope->sizeOfGroup(this);
1773 }
1774
1762 inline void HTMLInputElement::addToRadioButtonGroup() 1775 inline void HTMLInputElement::addToRadioButtonGroup()
1763 { 1776 {
1764 if (RadioButtonGroupScope* scope = radioButtonGroupScope()) 1777 if (RadioButtonGroupScope* scope = radioButtonGroupScope())
1765 scope->addButton(this); 1778 scope->addButton(this);
1766 } 1779 }
1767 1780
1768 inline void HTMLInputElement::removeFromRadioButtonGroup() 1781 inline void HTMLInputElement::removeFromRadioButtonGroup()
1769 { 1782 {
1770 if (RadioButtonGroupScope* scope = radioButtonGroupScope()) 1783 if (RadioButtonGroupScope* scope = radioButtonGroupScope())
1771 scope->removeButton(this); 1784 scope->removeButton(this);
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
1931 void HTMLInputElement::ensurePrimaryContent() 1944 void HTMLInputElement::ensurePrimaryContent()
1932 { 1945 {
1933 m_inputTypeView->ensurePrimaryContent(); 1946 m_inputTypeView->ensurePrimaryContent();
1934 } 1947 }
1935 1948
1936 bool HTMLInputElement::hasFallbackContent() const 1949 bool HTMLInputElement::hasFallbackContent() const
1937 { 1950 {
1938 return m_inputTypeView->hasFallbackContent(); 1951 return m_inputTypeView->hasFallbackContent();
1939 } 1952 }
1940 } // namespace blink 1953 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698