| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2014, Google Inc. All rights reserved. | 2 * Copyright (C) 2014, Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 1057 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1068 bool AXObjectCacheImpl::inlineTextBoxAccessibilityEnabled() | 1068 bool AXObjectCacheImpl::inlineTextBoxAccessibilityEnabled() |
| 1069 { | 1069 { |
| 1070 Settings* settings = this->settings(); | 1070 Settings* settings = this->settings(); |
| 1071 if (!settings) | 1071 if (!settings) |
| 1072 return false; | 1072 return false; |
| 1073 return settings->inlineTextBoxAccessibilityEnabled(); | 1073 return settings->inlineTextBoxAccessibilityEnabled(); |
| 1074 } | 1074 } |
| 1075 | 1075 |
| 1076 const Element* AXObjectCacheImpl::rootAXEditableElement(const Node* node) | 1076 const Element* AXObjectCacheImpl::rootAXEditableElement(const Node* node) |
| 1077 { | 1077 { |
| 1078 const Element* result = node->rootEditableElement(); | 1078 const Element* result = rootEditableElement(*node); |
| 1079 const Element* element = node->isElementNode() ? toElement(node) : node->par
entElement(); | 1079 const Element* element = node->isElementNode() ? toElement(node) : node->par
entElement(); |
| 1080 | 1080 |
| 1081 for (; element; element = element->parentElement()) { | 1081 for (; element; element = element->parentElement()) { |
| 1082 if (nodeIsTextControl(element)) | 1082 if (nodeIsTextControl(element)) |
| 1083 result = element; | 1083 result = element; |
| 1084 } | 1084 } |
| 1085 | 1085 |
| 1086 return result; | 1086 return result; |
| 1087 } | 1087 } |
| 1088 | 1088 |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1278 visitor->trace(m_document); | 1278 visitor->trace(m_document); |
| 1279 visitor->trace(m_nodeObjectMapping); | 1279 visitor->trace(m_nodeObjectMapping); |
| 1280 | 1280 |
| 1281 visitor->trace(m_objects); | 1281 visitor->trace(m_objects); |
| 1282 visitor->trace(m_notificationsToPost); | 1282 visitor->trace(m_notificationsToPost); |
| 1283 | 1283 |
| 1284 AXObjectCache::trace(visitor); | 1284 AXObjectCache::trace(visitor); |
| 1285 } | 1285 } |
| 1286 | 1286 |
| 1287 } // namespace blink | 1287 } // namespace blink |
| OLD | NEW |