| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "config.h" | 5 #include "config.h" |
| 6 #include "core/frame/RootFrameViewport.h" | 6 #include "core/frame/RootFrameViewport.h" |
| 7 | 7 |
| 8 #include "core/frame/FrameView.h" | 8 #include "core/frame/FrameView.h" |
| 9 #include "core/layout/ScrollAlignment.h" | 9 #include "core/layout/ScrollAlignment.h" |
| 10 #include "platform/geometry/DoubleRect.h" | 10 #include "platform/geometry/DoubleRect.h" |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 bool RootFrameViewport::userInputScrollable(ScrollbarOrientation orientation) co
nst | 203 bool RootFrameViewport::userInputScrollable(ScrollbarOrientation orientation) co
nst |
| 204 { | 204 { |
| 205 return visualViewport().userInputScrollable(orientation) || layoutViewport()
.userInputScrollable(orientation); | 205 return visualViewport().userInputScrollable(orientation) || layoutViewport()
.userInputScrollable(orientation); |
| 206 } | 206 } |
| 207 | 207 |
| 208 bool RootFrameViewport::shouldPlaceVerticalScrollbarOnLeft() const | 208 bool RootFrameViewport::shouldPlaceVerticalScrollbarOnLeft() const |
| 209 { | 209 { |
| 210 return layoutViewport().shouldPlaceVerticalScrollbarOnLeft(); | 210 return layoutViewport().shouldPlaceVerticalScrollbarOnLeft(); |
| 211 } | 211 } |
| 212 | 212 |
| 213 void RootFrameViewport::scrollControlWasSetNeedsPaintInvalidation() | 213 void RootFrameViewport::invalidateScrollbarRect(Scrollbar* scrollbar, const IntR
ect& rect) |
| 214 { | 214 { |
| 215 layoutViewport().scrollControlWasSetNeedsPaintInvalidation(); | 215 layoutViewport().invalidateScrollbarRect(scrollbar, rect); |
| 216 } |
| 217 |
| 218 void RootFrameViewport::invalidateScrollCornerRect(const IntRect& rect) |
| 219 { |
| 220 layoutViewport().invalidateScrollCornerRect(rect); |
| 216 } | 221 } |
| 217 | 222 |
| 218 GraphicsLayer* RootFrameViewport::layerForContainer() const | 223 GraphicsLayer* RootFrameViewport::layerForContainer() const |
| 219 { | 224 { |
| 220 return layoutViewport().layerForContainer(); | 225 return layoutViewport().layerForContainer(); |
| 221 } | 226 } |
| 222 | 227 |
| 223 GraphicsLayer* RootFrameViewport::layerForScrolling() const | 228 GraphicsLayer* RootFrameViewport::layerForScrolling() const |
| 224 { | 229 { |
| 225 return layoutViewport().layerForScrolling(); | 230 return layoutViewport().layerForScrolling(); |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 } | 288 } |
| 284 | 289 |
| 285 DEFINE_TRACE(RootFrameViewport) | 290 DEFINE_TRACE(RootFrameViewport) |
| 286 { | 291 { |
| 287 visitor->trace(m_visualViewport); | 292 visitor->trace(m_visualViewport); |
| 288 visitor->trace(m_layoutViewport); | 293 visitor->trace(m_layoutViewport); |
| 289 ScrollableArea::trace(visitor); | 294 ScrollableArea::trace(visitor); |
| 290 } | 295 } |
| 291 | 296 |
| 292 } // namespace blink | 297 } // namespace blink |
| OLD | NEW |