| Index: Source/modules/accessibility/AXLayoutObject.cpp
|
| diff --git a/Source/modules/accessibility/AXLayoutObject.cpp b/Source/modules/accessibility/AXLayoutObject.cpp
|
| index 04a1ced44250973f3cc69c4fcd0e4ebf42015e0c..b8e73ec7d5a6117307a07432d4070ccfeeab38e5 100644
|
| --- a/Source/modules/accessibility/AXLayoutObject.cpp
|
| +++ b/Source/modules/accessibility/AXLayoutObject.cpp
|
| @@ -375,6 +375,29 @@ static bool isLinkable(const AXObject& object)
|
| return object.isLink() || object.isImage() || object.layoutObject()->isText();
|
| }
|
|
|
| +bool AXLayoutObject::isRichlyEditable() const
|
| +{
|
| + ASSERT(node());
|
| + ASSERT(m_layoutObject);
|
| +
|
| + // Requires m_layoutObject to be present because it relies on style
|
| + // user-modify. Don't move this logic to AXNodeObject.
|
| + // TODO(nektar): Implement support in AXNodeObject for aria-hidden and canvas.
|
| + if (node()->isContentRichlyEditable())
|
| + return true;
|
| +
|
| + if (isWebArea()) {
|
| + Document& document = m_layoutObject->document();
|
| + HTMLElement* body = document.body();
|
| + if (body && body->isContentRichlyEditable())
|
| + return true;
|
| +
|
| + return document.isContentRichlyEditable();
|
| + }
|
| +
|
| + return false;
|
| +}
|
| +
|
| bool AXLayoutObject::isLinked() const
|
| {
|
| if (!isLinkable(*this))
|
|
|