OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2011 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 14 matching lines...) Expand all Loading... |
25 | 25 |
26 #include "core/page/scrolling/ScrollingCoordinator.h" | 26 #include "core/page/scrolling/ScrollingCoordinator.h" |
27 | 27 |
28 #include "core/dom/Document.h" | 28 #include "core/dom/Document.h" |
29 #include "core/dom/Fullscreen.h" | 29 #include "core/dom/Fullscreen.h" |
30 #include "core/dom/Node.h" | 30 #include "core/dom/Node.h" |
31 #include "core/frame/EventHandlerRegistry.h" | 31 #include "core/frame/EventHandlerRegistry.h" |
32 #include "core/frame/FrameView.h" | 32 #include "core/frame/FrameView.h" |
33 #include "core/frame/LocalFrame.h" | 33 #include "core/frame/LocalFrame.h" |
34 #include "core/frame/Settings.h" | 34 #include "core/frame/Settings.h" |
| 35 #include "core/frame/VisualViewport.h" |
35 #include "core/html/HTMLElement.h" | 36 #include "core/html/HTMLElement.h" |
36 #include "core/layout/LayoutGeometryMap.h" | 37 #include "core/layout/LayoutGeometryMap.h" |
37 #include "core/layout/LayoutPart.h" | 38 #include "core/layout/LayoutPart.h" |
38 #include "core/layout/api/LayoutViewItem.h" | 39 #include "core/layout/api/LayoutViewItem.h" |
39 #include "core/layout/compositing/CompositedLayerMapping.h" | 40 #include "core/layout/compositing/CompositedLayerMapping.h" |
40 #include "core/layout/compositing/PaintLayerCompositor.h" | 41 #include "core/layout/compositing/PaintLayerCompositor.h" |
41 #include "core/page/ChromeClient.h" | 42 #include "core/page/ChromeClient.h" |
42 #include "core/page/Page.h" | 43 #include "core/page/Page.h" |
43 #include "core/plugins/PluginView.h" | 44 #include "core/plugins/PluginView.h" |
44 #include "platform/RuntimeEnabledFeatures.h" | 45 #include "platform/RuntimeEnabledFeatures.h" |
(...skipping 1020 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1065 bool frameIsScrollable = frameView && frameView->isScrollable(); | 1066 bool frameIsScrollable = frameView && frameView->isScrollable(); |
1066 if (frameIsScrollable != m_wasFrameScrollable) | 1067 if (frameIsScrollable != m_wasFrameScrollable) |
1067 return true; | 1068 return true; |
1068 | 1069 |
1069 if (WebLayer* scrollLayer = frameView ? toWebLayer(frameView->layerForScroll
ing()) : nullptr) | 1070 if (WebLayer* scrollLayer = frameView ? toWebLayer(frameView->layerForScroll
ing()) : nullptr) |
1070 return WebSize(frameView->contentsSize()) != scrollLayer->bounds(); | 1071 return WebSize(frameView->contentsSize()) != scrollLayer->bounds(); |
1071 return false; | 1072 return false; |
1072 } | 1073 } |
1073 | 1074 |
1074 } // namespace blink | 1075 } // namespace blink |
OLD | NEW |