summaryrefslogtreecommitdiff
path: root/Source/WebCore/accessibility/AccessibilityImageMapLink.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/accessibility/AccessibilityImageMapLink.cpp')
-rw-r--r--Source/WebCore/accessibility/AccessibilityImageMapLink.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/Source/WebCore/accessibility/AccessibilityImageMapLink.cpp b/Source/WebCore/accessibility/AccessibilityImageMapLink.cpp
index 5f3f2fab0..96bc1392b 100644
--- a/Source/WebCore/accessibility/AccessibilityImageMapLink.cpp
+++ b/Source/WebCore/accessibility/AccessibilityImageMapLink.cpp
@@ -10,7 +10,7 @@
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
- * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of
+ * 3. Neither the name of Apple Inc. ("Apple") nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
@@ -40,8 +40,8 @@ namespace WebCore {
using namespace HTMLNames;
AccessibilityImageMapLink::AccessibilityImageMapLink()
- : m_areaElement(0)
- , m_mapElement(0)
+ : m_areaElement(nullptr)
+ , m_mapElement(nullptr)
{
}
@@ -49,9 +49,9 @@ AccessibilityImageMapLink::~AccessibilityImageMapLink()
{
}
-PassRefPtr<AccessibilityImageMapLink> AccessibilityImageMapLink::create()
+Ref<AccessibilityImageMapLink> AccessibilityImageMapLink::create()
{
- return adoptRef(new AccessibilityImageMapLink());
+ return adoptRef(*new AccessibilityImageMapLink());
}
AccessibilityObject* AccessibilityImageMapLink::parentObject() const
@@ -60,7 +60,7 @@ AccessibilityObject* AccessibilityImageMapLink::parentObject() const
return m_parent;
if (!m_mapElement.get() || !m_mapElement->renderer())
- return 0;
+ return nullptr;
return m_mapElement->document().axObjectCache()->getOrCreate(m_mapElement->renderer());
}
@@ -140,8 +140,8 @@ RenderElement* AccessibilityImageMapLink::imageMapLinkRenderer() const
return nullptr;
RenderElement* renderer = nullptr;
- if (m_parent && m_parent->isAccessibilityRenderObject())
- renderer = toRenderElement(toAccessibilityRenderObject(m_parent)->renderer());
+ if (is<AccessibilityRenderObject>(m_parent))
+ renderer = downcast<RenderElement>(downcast<AccessibilityRenderObject>(*m_parent).renderer());
else
renderer = m_mapElement->renderer();