| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008 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 19 matching lines...) Expand all Loading... |
| 30 #include "core/accessibility/AccessibilityImageMapLink.h" | 30 #include "core/accessibility/AccessibilityImageMapLink.h" |
| 31 | 31 |
| 32 #include "core/accessibility/AXObjectCache.h" | 32 #include "core/accessibility/AXObjectCache.h" |
| 33 #include "core/accessibility/AccessibilityRenderObject.h" | 33 #include "core/accessibility/AccessibilityRenderObject.h" |
| 34 | 34 |
| 35 namespace WebCore { | 35 namespace WebCore { |
| 36 | 36 |
| 37 using namespace HTMLNames; | 37 using namespace HTMLNames; |
| 38 | 38 |
| 39 AccessibilityImageMapLink::AccessibilityImageMapLink() | 39 AccessibilityImageMapLink::AccessibilityImageMapLink() |
| 40 : m_areaElement(0) | |
| 41 , m_mapElement(0) | |
| 42 { | 40 { |
| 43 } | 41 } |
| 44 | 42 |
| 45 AccessibilityImageMapLink::~AccessibilityImageMapLink() | 43 AccessibilityImageMapLink::~AccessibilityImageMapLink() |
| 46 { | 44 { |
| 47 } | 45 } |
| 48 | 46 |
| 49 PassRefPtr<AccessibilityImageMapLink> AccessibilityImageMapLink::create() | 47 PassRefPtr<AccessibilityImageMapLink> AccessibilityImageMapLink::create() |
| 50 { | 48 { |
| 51 return adoptRef(new AccessibilityImageMapLink()); | 49 return adoptRef(new AccessibilityImageMapLink()); |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 else | 140 else |
| 143 renderer = m_mapElement->renderer(); | 141 renderer = m_mapElement->renderer(); |
| 144 | 142 |
| 145 if (!renderer) | 143 if (!renderer) |
| 146 return LayoutRect(); | 144 return LayoutRect(); |
| 147 | 145 |
| 148 return m_areaElement->computeRect(renderer); | 146 return m_areaElement->computeRect(renderer); |
| 149 } | 147 } |
| 150 | 148 |
| 151 } // namespace WebCore | 149 } // namespace WebCore |
| OLD | NEW |