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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 #include "core/platform/graphics/chromium/LayerPainterChromium.h" | 138 #include "core/platform/graphics/chromium/LayerPainterChromium.h" |
139 #include "core/platform/graphics/gpu/SharedGraphicsContext3D.h" | 139 #include "core/platform/graphics/gpu/SharedGraphicsContext3D.h" |
140 #include "core/platform/graphics/skia/PlatformContextSkia.h" | 140 #include "core/platform/graphics/skia/PlatformContextSkia.h" |
141 #include "core/platform/network/ResourceHandle.h" | 141 #include "core/platform/network/ResourceHandle.h" |
142 #include "core/rendering/RenderLayerCompositor.h" | 142 #include "core/rendering/RenderLayerCompositor.h" |
143 #include "core/rendering/RenderView.h" | 143 #include "core/rendering/RenderView.h" |
144 #include "core/rendering/RenderWidget.h" | 144 #include "core/rendering/RenderWidget.h" |
145 #include "modules/battery/BatteryController.h" | 145 #include "modules/battery/BatteryController.h" |
146 #include "modules/geolocation/GeolocationController.h" | 146 #include "modules/geolocation/GeolocationController.h" |
147 #include "painting/ContinuousPainter.h" | 147 #include "painting/ContinuousPainter.h" |
148 #include "painting/GraphicsContextBuilder.h" | |
149 #include <public/Platform.h> | 148 #include <public/Platform.h> |
150 #include <public/WebCompositorOutputSurface.h> | 149 #include <public/WebCompositorOutputSurface.h> |
151 #include <public/WebCompositorSupport.h> | 150 #include <public/WebCompositorSupport.h> |
152 #include <public/WebDragData.h> | 151 #include <public/WebDragData.h> |
153 #include <public/WebFloatPoint.h> | 152 #include <public/WebFloatPoint.h> |
154 #include <public/WebGraphicsContext3D.h> | 153 #include <public/WebGraphicsContext3D.h> |
155 #include <public/WebImage.h> | 154 #include <public/WebImage.h> |
156 #include <public/WebLayer.h> | 155 #include <public/WebLayer.h> |
157 #include <public/WebLayerTreeView.h> | 156 #include <public/WebLayerTreeView.h> |
158 #include <public/WebPoint.h> | 157 #include <public/WebPoint.h> |
(...skipping 4052 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4211 } | 4210 } |
4212 | 4211 |
4213 bool WebViewImpl::shouldDisableDesktopWorkarounds() | 4212 bool WebViewImpl::shouldDisableDesktopWorkarounds() |
4214 { | 4213 { |
4215 ViewportArguments arguments = mainFrameImpl()->frame()->document()->viewport
Arguments(); | 4214 ViewportArguments arguments = mainFrameImpl()->frame()->document()->viewport
Arguments(); |
4216 return arguments.width == ViewportArguments::ValueDeviceWidth || !arguments.
userZoom | 4215 return arguments.width == ViewportArguments::ValueDeviceWidth || !arguments.
userZoom |
4217 || (arguments.minZoom == arguments.maxZoom && arguments.minZoom != Viewp
ortArguments::ValueAuto); | 4216 || (arguments.minZoom == arguments.maxZoom && arguments.minZoom != Viewp
ortArguments::ValueAuto); |
4218 } | 4217 } |
4219 | 4218 |
4220 } // namespace WebKit | 4219 } // namespace WebKit |
OLD | NEW |