| 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 1659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1670 void AccessibilityRenderObject::scrollTo(const IntPoint& point) const | 1670 void AccessibilityRenderObject::scrollTo(const IntPoint& point) const |
| 1671 { | 1671 { |
| 1672 if (!m_renderer || !m_renderer->isBox()) | 1672 if (!m_renderer || !m_renderer->isBox()) |
| 1673 return; | 1673 return; |
| 1674 | 1674 |
| 1675 RenderBox* box = toRenderBox(m_renderer); | 1675 RenderBox* box = toRenderBox(m_renderer); |
| 1676 if (!box->canBeScrolledAndHasScrollableArea()) | 1676 if (!box->canBeScrolledAndHasScrollableArea()) |
| 1677 return; | 1677 return; |
| 1678 | 1678 |
| 1679 RenderLayer* layer = box->layer(); | 1679 RenderLayer* layer = box->layer(); |
| 1680 layer->scrollToOffset(toIntSize(point), RenderLayer::ScrollOffsetClamped); | 1680 layer->scrollToOffset(toIntSize(point), ScrollOffsetClamped); |
| 1681 } | 1681 } |
| 1682 | 1682 |
| 1683 // | 1683 // |
| 1684 // Notifications that this object may have changed. | 1684 // Notifications that this object may have changed. |
| 1685 // | 1685 // |
| 1686 | 1686 |
| 1687 void AccessibilityRenderObject::handleActiveDescendantChanged() | 1687 void AccessibilityRenderObject::handleActiveDescendantChanged() |
| 1688 { | 1688 { |
| 1689 Element* element = toElement(renderer()->node()); | 1689 Element* element = toElement(renderer()->node()); |
| 1690 if (!element) | 1690 if (!element) |
| (...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2374 if (label && label->renderer()) { | 2374 if (label && label->renderer()) { |
| 2375 LayoutRect labelRect = axObjectCache()->getOrCreate(label)->elementR
ect(); | 2375 LayoutRect labelRect = axObjectCache()->getOrCreate(label)->elementR
ect(); |
| 2376 result.unite(labelRect); | 2376 result.unite(labelRect); |
| 2377 } | 2377 } |
| 2378 } | 2378 } |
| 2379 | 2379 |
| 2380 return result; | 2380 return result; |
| 2381 } | 2381 } |
| 2382 | 2382 |
| 2383 } // namespace WebCore | 2383 } // namespace WebCore |
| OLD | NEW |