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 3230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3241 void FrameView::setScrollOffset(const IntPoint& offset) | 3241 void FrameView::setScrollOffset(const IntPoint& offset) |
3242 { | 3242 { |
3243 scrollTo(DoublePoint(adjustScrollPositionWithinRange(offset))); | 3243 scrollTo(DoublePoint(adjustScrollPositionWithinRange(offset))); |
3244 } | 3244 } |
3245 | 3245 |
3246 void FrameView::setScrollOffset(const DoublePoint& offset) | 3246 void FrameView::setScrollOffset(const DoublePoint& offset) |
3247 { | 3247 { |
3248 scrollTo(adjustScrollPositionWithinRange(offset)); | 3248 scrollTo(adjustScrollPositionWithinRange(offset)); |
3249 } | 3249 } |
3250 | 3250 |
3251 bool FrameView::scroll(ScrollDirection direction, ScrollGranularity granularity,
float delta) | 3251 ScrollResultOneDimensional FrameView::scroll(ScrollDirection direction, ScrollGr
anularity granularity, float delta) |
3252 { | 3252 { |
3253 ScrollDirection physicalDirection = | 3253 ScrollDirection physicalDirection = |
3254 toPhysicalDirection(direction, isVerticalDocument(), isFlippedDocument()
); | 3254 toPhysicalDirection(direction, isVerticalDocument(), isFlippedDocument()
); |
3255 | 3255 |
3256 return ScrollableArea::scroll(physicalDirection, granularity, delta); | 3256 return ScrollableArea::scroll(physicalDirection, granularity, delta); |
3257 } | 3257 } |
3258 | 3258 |
3259 void FrameView::windowResizerRectChanged() | 3259 void FrameView::windowResizerRectChanged() |
3260 { | 3260 { |
3261 updateScrollbars(scrollOffsetDouble()); | 3261 updateScrollbars(scrollOffsetDouble()); |
(...skipping 749 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4011 LayoutObject* FrameView::viewportLayoutObject() | 4011 LayoutObject* FrameView::viewportLayoutObject() |
4012 { | 4012 { |
4013 if (Document* document = frame().document()) { | 4013 if (Document* document = frame().document()) { |
4014 if (Element* element = document->viewportDefiningElement()) | 4014 if (Element* element = document->viewportDefiningElement()) |
4015 return element->layoutObject(); | 4015 return element->layoutObject(); |
4016 } | 4016 } |
4017 return nullptr; | 4017 return nullptr; |
4018 } | 4018 } |
4019 | 4019 |
4020 } // namespace blink | 4020 } // namespace blink |
OLD | NEW |