[Chromium] Implement target-densityDpi viewport property emulation
https://bugs.webkit.org/show_bug.cgi?id=110835

The value is only used in the Chromium port, when the corresponding
setting is enabled.

This is needed for supporting existing WebView-based applications
that rely on this property.

Reviewed by Adam Barth.

Source/WebCore:

* dom/ViewportArguments.cpp:
(WebCore::findTargetDensityDPIValue):
(WebCore):
(WebCore::setViewportFeature):
* dom/ViewportArguments.h:
(WebCore::ViewportArguments::ViewportArguments):
(ViewportArguments):
(WebCore::ViewportArguments::operator==):

Source/WebKit/chromium:

* public/WebSettings.h:
(WebSettings):
* src/ChromeClientImpl.cpp:
(WebKit):
(WebKit::calculateTargetDensityDPIFactor):
(WebKit::ChromeClientImpl::dispatchViewportPropertiesDidChange):
* src/WebSettingsImpl.cpp:
(WebKit::WebSettingsImpl::WebSettingsImpl):
(WebKit::WebSettingsImpl::setSupportDeprecatedTargetDensityDPI):
(WebKit):
* src/WebSettingsImpl.h:
(WebSettingsImpl):
(WebKit::WebSettingsImpl::supportDeprecatedTargetDensityDPI):
* tests/WebFrameTest.cpp:
* tests/data/viewport-target-densitydpi-high.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk/Source/WebKit/chromium/public@147529 268f45cc-cd09-0410-ab3c-d52691b4dbfc
1 file changed
tree: 57cdea1c6ae18ccac9fd07fb654fe77fef2497d9
  1. android/
  2. default/
  3. gtk/
  4. linux/
  5. mac/
  6. win/
  7. x11/
  8. WebAccessibilityNotification.h
  9. WebAccessibilityObject.h
  10. WebAccessibilityRole.h
  11. WebActiveWheelFlingParameters.h
  12. WebApplicationCacheHost.h
  13. WebApplicationCacheHostClient.h
  14. WebArrayBuffer.h
  15. WebArrayBufferView.h
  16. WebAudioSourceProvider.h
  17. WebAudioSourceProviderClient.h
  18. WebAutofillClient.h
  19. WebBatteryStatus.h
  20. WebBatteryStatusClient.h
  21. WebBindings.h
  22. WebBlob.h
  23. WebCache.h
  24. WebCachedURLRequest.h
  25. WebColorChooser.h
  26. WebColorChooserClient.h
  27. WebColorName.h
  28. WebCommonWorkerClient.h
  29. WebCompositionUnderline.h
  30. WebCompositorInputHandler.h
  31. WebCompositorInputHandlerClient.h
  32. WebConsoleMessage.h
  33. WebContentDetectionResult.h
  34. WebContentSecurityPolicy.h
  35. WebContextMenuData.h
  36. WebCrossOriginPreflightResultCache.h
  37. WebCursorInfo.h
  38. WebDatabase.h
  39. WebDatabaseObserver.h
  40. WebDataSource.h
  41. WebDateTimeChooserCompletion.h
  42. WebDateTimeChooserParams.h
  43. WebDateTimeInputType.h
  44. WebDeviceOrientation.h
  45. WebDeviceOrientationClient.h
  46. WebDeviceOrientationClientMock.h
  47. WebDeviceOrientationController.h
  48. WebDevToolsAgent.h
  49. WebDevToolsAgentClient.h
  50. WebDevToolsFrontend.h
  51. WebDevToolsFrontendClient.h
  52. WebDocument.h
  53. WebDocumentType.h
  54. WebDOMActivityLogger.h
  55. WebDOMCustomEvent.h
  56. WebDOMEvent.h
  57. WebDOMEventListener.h
  58. WebDOMMessageEvent.h
  59. WebDOMMouseEvent.h
  60. WebDOMMutationEvent.h
  61. WebDOMStringList.h
  62. WebDraggableRegion.h
  63. WebDragOperation.h
  64. WebDragStatus.h
  65. WebEditingAction.h
  66. WebElement.h
  67. WebExceptionCode.h
  68. WebExternalPopupMenu.h
  69. WebExternalPopupMenuClient.h
  70. WebFileChooserCompletion.h
  71. WebFileChooserParams.h
  72. WebFileError.h
  73. WebFileInfo.h
  74. WebFileSystemCallbacks.h
  75. WebFileSystemEntry.h
  76. WebFileUtilities.h
  77. WebFileWriter.h
  78. WebFileWriterClient.h
  79. WebFindOptions.h
  80. WebFont.h
  81. WebFontCache.h
  82. WebFontDescription.h
  83. WebFormControlElement.h
  84. WebFormElement.h
  85. WebFrame.h
  86. WebFrameClient.h
  87. WebGeolocationClient.h
  88. WebGeolocationClientMock.h
  89. WebGeolocationController.h
  90. WebGeolocationError.h
  91. WebGeolocationPermissionRequest.h
  92. WebGeolocationPermissionRequestManager.h
  93. WebGeolocationPosition.h
  94. WebGlyphCache.h
  95. WebHelperPlugin.h
  96. WebHistoryItem.h
  97. WebHitTestResult.h
  98. WebIconLoadingCompletion.h
  99. WebIconURL.h
  100. WebIDBCallbacks.h
  101. WebIDBCursor.h
  102. WebIDBDatabase.h
  103. WebIDBDatabaseCallbacks.h
  104. WebIDBDatabaseError.h
  105. WebIDBDatabaseException.h
  106. WebIDBFactory.h
  107. WebIDBKey.h
  108. WebIDBKeyPath.h
  109. WebIDBKeyRange.h
  110. WebIDBMetadata.h
  111. WebImageDecoder.h
  112. WebInputElement.h
  113. WebInputEvent.h
  114. WebKit.h
  115. WebLabelElement.h
  116. WebMediaPlayer.h
  117. WebMediaPlayerAction.h
  118. WebMediaPlayerClient.h
  119. WebMediaSource.h
  120. WebMediaSourceClient.h
  121. WebMediaStreamRegistry.h
  122. WebMemoryUsageInfo.h
  123. WebMenuItemInfo.h
  124. WebMessagePortChannel.h
  125. WebMessagePortChannelClient.h
  126. WebNavigationPolicy.h
  127. WebNavigationType.h
  128. WebNetworkStateNotifier.h
  129. WebNode.h
  130. WebNodeCollection.h
  131. WebNodeList.h
  132. WebNotification.h
  133. WebNotificationPermissionCallback.h
  134. WebNotificationPresenter.h
  135. WebOptionElement.h
  136. WebPageOverlay.h
  137. WebPagePopup.h
  138. WebPageSerializer.h
  139. WebPageSerializerClient.h
  140. WebPageVisibilityState.h
  141. WebPasswordFormData.h
  142. WebPerformance.h
  143. WebPermissionClient.h
  144. WebPlugin.h
  145. WebPluginAction.h
  146. WebPluginContainer.h
  147. WebPluginDocument.h
  148. WebPluginListBuilder.h
  149. WebPluginParams.h
  150. WebPluginScrollbar.h
  151. WebPluginScrollbarClient.h
  152. WebPopupMenu.h
  153. WebPopupMenuInfo.h
  154. WebPopupType.h
  155. WebPrerendererClient.h
  156. WebPrintParams.h
  157. WebPrintScalingOption.h
  158. WebRange.h
  159. WebRuntimeFeatures.h
  160. WebScopedMicrotaskSuppression.h
  161. WebScopedUserGesture.h
  162. WebScreenInfo.h
  163. WebScriptController.h
  164. WebScriptSource.h
  165. WebSearchableFormData.h
  166. WebSecurityOrigin.h
  167. WebSecurityPolicy.h
  168. WebSelectElement.h
  169. WebSerializedScriptValue.h
  170. WebSettings.h
  171. WebSharedWorker.h
  172. WebSharedWorkerClient.h
  173. WebSharedWorkerRepository.h
  174. WebSocket.h
  175. WebSocketClient.h
  176. WebSourceBuffer.h
  177. WebSpeechGrammar.h
  178. WebSpeechInputController.h
  179. WebSpeechInputListener.h
  180. WebSpeechInputResult.h
  181. WebSpeechRecognitionHandle.h
  182. WebSpeechRecognitionParams.h
  183. WebSpeechRecognitionResult.h
  184. WebSpeechRecognizer.h
  185. WebSpeechRecognizerClient.h
  186. WebSpellCheckClient.h
  187. WebStorageEventDispatcher.h
  188. WebStorageNamespace.h
  189. WebStorageQuotaCallbacks.h
  190. WebStorageQuotaError.h
  191. WebStorageQuotaType.h
  192. WebSurroundingText.h
  193. WebTestingSupport.h
  194. WebTextAffinity.h
  195. WebTextCheckingCompletion.h
  196. WebTextCheckingResult.h
  197. WebTextCheckingType.h
  198. WebTextDirection.h
  199. WebTextFieldDecoratorClient.h
  200. WebTextInputInfo.h
  201. WebTextInputType.h
  202. WebTextRun.h
  203. WebTimeRange.h
  204. WebTouchPoint.h
  205. WebURLLoaderOptions.h
  206. WebUserGestureIndicator.h
  207. WebUserGestureToken.h
  208. WebUserMediaClient.h
  209. WebUserMediaRequest.h
  210. WebView.h
  211. WebViewBenchmarkSupport.h
  212. WebViewClient.h
  213. WebWidget.h
  214. WebWidgetClient.h
  215. WebWindowFeatures.h
  216. WebWorkerInfo.h