OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> | 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> |
3 * 1999 Lars Knoll <knoll@kde.org> | 3 * 1999 Lars Knoll <knoll@kde.org> |
4 * 1999 Antti Koivisto <koivisto@kde.org> | 4 * 1999 Antti Koivisto <koivisto@kde.org> |
5 * 2000 Dirk Mueller <mueller@kde.org> | 5 * 2000 Dirk Mueller <mueller@kde.org> |
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
9 * Copyright (C) 2009 Google Inc. All rights reserved. | 9 * Copyright (C) 2009 Google Inc. All rights reserved. |
10 * | 10 * |
(...skipping 4066 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4077 } | 4077 } |
4078 | 4078 |
4079 void FrameView::positionScrollbarLayers() { | 4079 void FrameView::positionScrollbarLayers() { |
4080 positionScrollbarLayer(layerForHorizontalScrollbar(), horizontalScrollbar()); | 4080 positionScrollbarLayer(layerForHorizontalScrollbar(), horizontalScrollbar()); |
4081 positionScrollbarLayer(layerForVerticalScrollbar(), verticalScrollbar()); | 4081 positionScrollbarLayer(layerForVerticalScrollbar(), verticalScrollbar()); |
4082 positionScrollCornerLayer(layerForScrollCorner(), scrollCornerRect()); | 4082 positionScrollCornerLayer(layerForScrollCorner(), scrollCornerRect()); |
4083 } | 4083 } |
4084 | 4084 |
4085 bool FrameView::userInputScrollable(ScrollbarOrientation orientation) const { | 4085 bool FrameView::userInputScrollable(ScrollbarOrientation orientation) const { |
4086 Document* document = frame().document(); | 4086 Document* document = frame().document(); |
4087 Element* fullscreenElement = Fullscreen::fullscreenElementFrom(*document); | 4087 Element* fullscreenElement = Fullscreen::fullscreenElement(*document); |
4088 if (fullscreenElement && fullscreenElement != document->documentElement()) | 4088 if (fullscreenElement && fullscreenElement != document->documentElement()) |
4089 return false; | 4089 return false; |
4090 | 4090 |
4091 if (RuntimeEnabledFeatures::rootLayerScrollingEnabled()) | 4091 if (RuntimeEnabledFeatures::rootLayerScrollingEnabled()) |
4092 return false; | 4092 return false; |
4093 | 4093 |
4094 ScrollbarMode mode = (orientation == HorizontalScrollbar) | 4094 ScrollbarMode mode = (orientation == HorizontalScrollbar) |
4095 ? m_horizontalScrollbarMode | 4095 ? m_horizontalScrollbarMode |
4096 : m_verticalScrollbarMode; | 4096 : m_verticalScrollbarMode; |
4097 | 4097 |
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4510 DCHECK(m_frame->isMainFrame()); | 4510 DCHECK(m_frame->isMainFrame()); |
4511 return m_initialViewportSize.width(); | 4511 return m_initialViewportSize.width(); |
4512 } | 4512 } |
4513 | 4513 |
4514 int FrameView::initialViewportHeight() const { | 4514 int FrameView::initialViewportHeight() const { |
4515 DCHECK(m_frame->isMainFrame()); | 4515 DCHECK(m_frame->isMainFrame()); |
4516 return m_initialViewportSize.height(); | 4516 return m_initialViewportSize.height(); |
4517 } | 4517 } |
4518 | 4518 |
4519 } // namespace blink | 4519 } // namespace blink |
OLD | NEW |