| 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 23 matching lines...) Expand all Loading... |
| 34 * applicable instead of those above. If you wish to allow use of your | 34 * applicable instead of those above. If you wish to allow use of your |
| 35 * version of this file only under the terms of one of those two | 35 * version of this file only under the terms of one of those two |
| 36 * licenses (the MPL or the GPL) and not to allow others to use your | 36 * licenses (the MPL or the GPL) and not to allow others to use your |
| 37 * version of this file under the LGPL, indicate your decision by | 37 * version of this file under the LGPL, indicate your decision by |
| 38 * deletingthe provisions above and replace them with the notice and | 38 * deletingthe provisions above and replace them with the notice and |
| 39 * other provisions required by the MPL or the GPL, as the case may be. | 39 * other provisions required by the MPL or the GPL, as the case may be. |
| 40 * If you do not delete the provisions above, a recipient may use your | 40 * If you do not delete the provisions above, a recipient may use your |
| 41 * version of this file under any of the LGPL, the MPL or the GPL. | 41 * version of this file under any of the LGPL, the MPL or the GPL. |
| 42 */ | 42 */ |
| 43 | 43 |
| 44 #include "config.h" | 44 #include "sky/engine/config.h" |
| 45 #include "core/rendering/RenderLayer.h" | 45 #include "sky/engine/core/rendering/RenderLayer.h" |
| 46 | 46 |
| 47 #include "core/dom/Node.h" | 47 #include "sky/engine/core/dom/Node.h" |
| 48 #include "core/dom/shadow/ShadowRoot.h" | 48 #include "sky/engine/core/dom/shadow/ShadowRoot.h" |
| 49 #include "core/editing/FrameSelection.h" | 49 #include "sky/engine/core/editing/FrameSelection.h" |
| 50 #include "core/frame/FrameView.h" | 50 #include "sky/engine/core/frame/FrameView.h" |
| 51 #include "core/frame/LocalFrame.h" | 51 #include "sky/engine/core/frame/LocalFrame.h" |
| 52 #include "core/inspector/InspectorTraceEvents.h" | 52 #include "sky/engine/core/inspector/InspectorTraceEvents.h" |
| 53 #include "core/page/Chrome.h" | 53 #include "sky/engine/core/page/Chrome.h" |
| 54 #include "core/page/EventHandler.h" | 54 #include "sky/engine/core/page/EventHandler.h" |
| 55 #include "core/page/FocusController.h" | 55 #include "sky/engine/core/page/FocusController.h" |
| 56 #include "core/page/Page.h" | 56 #include "sky/engine/core/page/Page.h" |
| 57 #include "core/rendering/HitTestResult.h" | 57 #include "sky/engine/core/rendering/HitTestResult.h" |
| 58 #include "core/rendering/RenderGeometryMap.h" | 58 #include "sky/engine/core/rendering/RenderGeometryMap.h" |
| 59 #include "core/rendering/RenderView.h" | 59 #include "sky/engine/core/rendering/RenderView.h" |
| 60 #include "core/rendering/compositing/CompositedLayerMapping.h" | 60 #include "sky/engine/core/rendering/compositing/CompositedLayerMapping.h" |
| 61 #include "core/rendering/compositing/RenderLayerCompositor.h" | 61 #include "sky/engine/core/rendering/compositing/RenderLayerCompositor.h" |
| 62 #include "platform/PlatformGestureEvent.h" | 62 #include "sky/engine/platform/PlatformGestureEvent.h" |
| 63 #include "platform/PlatformMouseEvent.h" | 63 #include "sky/engine/platform/PlatformMouseEvent.h" |
| 64 #include "platform/graphics/GraphicsContextStateSaver.h" | 64 #include "sky/engine/platform/graphics/GraphicsContextStateSaver.h" |
| 65 #include "platform/graphics/GraphicsLayer.h" | 65 #include "sky/engine/platform/graphics/GraphicsLayer.h" |
| 66 #include "platform/scroll/ScrollAnimator.h" | 66 #include "sky/engine/platform/scroll/ScrollAnimator.h" |
| 67 #include "platform/scroll/Scrollbar.h" | 67 #include "sky/engine/platform/scroll/Scrollbar.h" |
| 68 #include "public/platform/Platform.h" | 68 #include "sky/engine/public/platform/Platform.h" |
| 69 | 69 |
| 70 namespace blink { | 70 namespace blink { |
| 71 | 71 |
| 72 RenderLayerScrollableArea::RenderLayerScrollableArea(RenderLayer& layer) | 72 RenderLayerScrollableArea::RenderLayerScrollableArea(RenderLayer& layer) |
| 73 : m_layer(layer) | 73 : m_layer(layer) |
| 74 , m_scrollsOverflow(false) | 74 , m_scrollsOverflow(false) |
| 75 , m_scrollDimensionsDirty(true) | 75 , m_scrollDimensionsDirty(true) |
| 76 , m_inOverflowRelayout(false) | 76 , m_inOverflowRelayout(false) |
| 77 , m_nextTopmostScrollChild(0) | 77 , m_nextTopmostScrollChild(0) |
| 78 , m_topmostScrollChild(0) | 78 , m_topmostScrollChild(0) |
| (...skipping 764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 843 void RenderLayerScrollableArea::setTopmostScrollChild(RenderLayer* scrollChild) | 843 void RenderLayerScrollableArea::setTopmostScrollChild(RenderLayer* scrollChild) |
| 844 { | 844 { |
| 845 // We only want to track the topmost scroll child for scrollable areas with | 845 // We only want to track the topmost scroll child for scrollable areas with |
| 846 // overlay scrollbars. | 846 // overlay scrollbars. |
| 847 if (!hasOverlayScrollbars()) | 847 if (!hasOverlayScrollbars()) |
| 848 return; | 848 return; |
| 849 m_nextTopmostScrollChild = scrollChild; | 849 m_nextTopmostScrollChild = scrollChild; |
| 850 } | 850 } |
| 851 | 851 |
| 852 } // namespace blink | 852 } // namespace blink |
| OLD | NEW |