| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008, 2009, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008, 2009, 2010 Apple 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 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 697 | 697 |
| 698 unsigned i = 0, count = m_notificationsToPost.size(); | 698 unsigned i = 0, count = m_notificationsToPost.size(); |
| 699 for (i = 0; i < count; ++i) { | 699 for (i = 0; i < count; ++i) { |
| 700 AXObject* obj = m_notificationsToPost[i].first.get(); | 700 AXObject* obj = m_notificationsToPost[i].first.get(); |
| 701 if (!obj->axObjectID()) | 701 if (!obj->axObjectID()) |
| 702 continue; | 702 continue; |
| 703 | 703 |
| 704 if (!obj->axObjectCache()) | 704 if (!obj->axObjectCache()) |
| 705 continue; | 705 continue; |
| 706 | 706 |
| 707 #ifndef NDEBUG | 707 #if ENABLE(ASSERT) |
| 708 // Make sure none of the render views are in the process of being layed
out. | 708 // Make sure none of the render views are in the process of being layed
out. |
| 709 // Notifications should only be sent after the renderer has finished | 709 // Notifications should only be sent after the renderer has finished |
| 710 if (obj->isAXRenderObject()) { | 710 if (obj->isAXRenderObject()) { |
| 711 AXRenderObject* renderObj = toAXRenderObject(obj); | 711 AXRenderObject* renderObj = toAXRenderObject(obj); |
| 712 RenderObject* renderer = renderObj->renderer(); | 712 RenderObject* renderer = renderObj->renderer(); |
| 713 if (renderer && renderer->view()) | 713 if (renderer && renderer->view()) |
| 714 ASSERT(!renderer->view()->layoutState()); | 714 ASSERT(!renderer->view()->layoutState()); |
| 715 } | 715 } |
| 716 #endif | 716 #endif |
| 717 | 717 |
| (...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1021 void AXObjectCache::setCanvasObjectBounds(Element* element, const LayoutRect& re
ct) | 1021 void AXObjectCache::setCanvasObjectBounds(Element* element, const LayoutRect& re
ct) |
| 1022 { | 1022 { |
| 1023 AXObject* obj = getOrCreate(element); | 1023 AXObject* obj = getOrCreate(element); |
| 1024 if (!obj) | 1024 if (!obj) |
| 1025 return; | 1025 return; |
| 1026 | 1026 |
| 1027 obj->setElementRect(rect); | 1027 obj->setElementRect(rect); |
| 1028 } | 1028 } |
| 1029 | 1029 |
| 1030 } // namespace WebCore | 1030 } // namespace WebCore |
| OLD | NEW |