Chromium Code Reviews| 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()) |