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

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: removed isRadiobutton() 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 1741 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698