| 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 fc4425ffdfbd3e0b92986e61c7e5d703af69c9c9..b588647c1921de4f8de743966d71162e29228f48 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)
|
| @@ -1749,6 +1750,23 @@ RadioButtonGroupScope* HTMLInputElement::radioButtonGroupScope() const
|
| return nullptr;
|
| }
|
|
|
| +unsigned HTMLInputElement::positionInRadioGroup()
|
| +{
|
| + RadioButtonGroupScope* scope = radioButtonGroupScope();
|
| + if (!scope)
|
| + return 0;
|
| + scope->updateGroupPosition(this);
|
| + return m_positonInRadio;
|
| +}
|
| +
|
| +unsigned HTMLInputElement::sizeOfRadioGroup()
|
| +{
|
| + RadioButtonGroupScope* scope = radioButtonGroupScope();
|
| + if (!scope)
|
| + return 0;
|
| + return scope->sizeOfGroup(this);
|
| +}
|
| +
|
| inline void HTMLInputElement::addToRadioButtonGroup()
|
| {
|
| if (RadioButtonGroupScope* scope = radioButtonGroupScope())
|
|
|