| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 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 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 #include "platform/scroll/ScrollView.h" | 27 #include "platform/scroll/ScrollView.h" |
| 28 | 28 |
| 29 #include "platform/graphics/GraphicsContextStateSaver.h" | 29 #include "platform/graphics/GraphicsContextStateSaver.h" |
| 30 #include "platform/graphics/GraphicsLayer.h" | 30 #include "platform/graphics/GraphicsLayer.h" |
| 31 #include "platform/HostWindow.h" | 31 #include "platform/HostWindow.h" |
| 32 #include "platform/scroll/ScrollbarTheme.h" | 32 #include "platform/scroll/ScrollbarTheme.h" |
| 33 #include "wtf/StdLibExtras.h" | 33 #include "wtf/StdLibExtras.h" |
| 34 | 34 |
| 35 using namespace std; | 35 using namespace std; |
| 36 | 36 |
| 37 namespace WebCore { | 37 namespace blink { |
| 38 | 38 |
| 39 ScrollView::ScrollView() | 39 ScrollView::ScrollView() |
| 40 : m_horizontalScrollbarMode(ScrollbarAuto) | 40 : m_horizontalScrollbarMode(ScrollbarAuto) |
| 41 , m_verticalScrollbarMode(ScrollbarAuto) | 41 , m_verticalScrollbarMode(ScrollbarAuto) |
| 42 , m_horizontalScrollbarLock(false) | 42 , m_horizontalScrollbarLock(false) |
| 43 , m_verticalScrollbarLock(false) | 43 , m_verticalScrollbarLock(false) |
| 44 , m_scrollbarsAvoidingResizer(0) | 44 , m_scrollbarsAvoidingResizer(0) |
| 45 , m_scrollbarsSuppressed(false) | 45 , m_scrollbarsSuppressed(false) |
| 46 , m_inUpdateScrollbars(false) | 46 , m_inUpdateScrollbars(false) |
| 47 , m_drawPanScrollIcon(false) | 47 , m_drawPanScrollIcon(false) |
| (...skipping 1068 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1116 if (scrollOrigin() == origin) | 1116 if (scrollOrigin() == origin) |
| 1117 return; | 1117 return; |
| 1118 | 1118 |
| 1119 ScrollableArea::setScrollOrigin(origin); | 1119 ScrollableArea::setScrollOrigin(origin); |
| 1120 | 1120 |
| 1121 // Update if the scroll origin changes, since our position will be different
if the content size did not change. | 1121 // Update if the scroll origin changes, since our position will be different
if the content size did not change. |
| 1122 if (updatePositionAtAll && updatePositionSynchronously) | 1122 if (updatePositionAtAll && updatePositionSynchronously) |
| 1123 updateScrollbars(scrollOffset()); | 1123 updateScrollbars(scrollOffset()); |
| 1124 } | 1124 } |
| 1125 | 1125 |
| 1126 } // namespace WebCore | 1126 } // namespace blink |
| OLD | NEW |