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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 #include "modules/accessibility/AXTableColumn.h" | 78 #include "modules/accessibility/AXTableColumn.h" |
79 #include "modules/accessibility/AXTableHeaderContainer.h" | 79 #include "modules/accessibility/AXTableHeaderContainer.h" |
80 #include "modules/accessibility/AXTableRow.h" | 80 #include "modules/accessibility/AXTableRow.h" |
81 #include "wtf/PassRefPtr.h" | 81 #include "wtf/PassRefPtr.h" |
82 | 82 |
83 namespace blink { | 83 namespace blink { |
84 | 84 |
85 using namespace HTMLNames; | 85 using namespace HTMLNames; |
86 | 86 |
87 // static | 87 // static |
88 AXObjectCache* AXObjectCacheImpl::create(Document& document) | 88 PassOwnPtr<AXObjectCache> AXObjectCacheImpl::create(Document& document) |
89 { | 89 { |
90 return new AXObjectCacheImpl(document); | 90 return adoptPtr(new AXObjectCacheImpl(document)); |
91 } | 91 } |
92 | 92 |
93 AXObjectCacheImpl::AXObjectCacheImpl(Document& document) | 93 AXObjectCacheImpl::AXObjectCacheImpl(Document& document) |
94 : m_document(document) | 94 : m_document(document) |
95 , m_modificationCount(0) | 95 , m_modificationCount(0) |
96 , m_notificationPostTimer(this, &AXObjectCacheImpl::notificationPostTimerFir
ed) | 96 , m_notificationPostTimer(this, &AXObjectCacheImpl::notificationPostTimerFir
ed) |
97 { | 97 { |
98 } | 98 } |
99 | 99 |
100 AXObjectCacheImpl::~AXObjectCacheImpl() | 100 AXObjectCacheImpl::~AXObjectCacheImpl() |
(...skipping 1048 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1149 void AXObjectCacheImpl::setCanvasObjectBounds(Element* element, const LayoutRect
& rect) | 1149 void AXObjectCacheImpl::setCanvasObjectBounds(Element* element, const LayoutRect
& rect) |
1150 { | 1150 { |
1151 AXObject* obj = getOrCreate(element); | 1151 AXObject* obj = getOrCreate(element); |
1152 if (!obj) | 1152 if (!obj) |
1153 return; | 1153 return; |
1154 | 1154 |
1155 obj->setElementRect(rect); | 1155 obj->setElementRect(rect); |
1156 } | 1156 } |
1157 | 1157 |
1158 } // namespace blink | 1158 } // namespace blink |
OLD | NEW |