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

Unified Diff: third_party/WebKit/Source/modules/accessibility/AXRadioInput.cpp

Issue 2805493002: Boolean properties for Accessibility Object Model Phase 1 (Closed)
Patch Set: Address feedback Created 3 years, 8 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/modules/accessibility/AXRadioInput.cpp
diff --git a/third_party/WebKit/Source/modules/accessibility/AXRadioInput.cpp b/third_party/WebKit/Source/modules/accessibility/AXRadioInput.cpp
index bdf674aec4958daa8e4d22dc1439592f8f786341..4f15905977ff421607e802e0e382b6fe67437683 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXRadioInput.cpp
+++ b/third_party/WebKit/Source/modules/accessibility/AXRadioInput.cpp
@@ -38,7 +38,7 @@ void AXRadioInput::UpdatePosAndSetSize(int position) {
void AXRadioInput::RequestUpdateToNextNode(bool forward) {
HTMLInputElement* next_element =
- RadioInputType::NextRadioButtonInGroup(GetElement(), forward);
+ RadioInputType::NextRadioButtonInGroup(GetInputElement(), forward);
AXObject* next_a_xobject = AxObjectCache().Get(next_element);
if (!next_a_xobject || !next_a_xobject->IsAXRadioInput())
return;
@@ -83,7 +83,7 @@ bool AXRadioInput::CalculatePosInSet() {
bool need_to_update_prev = false;
int position = 1;
HTMLInputElement* prev_element =
- RadioInputType::NextRadioButtonInGroup(GetElement(), false);
+ RadioInputType::NextRadioButtonInGroup(GetInputElement(), false);
if (prev_element) {
AXObject* object = AxObjectCache().Get(prev_element);
// If the previous element doesn't have AXObject yet, caculate position from
@@ -110,7 +110,7 @@ bool AXRadioInput::CalculatePosInSet() {
int AXRadioInput::CountFromFirstElement() const {
int count = 1;
- HTMLInputElement* current = GetElement();
+ HTMLInputElement* current = GetInputElement();
while (HTMLInputElement* prev_element =
RadioInputType::NextRadioButtonInGroup(current, false)) {
current = prev_element;
@@ -119,12 +119,12 @@ int AXRadioInput::CountFromFirstElement() const {
return count;
}
-HTMLInputElement* AXRadioInput::GetElement() const {
+HTMLInputElement* AXRadioInput::GetInputElement() const {
return toHTMLInputElement(layout_object_->GetNode());
}
int AXRadioInput::SizeOfRadioGroup() const {
- int size = GetElement()->SizeOfRadioGroup();
+ int size = GetInputElement()->SizeOfRadioGroup();
// If it has no size in Group, it means that there is only itself.
if (!size)
return 1;

Powered by Google App Engine
This is Rietveld 408576698