| 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 #include "modules/accessibility/AXTableColumn.h" | 77 #include "modules/accessibility/AXTableColumn.h" |
| 78 #include "modules/accessibility/AXTableHeaderContainer.h" | 78 #include "modules/accessibility/AXTableHeaderContainer.h" |
| 79 #include "modules/accessibility/AXTableRow.h" | 79 #include "modules/accessibility/AXTableRow.h" |
| 80 #include "wtf/PassRefPtr.h" | 80 #include "wtf/PassRefPtr.h" |
| 81 | 81 |
| 82 namespace blink { | 82 namespace blink { |
| 83 | 83 |
| 84 using namespace HTMLNames; | 84 using namespace HTMLNames; |
| 85 | 85 |
| 86 // static | 86 // static |
| 87 AXObjectCache* AXObjectCacheImpl::create(Document& document) | 87 PassOwnPtr<AXObjectCache> AXObjectCacheImpl::create(Document& document) |
| 88 { | 88 { |
| 89 return new AXObjectCacheImpl(document); | 89 return adoptPtr(new AXObjectCacheImpl(document)); |
| 90 } | 90 } |
| 91 | 91 |
| 92 AXObjectCacheImpl::AXObjectCacheImpl(Document& document) | 92 AXObjectCacheImpl::AXObjectCacheImpl(Document& document) |
| 93 : m_document(document) | 93 : m_document(document) |
| 94 , m_modificationCount(0) | 94 , m_modificationCount(0) |
| 95 , m_notificationPostTimer(this, &AXObjectCacheImpl::notificationPostTimerFir
ed) | 95 , m_notificationPostTimer(this, &AXObjectCacheImpl::notificationPostTimerFir
ed) |
| 96 { | 96 { |
| 97 } | 97 } |
| 98 | 98 |
| 99 AXObjectCacheImpl::~AXObjectCacheImpl() | 99 AXObjectCacheImpl::~AXObjectCacheImpl() |
| (...skipping 1247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1347 void AXObjectCacheImpl::setCanvasObjectBounds(Element* element, const LayoutRect
& rect) | 1347 void AXObjectCacheImpl::setCanvasObjectBounds(Element* element, const LayoutRect
& rect) |
| 1348 { | 1348 { |
| 1349 AXObject* obj = getOrCreate(element); | 1349 AXObject* obj = getOrCreate(element); |
| 1350 if (!obj) | 1350 if (!obj) |
| 1351 return; | 1351 return; |
| 1352 | 1352 |
| 1353 obj->setElementRect(rect); | 1353 obj->setElementRect(rect); |
| 1354 } | 1354 } |
| 1355 | 1355 |
| 1356 } // namespace blink | 1356 } // namespace blink |
| OLD | NEW |