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

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

Issue 2805493002: Boolean properties for Accessibility Object Model Phase 1 (Closed)
Patch Set: Back to previous patchset, ready to land Created 3 years, 7 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/AXProgressIndicator.cpp
diff --git a/third_party/WebKit/Source/modules/accessibility/AXProgressIndicator.cpp b/third_party/WebKit/Source/modules/accessibility/AXProgressIndicator.cpp
index 09355008d8582e288b03ee2325200ecef1bde80a..6182bae019b39658af393b9fce5a7ea862dc21be 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXProgressIndicator.cpp
+++ b/third_party/WebKit/Source/modules/accessibility/AXProgressIndicator.cpp
@@ -54,8 +54,8 @@ float AXProgressIndicator::ValueForRange() const {
if (HasAttribute(aria_valuenowAttr))
return GetAttribute(aria_valuenowAttr).ToFloat();
- if (GetElement()->position() >= 0)
- return clampTo<float>(GetElement()->value());
+ if (GetProgressElement()->position() >= 0)
+ return clampTo<float>(GetProgressElement()->value());
// Indeterminate progress bar should return 0.
return 0.0f;
}
@@ -64,7 +64,7 @@ float AXProgressIndicator::MaxValueForRange() const {
if (HasAttribute(aria_valuemaxAttr))
return GetAttribute(aria_valuemaxAttr).ToFloat();
- return clampTo<float>(GetElement()->max());
+ return clampTo<float>(GetProgressElement()->max());
}
float AXProgressIndicator::MinValueForRange() const {
@@ -74,7 +74,7 @@ float AXProgressIndicator::MinValueForRange() const {
return 0.0f;
}
-HTMLProgressElement* AXProgressIndicator::GetElement() const {
+HTMLProgressElement* AXProgressIndicator::GetProgressElement() const {
return ToLayoutProgress(layout_object_)->ProgressElement();
}

Powered by Google App Engine
This is Rietveld 408576698