OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv
ed. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv
ed. |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 * Library General Public License for more details. | 13 * Library General Public License for more details. |
14 * | 14 * |
15 * You should have received a copy of the GNU Library General Public License | 15 * You should have received a copy of the GNU Library General Public License |
16 * along with this library; see the file COPYING.LIB. If not, write to | 16 * along with this library; see the file COPYING.LIB. If not, write to |
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
18 * Boston, MA 02110-1301, USA. | 18 * Boston, MA 02110-1301, USA. |
19 */ | 19 */ |
20 | 20 |
21 #include "core/layout/LayoutView.h" | 21 #include "core/layout/LayoutView.h" |
22 | 22 |
23 #include "core/dom/Document.h" | 23 #include "core/dom/Document.h" |
24 #include "core/dom/Element.h" | 24 #include "core/dom/Element.h" |
25 #include "core/editing/FrameSelection.h" | 25 #include "core/editing/FrameSelection.h" |
26 #include "core/frame/FrameView.h" | 26 #include "core/frame/FrameView.h" |
27 #include "core/frame/LocalFrame.h" | 27 #include "core/frame/LocalFrame.h" |
28 #include "core/frame/Settings.h" | 28 #include "core/frame/Settings.h" |
29 #include "core/html/HTMLFrameOwnerElement.h" | |
30 #include "core/html/HTMLIFrameElement.h" | 29 #include "core/html/HTMLIFrameElement.h" |
31 #include "core/html/HTMLVideoElement.h" | |
32 #include "core/inspector/InspectorTraceEvents.h" | |
33 #include "core/layout/HitTestResult.h" | 30 #include "core/layout/HitTestResult.h" |
34 #include "core/layout/LayoutGeometryMap.h" | 31 #include "core/layout/LayoutGeometryMap.h" |
35 #include "core/layout/LayoutMedia.h" | 32 #include "core/layout/LayoutMedia.h" |
36 #include "core/layout/LayoutPart.h" | 33 #include "core/layout/LayoutPart.h" |
37 #include "core/layout/LayoutQuote.h" | |
38 #include "core/layout/ViewFragmentationContext.h" | 34 #include "core/layout/ViewFragmentationContext.h" |
39 #include "core/layout/compositing/PaintLayerCompositor.h" | 35 #include "core/layout/compositing/PaintLayerCompositor.h" |
40 #include "core/page/Page.h" | 36 #include "core/page/Page.h" |
41 #include "core/paint/PaintLayer.h" | 37 #include "core/paint/PaintLayer.h" |
42 #include "core/paint/ViewPainter.h" | 38 #include "core/paint/ViewPainter.h" |
43 #include "core/svg/SVGDocumentExtensions.h" | 39 #include "core/svg/SVGDocumentExtensions.h" |
44 #include "platform/Histogram.h" | 40 #include "platform/Histogram.h" |
45 #include "platform/TraceEvent.h" | 41 #include "platform/TraceEvent.h" |
46 #include "platform/TracedValue.h" | 42 #include "platform/TracedValue.h" |
47 #include "platform/geometry/FloatQuad.h" | 43 #include "platform/geometry/FloatQuad.h" |
(...skipping 993 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1041 // ASSERT(!frame()->isMainFrame()) here. All main frame scrolling should | 1037 // ASSERT(!frame()->isMainFrame()) here. All main frame scrolling should |
1042 // be handled by the ViewportScrollCallback. | 1038 // be handled by the ViewportScrollCallback. |
1043 | 1039 |
1044 if (!frameView()) | 1040 if (!frameView()) |
1045 return ScrollResult(false, false, delta.width(), delta.height()); | 1041 return ScrollResult(false, false, delta.width(), delta.height()); |
1046 | 1042 |
1047 return frameView()->getScrollableArea()->userScroll(granularity, delta); | 1043 return frameView()->getScrollableArea()->userScroll(granularity, delta); |
1048 } | 1044 } |
1049 | 1045 |
1050 } // namespace blink | 1046 } // namespace blink |
OLD | NEW |