Chromium Code Reviews| Index: Source/modules/accessibility/AXObject.cpp |
| diff --git a/Source/modules/accessibility/AXObject.cpp b/Source/modules/accessibility/AXObject.cpp |
| index fe05ee518c85299802d3391f787731cb03284a7b..0208626b022e6c090e6038cf776ff2a9861d46dc 100644 |
| --- a/Source/modules/accessibility/AXObject.cpp |
| +++ b/Source/modules/accessibility/AXObject.cpp |
| @@ -747,6 +747,18 @@ bool AXObject::isMultiline() const |
| return equalIgnoringCase(getAttribute(aria_multilineAttr), "true"); |
| } |
| +bool AXObject::hasRichText() const |
| +{ |
| + Node* node = this->node(); |
| + if (!node) |
| + return false; |
| + |
| + if (node->hasEditableStyle()) |
|
dmazzoni
2015/05/28 05:55:56
This will return true for everything in the conten
|
| + return true; |
| + |
| + return false; |
| +} |
| + |
| bool AXObject::ariaPressedIsPresent() const |
| { |
| return !getAttribute(aria_pressedAttr).isEmpty(); |