OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2011, 2012 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 #include "core/page/Page.h" | 108 #include "core/page/Page.h" |
109 #include "core/page/PageGroup.h" | 109 #include "core/page/PageGroup.h" |
110 #include "core/page/PageGroupLoadDeferrer.h" | 110 #include "core/page/PageGroupLoadDeferrer.h" |
111 #include "core/page/PagePopupClient.h" | 111 #include "core/page/PagePopupClient.h" |
112 #include "core/page/PointerLockController.h" | 112 #include "core/page/PointerLockController.h" |
113 #include "core/page/Settings.h" | 113 #include "core/page/Settings.h" |
114 #include "core/page/TouchDisambiguation.h" | 114 #include "core/page/TouchDisambiguation.h" |
115 #include "core/platform/Cursor.h" | 115 #include "core/platform/Cursor.h" |
116 #include "core/platform/OverscrollTheme.h" | 116 #include "core/platform/OverscrollTheme.h" |
117 #include "core/platform/PopupMenuClient.h" | 117 #include "core/platform/PopupMenuClient.h" |
118 #include "core/platform/ScrollbarTheme.h" | |
119 #include "core/platform/chromium/ChromiumDataObject.h" | 118 #include "core/platform/chromium/ChromiumDataObject.h" |
120 #include "core/platform/chromium/KeyboardCodes.h" | 119 #include "core/platform/chromium/KeyboardCodes.h" |
121 #include "core/platform/graphics/FontCache.h" | |
122 #include "core/platform/graphics/Image.h" | |
123 #include "core/platform/graphics/ImageBuffer.h" | |
124 #include "core/rendering/RenderLayerCompositor.h" | 120 #include "core/rendering/RenderLayerCompositor.h" |
125 #include "core/rendering/RenderView.h" | 121 #include "core/rendering/RenderView.h" |
126 #include "core/rendering/RenderWidget.h" | 122 #include "core/rendering/RenderWidget.h" |
127 #include "core/rendering/TextAutosizer.h" | 123 #include "core/rendering/TextAutosizer.h" |
128 #include "modules/geolocation/GeolocationController.h" | 124 #include "modules/geolocation/GeolocationController.h" |
129 #include "modules/notifications/NotificationController.h" | 125 #include "modules/notifications/NotificationController.h" |
130 #include "painting/ContinuousPainter.h" | 126 #include "painting/ContinuousPainter.h" |
131 #include "platform/ContextMenu.h" | 127 #include "platform/ContextMenu.h" |
132 #include "platform/ContextMenuItem.h" | 128 #include "platform/ContextMenuItem.h" |
133 #include "platform/NotImplemented.h" | 129 #include "platform/NotImplemented.h" |
134 #include "platform/PlatformGestureEvent.h" | 130 #include "platform/PlatformGestureEvent.h" |
135 #include "platform/PlatformKeyboardEvent.h" | 131 #include "platform/PlatformKeyboardEvent.h" |
136 #include "platform/PlatformMouseEvent.h" | 132 #include "platform/PlatformMouseEvent.h" |
137 #include "platform/PlatformWheelEvent.h" | 133 #include "platform/PlatformWheelEvent.h" |
138 #include "platform/TraceEvent.h" | 134 #include "platform/TraceEvent.h" |
139 #include "platform/exported/WebActiveGestureAnimation.h" | 135 #include "platform/exported/WebActiveGestureAnimation.h" |
| 136 #include "platform/fonts/FontCache.h" |
140 #include "platform/graphics/Color.h" | 137 #include "platform/graphics/Color.h" |
| 138 #include "platform/graphics/Image.h" |
| 139 #include "platform/graphics/ImageBuffer.h" |
| 140 #include "platform/scroll/ScrollbarTheme.h" |
141 #include "platform/weborigin/SchemeRegistry.h" | 141 #include "platform/weborigin/SchemeRegistry.h" |
142 #include "public/platform/Platform.h" | 142 #include "public/platform/Platform.h" |
143 #include "public/platform/WebDragData.h" | 143 #include "public/platform/WebDragData.h" |
144 #include "public/platform/WebFloatPoint.h" | 144 #include "public/platform/WebFloatPoint.h" |
145 #include "public/platform/WebGestureCurve.h" | 145 #include "public/platform/WebGestureCurve.h" |
146 #include "public/platform/WebImage.h" | 146 #include "public/platform/WebImage.h" |
147 #include "public/platform/WebLayerTreeView.h" | 147 #include "public/platform/WebLayerTreeView.h" |
148 #include "public/platform/WebVector.h" | 148 #include "public/platform/WebVector.h" |
149 #include "wtf/CurrentTime.h" | 149 #include "wtf/CurrentTime.h" |
150 #include "wtf/RefPtr.h" | 150 #include "wtf/RefPtr.h" |
(...skipping 4025 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4176 const PageScaleConstraints& constraints = m_pageScaleConstraintsSet.pageDefi
nedConstraints(); | 4176 const PageScaleConstraints& constraints = m_pageScaleConstraintsSet.pageDefi
nedConstraints(); |
4177 | 4177 |
4178 if (!mainFrameImpl() || !mainFrameImpl()->frameView()) | 4178 if (!mainFrameImpl() || !mainFrameImpl()->frameView()) |
4179 return false; | 4179 return false; |
4180 | 4180 |
4181 return mainFrameImpl()->frameView()->layoutSize().width() == m_size.width | 4181 return mainFrameImpl()->frameView()->layoutSize().width() == m_size.width |
4182 || (constraints.minimumScale == constraints.maximumScale && constraints.
minimumScale != -1); | 4182 || (constraints.minimumScale == constraints.maximumScale && constraints.
minimumScale != -1); |
4183 } | 4183 } |
4184 | 4184 |
4185 } // namespace blink | 4185 } // namespace blink |
OLD | NEW |