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::invalidateScrollbarRect(Scrollbar* scrollbar, const IntR
ect& rect) | 213 void RootFrameViewport::scrollControlWasSetNeedsPaintInvalidation() |
214 { | 214 { |
215 layoutViewport().invalidateScrollbarRect(scrollbar, rect); | 215 layoutViewport().scrollControlWasSetNeedsPaintInvalidation(); |
216 } | |
217 | |
218 void RootFrameViewport::invalidateScrollCornerRect(const IntRect& rect) | |
219 { | |
220 layoutViewport().invalidateScrollCornerRect(rect); | |
221 } | 216 } |
222 | 217 |
223 GraphicsLayer* RootFrameViewport::layerForContainer() const | 218 GraphicsLayer* RootFrameViewport::layerForContainer() const |
224 { | 219 { |
225 return layoutViewport().layerForContainer(); | 220 return layoutViewport().layerForContainer(); |
226 } | 221 } |
227 | 222 |
228 GraphicsLayer* RootFrameViewport::layerForScrolling() const | 223 GraphicsLayer* RootFrameViewport::layerForScrolling() const |
229 { | 224 { |
230 return layoutViewport().layerForScrolling(); | 225 return layoutViewport().layerForScrolling(); |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 } | 283 } |
289 | 284 |
290 DEFINE_TRACE(RootFrameViewport) | 285 DEFINE_TRACE(RootFrameViewport) |
291 { | 286 { |
292 visitor->trace(m_visualViewport); | 287 visitor->trace(m_visualViewport); |
293 visitor->trace(m_layoutViewport); | 288 visitor->trace(m_layoutViewport); |
294 ScrollableArea::trace(visitor); | 289 ScrollableArea::trace(visitor); |
295 } | 290 } |
296 | 291 |
297 } // namespace blink | 292 } // namespace blink |
OLD | NEW |