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

Unified 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: addressed review comments Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/html/HTMLInputElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLInputElement.cpp b/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
index b516a88512ac7f75842d34bffa22692d14b3cb04..d2c2d94a4a5c98fe805d43c6d3b8cc762558e4ad 100644
--- a/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
@@ -104,6 +104,7 @@ HTMLInputElement::HTMLInputElement(Document& document, HTMLFormElement* form, bo
, m_size(defaultSize)
, m_maxLength(maximumLength)
, m_minLength(0)
+ , m_positonInRadio(0)
, m_maxResults(-1)
, m_isChecked(false)
, m_reflectsCheckedAttribute(true)
@@ -1759,6 +1760,31 @@ RadioButtonGroupScope* HTMLInputElement::radioButtonGroupScope() const
return nullptr;
}
+void HTMLInputElement::needUpdatePositionOfRadioGroup() const
+{
+ RadioButtonGroupScope* scope = radioButtonGroupScope();
+ if (!scope)
+ return;
+ scope->needUpdatePositionGroup(this);
keishi 2016/02/16 02:22:46 Only update if accessibilty is enabled?
je_julie(Not used) 2016/02/16 05:19:03 So far, there is no module which needs radio butto
+}
+
+unsigned HTMLInputElement::positionInRadioGroup() const
+{
+ RadioButtonGroupScope* scope = radioButtonGroupScope();
+ if (!scope)
+ return 0;
+ scope->updateGroupPosition(this);
+ return m_positonInRadio;
+}
+
+unsigned HTMLInputElement::sizeOfRadioGroup() const
+{
+ RadioButtonGroupScope* scope = radioButtonGroupScope();
+ if (!scope)
+ return 0;
+ return scope->sizeOfGroup(this);
+}
+
inline void HTMLInputElement::addToRadioButtonGroup()
{
if (RadioButtonGroupScope* scope = radioButtonGroupScope())

Powered by Google App Engine
This is Rietveld 408576698