diff options
author | Simon Hausmann <simon.hausmann@nokia.com> | 2012-02-09 14:16:12 +0100 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@nokia.com> | 2012-02-09 14:16:12 +0100 |
commit | 03e12282df9aa1e1fb05a8b90f1cfc2e08764cec (patch) | |
tree | 52599cd0ab782b1768e23ad176f7618f98333cb6 /Source/WebCore/accessibility/AccessibilityRenderObject.cpp | |
parent | cd44dc59cdfc39534aef4d417e9f3c412e3be139 (diff) | |
download | qtwebkit-03e12282df9aa1e1fb05a8b90f1cfc2e08764cec.tar.gz |
Imported WebKit commit e09a82039aa4273ab318b71122e92d8e5f233525 (http://svn.webkit.org/repository/webkit/trunk@107223)
Diffstat (limited to 'Source/WebCore/accessibility/AccessibilityRenderObject.cpp')
-rw-r--r-- | Source/WebCore/accessibility/AccessibilityRenderObject.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Source/WebCore/accessibility/AccessibilityRenderObject.cpp b/Source/WebCore/accessibility/AccessibilityRenderObject.cpp index dc0d33b93..44ced9db9 100644 --- a/Source/WebCore/accessibility/AccessibilityRenderObject.cpp +++ b/Source/WebCore/accessibility/AccessibilityRenderObject.cpp @@ -709,7 +709,7 @@ bool AccessibilityRenderObject::isOffScreen() const ASSERT(m_renderer); LayoutRect contentRect = m_renderer->absoluteClippedOverflowRect(); FrameView* view = m_renderer->frame()->view(); - FloatRect viewRect = view->visibleContentRect(); + IntRect viewRect = view->visibleContentRect(); viewRect.intersect(contentRect); return viewRect.isEmpty(); } @@ -1499,7 +1499,7 @@ LayoutSize AccessibilityRenderObject::size() const return rect.size(); } -LayoutPoint AccessibilityRenderObject::clickPoint() +IntPoint AccessibilityRenderObject::clickPoint() { // Headings are usually much wider than their textual content. If the mid point is used, often it can be wrong. if (isHeading() && children().size() == 1) @@ -1511,11 +1511,11 @@ LayoutPoint AccessibilityRenderObject::clickPoint() VisibleSelection visSelection = selection(); VisiblePositionRange range = VisiblePositionRange(visSelection.visibleStart(), visSelection.visibleEnd()); - LayoutRect bounds = boundsForVisiblePositionRange(range); + IntRect bounds = boundsForVisiblePositionRange(range); #if PLATFORM(MAC) bounds.setLocation(m_renderer->document()->view()->screenToContents(bounds.location())); #endif - return LayoutPoint(bounds.x() + (bounds.width() / 2), bounds.y() - (bounds.height() / 2)); + return IntPoint(bounds.x() + (bounds.width() / 2), bounds.y() - (bounds.height() / 2)); } AccessibilityObject* AccessibilityRenderObject::internalLinkElement() const @@ -2594,10 +2594,10 @@ bool AccessibilityRenderObject::nodeIsTextControl(const Node* node) const return axObjectForNode->isTextControl(); } -LayoutRect AccessibilityRenderObject::boundsForVisiblePositionRange(const VisiblePositionRange& visiblePositionRange) const +IntRect AccessibilityRenderObject::boundsForVisiblePositionRange(const VisiblePositionRange& visiblePositionRange) const { if (visiblePositionRange.isNull()) - return LayoutRect(); + return IntRect(); // Create a mutable VisiblePositionRange. VisiblePositionRange range(visiblePositionRange); @@ -2811,14 +2811,14 @@ String AccessibilityRenderObject::doAXStringForRange(const PlainTextRange& range // The bounding rectangle of the text associated with this accessibility object that is // specified by the given range. This is the bounding rectangle a sighted user would see // on the display screen, in pixels. -LayoutRect AccessibilityRenderObject::doAXBoundsForRange(const PlainTextRange& range) const +IntRect AccessibilityRenderObject::doAXBoundsForRange(const PlainTextRange& range) const { if (allowsTextRanges()) return boundsForVisiblePositionRange(visiblePositionRangeForRange(range)); - return LayoutRect(); + return IntRect(); } -AccessibilityObject* AccessibilityRenderObject::accessibilityImageMapHitTest(HTMLAreaElement* area, const IntPoint& point) const +AccessibilityObject* AccessibilityRenderObject::accessibilityImageMapHitTest(HTMLAreaElement* area, const LayoutPoint& point) const { if (!area) return 0; |