From 2fc2651226baac27029e38c9d6ef883fa32084db Mon Sep 17 00:00:00 2001 From: Steve Block Date: Wed, 18 May 2011 13:36:51 +0100 Subject: Merge WebKit at r78450: Initial merge by git. Change-Id: I6d3e5f1f868ec266a0aafdef66182ddc3f265dc1 --- Source/WebCore/accessibility/AccessibilityRenderObject.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Source/WebCore/accessibility/AccessibilityRenderObject.cpp') diff --git a/Source/WebCore/accessibility/AccessibilityRenderObject.cpp b/Source/WebCore/accessibility/AccessibilityRenderObject.cpp index ca8d4a7..70ed839 100644 --- a/Source/WebCore/accessibility/AccessibilityRenderObject.cpp +++ b/Source/WebCore/accessibility/AccessibilityRenderObject.cpp @@ -32,7 +32,6 @@ #include "AXObjectCache.h" #include "AccessibilityImageMapLink.h" #include "AccessibilityListBox.h" -#include "CharacterNames.h" #include "EventNames.h" #include "FloatRect.h" #include "Frame.h" @@ -77,6 +76,7 @@ #include "htmlediting.h" #include "visible_units.h" #include +#include using namespace std; @@ -1169,7 +1169,7 @@ static String accessibleNameForNode(Node* node) return static_cast(node)->value(); if (node->isHTMLElement()) { - const AtomicString& alt = static_cast(node)->getAttribute(altAttr); + const AtomicString& alt = toHTMLElement(node)->getAttribute(altAttr); if (!alt.isEmpty()) return alt; } @@ -1357,7 +1357,7 @@ String AccessibilityRenderObject::accessibilityDescription() const if (isImage() || isInputImage() || isNativeImage()) { Node* node = m_renderer->node(); if (node && node->isHTMLElement()) { - const AtomicString& alt = static_cast(node)->getAttribute(altAttr); + const AtomicString& alt = toHTMLElement(node)->getAttribute(altAttr); if (alt.isEmpty()) return String(); return alt; @@ -1384,11 +1384,11 @@ String AccessibilityRenderObject::accessibilityDescription() const return static_cast(owner)->getAttribute(nameAttr); } if (owner->isHTMLElement()) - return static_cast(owner)->getAttribute(nameAttr); + return toHTMLElement(owner)->getAttribute(nameAttr); } owner = document->body(); if (owner && owner->isHTMLElement()) - return static_cast(owner)->getAttribute(nameAttr); + return toHTMLElement(owner)->getAttribute(nameAttr); } return String(); @@ -2519,7 +2519,7 @@ IntRect AccessibilityRenderObject::boundsForVisiblePositionRange(const VisiblePo ourrect.unite(rect2); // if the rectangle spans lines and contains multiple text chars, use the range's bounding box intead - if (rect1.bottom() != rect2.bottom()) { + if (rect1.maxY() != rect2.maxY()) { RefPtr dataRange = makeRange(range.start, range.end); IntRect boundingBox = dataRange->boundingBox(); String rangeString = plainText(dataRange.get()); -- cgit v1.1