| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights
reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights
reserved. |
| 3 * | 3 * |
| 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. | 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. |
| 5 * | 5 * |
| 6 * Other contributors: | 6 * Other contributors: |
| 7 * Robert O'Callahan <roc+@cs.cmu.edu> | 7 * Robert O'Callahan <roc+@cs.cmu.edu> |
| 8 * David Baron <dbaron@fas.harvard.edu> | 8 * David Baron <dbaron@fas.harvard.edu> |
| 9 * Christian Biesinger <cbiesinger@web.de> | 9 * Christian Biesinger <cbiesinger@web.de> |
| 10 * Randall Jesup <rjesup@wgate.com> | 10 * Randall Jesup <rjesup@wgate.com> |
| (...skipping 875 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 886 return IntSize(horizontalScrollbarStart(0), box().size().height() - box(
).borderBottom() - scrollbar->height()); | 886 return IntSize(horizontalScrollbarStart(0), box().size().height() - box(
).borderBottom() - scrollbar->height()); |
| 887 | 887 |
| 888 ASSERT_NOT_REACHED(); | 888 ASSERT_NOT_REACHED(); |
| 889 return IntSize(); | 889 return IntSize(); |
| 890 } | 890 } |
| 891 | 891 |
| 892 static inline LayoutObject* rendererForScrollbar(LayoutObject& renderer) | 892 static inline LayoutObject* rendererForScrollbar(LayoutObject& renderer) |
| 893 { | 893 { |
| 894 if (Node* node = renderer.node()) { | 894 if (Node* node = renderer.node()) { |
| 895 if (ShadowRoot* shadowRoot = node->containingShadowRoot()) { | 895 if (ShadowRoot* shadowRoot = node->containingShadowRoot()) { |
| 896 if (shadowRoot->type() == ShadowRoot::UserAgentShadowRoot) | 896 if (shadowRoot->type() == ShadowRoot::ClosedShadowRoot) |
| 897 return shadowRoot->host()->renderer(); | 897 return shadowRoot->host()->renderer(); |
| 898 } | 898 } |
| 899 } | 899 } |
| 900 | 900 |
| 901 return &renderer; | 901 return &renderer; |
| 902 } | 902 } |
| 903 | 903 |
| 904 PassRefPtrWillBeRawPtr<Scrollbar> LayerScrollableArea::createScrollbar(Scrollbar
Orientation orientation) | 904 PassRefPtrWillBeRawPtr<Scrollbar> LayerScrollableArea::createScrollbar(Scrollbar
Orientation orientation) |
| 905 { | 905 { |
| 906 RefPtrWillBeRawPtr<Scrollbar> widget = nullptr; | 906 RefPtrWillBeRawPtr<Scrollbar> widget = nullptr; |
| (...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1375 void LayerScrollableArea::setTopmostScrollChild(Layer* scrollChild) | 1375 void LayerScrollableArea::setTopmostScrollChild(Layer* scrollChild) |
| 1376 { | 1376 { |
| 1377 // We only want to track the topmost scroll child for scrollable areas with | 1377 // We only want to track the topmost scroll child for scrollable areas with |
| 1378 // overlay scrollbars. | 1378 // overlay scrollbars. |
| 1379 if (!hasOverlayScrollbars()) | 1379 if (!hasOverlayScrollbars()) |
| 1380 return; | 1380 return; |
| 1381 m_nextTopmostScrollChild = scrollChild; | 1381 m_nextTopmostScrollChild = scrollChild; |
| 1382 } | 1382 } |
| 1383 | 1383 |
| 1384 } // namespace blink | 1384 } // namespace blink |
| OLD | NEW |