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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 : m_document(document) | 92 : m_document(document) |
93 , m_modificationCount(0) | 93 , m_modificationCount(0) |
94 , m_notificationPostTimer(this, &AXObjectCacheImpl::notificationPostTimerFir
ed) | 94 , m_notificationPostTimer(this, &AXObjectCacheImpl::notificationPostTimerFir
ed) |
95 { | 95 { |
96 } | 96 } |
97 | 97 |
98 AXObjectCacheImpl::~AXObjectCacheImpl() | 98 AXObjectCacheImpl::~AXObjectCacheImpl() |
99 { | 99 { |
100 m_notificationPostTimer.stop(); | 100 m_notificationPostTimer.stop(); |
101 | 101 |
102 HashMap<AXID, RefPtr<AXObject> >::iterator end = m_objects.end(); | 102 HashMap<AXID, RefPtr<AXObject>>::iterator end = m_objects.end(); |
103 for (HashMap<AXID, RefPtr<AXObject> >::iterator it = m_objects.begin(); it !
= end; ++it) { | 103 for (HashMap<AXID, RefPtr<AXObject>>::iterator it = m_objects.begin(); it !=
end; ++it) { |
104 AXObject* obj = (*it).value.get(); | 104 AXObject* obj = (*it).value.get(); |
105 obj->detach(); | 105 obj->detach(); |
106 removeAXID(obj); | 106 removeAXID(obj); |
107 } | 107 } |
108 } | 108 } |
109 | 109 |
110 AXObject* AXObjectCacheImpl::root() | 110 AXObject* AXObjectCacheImpl::root() |
111 { | 111 { |
112 return getOrCreate(&m_document); | 112 return getOrCreate(&m_document); |
113 } | 113 } |
(...skipping 1007 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1121 void AXObjectCacheImpl::setCanvasObjectBounds(Element* element, const LayoutRect
& rect) | 1121 void AXObjectCacheImpl::setCanvasObjectBounds(Element* element, const LayoutRect
& rect) |
1122 { | 1122 { |
1123 AXObject* obj = getOrCreate(element); | 1123 AXObject* obj = getOrCreate(element); |
1124 if (!obj) | 1124 if (!obj) |
1125 return; | 1125 return; |
1126 | 1126 |
1127 obj->setElementRect(rect); | 1127 obj->setElementRect(rect); |
1128 } | 1128 } |
1129 | 1129 |
1130 } // namespace blink | 1130 } // namespace blink |
OLD | NEW |