| 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 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 // the AXObject, with the exception of an HTMLAreaElement, which is created | 352 // the AXObject, with the exception of an HTMLAreaElement, which is created |
| 353 // based on its node. | 353 // based on its node. |
| 354 if (node->layoutObject() && !isHTMLAreaElement(node)) | 354 if (node->layoutObject() && !isHTMLAreaElement(node)) |
| 355 return getOrCreate(node->layoutObject()); | 355 return getOrCreate(node->layoutObject()); |
| 356 | 356 |
| 357 if (!node->parentElement()) | 357 if (!node->parentElement()) |
| 358 return 0; | 358 return 0; |
| 359 | 359 |
| 360 if (isHTMLHeadElement(node)) | 360 if (isHTMLHeadElement(node)) |
| 361 return 0; | 361 return 0; |
| 362 | |
| 363 AXObject* newObj = createFromNode(node); | 362 AXObject* newObj = createFromNode(node); |
| 364 | 363 |
| 365 // Will crash later if we have two objects for the same node. | 364 // Will crash later if we have two objects for the same node. |
| 366 ASSERT(!get(node)); | 365 ASSERT(!get(node)); |
| 367 | 366 |
| 368 getAXID(newObj); | 367 getAXID(newObj); |
| 369 | 368 |
| 370 m_nodeObjectMapping.set(node, newObj->axObjectID()); | 369 m_nodeObjectMapping.set(node, newObj->axObjectID()); |
| 371 m_objects.set(newObj->axObjectID(), newObj); | 370 m_objects.set(newObj->axObjectID(), newObj); |
| 372 newObj->init(); | 371 newObj->init(); |
| (...skipping 880 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1253 visitor->trace(m_document); | 1252 visitor->trace(m_document); |
| 1254 visitor->trace(m_nodeObjectMapping); | 1253 visitor->trace(m_nodeObjectMapping); |
| 1255 | 1254 |
| 1256 visitor->trace(m_objects); | 1255 visitor->trace(m_objects); |
| 1257 visitor->trace(m_notificationsToPost); | 1256 visitor->trace(m_notificationsToPost); |
| 1258 | 1257 |
| 1259 AXObjectCache::trace(visitor); | 1258 AXObjectCache::trace(visitor); |
| 1260 } | 1259 } |
| 1261 | 1260 |
| 1262 } // namespace blink | 1261 } // namespace blink |
| OLD | NEW |