Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(64)

Side by Side Diff: Source/core/accessibility/AccessibilityRenderObject.cpp

Issue 22893055: Split computeScrollDimensions() out of RenderLayer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated after Ian's comment. Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/html/TextFieldInputType.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | Source/core/html/TextFieldInputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698