Index: Source/modules/accessibility/AXNodeObject.cpp |
diff --git a/Source/modules/accessibility/AXNodeObject.cpp b/Source/modules/accessibility/AXNodeObject.cpp |
index f6689a92551d1a18b4c3d1e4a16546ddde6f825e..1c830f732d22448551f751572f50e0759f8f7d7c 100644 |
--- a/Source/modules/accessibility/AXNodeObject.cpp |
+++ b/Source/modules/accessibility/AXNodeObject.cpp |
@@ -520,9 +520,8 @@ |
} |
} |
-// This only returns true if this is the element that actually has the |
-// contentEditable attribute set, unlike node->hasEditableStyle() which will |
-// also return true if an ancestor is editable. |
+// If you call node->hasEditableStyle() since that will return true if an ancestor is editable. |
+// This only returns true if this is the element that actually has the contentEditable attribute set. |
bool AXNodeObject::hasContentEditableAttributeSet() const |
{ |
if (!hasAttribute(contenteditableAttr)) |
@@ -530,21 +529,6 @@ |
const AtomicString& contentEditableValue = getAttribute(contenteditableAttr); |
// Both "true" (case-insensitive) and the empty string count as true. |
return contentEditableValue.isEmpty() || equalIgnoringCase(contentEditableValue, "true"); |
-} |
- |
-bool AXNodeObject::isTextControl() const |
-{ |
- if (hasContentEditableAttributeSet()) |
- return true; |
- |
- switch (roleValue()) { |
- case TextFieldRole: |
- case ComboBoxRole: |
- case SearchBoxRole: |
- return true; |
- default: |
- return false; |
- } |
} |
bool AXNodeObject::isGenericFocusableElement() const |