2013-06-03 Mark Lam Merged from http://svn.webkit.org/repository/webkit/trunk ------------------------------------------------------------------------ r148119 | ggaren@apple.com | 2013-04-10 11:51:47 -0700 (Wed, 10 Apr 2013) | 106 lines Removed bitrotted TimeoutChecker code https://bugs.webkit.org/show_bug.cgi?id=114336 ------------------------------------------------------------------------ 2013-05-05 Geoffrey Garen Rolled back in r149527 with crash fixed. Reviewed by Oliver Hunt. Rationalized 'this' value conversion https://bugs.webkit.org/show_bug.cgi?id=115542 2013-05-03 Geoffrey Garen Rolled out r149527 because it caused a crash. Rationalized 'this' value conversion https://bugs.webkit.org/show_bug.cgi?id=115542 2013-05-03 Geoffrey Garen Rationalized 'this' value conversion https://bugs.webkit.org/show_bug.cgi?id=115542 Reviewed by Filip Pizlo. Updated to match JSC requirement that the callee performs 'this' value conversion. * Plugins/Hosted/NetscapePluginInstanceProxy.mm: (WebKit::NetscapePluginInstanceProxy::invoke): (WebKit::NetscapePluginInstanceProxy::invokeDefault): 2013-04-18 Geoffrey Garen Cherry-pick merged to the FTL branch, to ease merging back later. NOTE: Please skip this patch when merging from the FTL branch back to trunk. Reviewed by Phil Pizlo. 2013-03-19 Ryosuke Niwa Another Mac build fix attempt after r146239. * WebCoreSupport/WebFrameNetworkingContext.h: (WebFrameNetworkingContext): 2013-03-19 Ryosuke Niwa Mac build fix attempt after r146239. * WebCoreSupport/WebFrameNetworkingContext.h: 2013-03-19 Sergey Ryazanov Web Inspector: split Console into two entities, a web-facing bound object and page console. https://bugs.webkit.org/show_bug.cgi?id=111578 Reviewed by Vsevolod Vlasov. Otherwise, a lot of logging in WebCore needs to go through the DOMWindow which is unnecessary. * Misc/WebCoreStatistics.mm: (+[WebCoreStatistics shouldPrintExceptions]): (+[WebCoreStatistics setShouldPrintExceptions:]): 2013-03-17 Adam Barth Legacy CSS vendor prefixes should only work for Dashboard https://bugs.webkit.org/show_bug.cgi?id=111890 Reviewed by Eric Seidel. Enable legacy CSS vendor prefixes when we've been asked to turn on Dashboard compatibility mode. * WebView/WebView.mm: (-[WebView _setDashboardBehavior:to:]): 2013-03-16 Pratik Solanki Disable High DPI Canvas on iOS https://bugs.webkit.org/show_bug.cgi?id=112511 Reviewed by Joseph Pecoraro. * Configurations/FeatureDefines.xcconfig: 2013-03-15 Timothy Hatcher Disable suppressesIncrementalRendering for the Web Inspector. This ends up causing the Inspector to show blank for a couple seconds before it does its first paint. During that time the bare window chrome is showing when the Inspector's background and other simple elements count be painting. This causes the Inspector to look like it is loading slower than reality. https://bugs.webkit.org/show_bug.cgi?id=112300 rdar://problem/13412219 Reviewed by Geoff Garen. * WebCoreSupport/WebInspectorClient.mm: (-[WebInspectorWindowController init]): Disable suppressesIncrementalRendering. 2013-03-15 Nate Chapin Hide MainResourceLoader from the outside world https://bugs.webkit.org/show_bug.cgi?id=109971 Reviewed by Adam Barth. * WebCoreSupport/WebFrameLoaderClient.h: (WebFrameLoaderClient): * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::convertMainResourceLoadToDownload): 2013-03-15 Abhishek Arya Replace static_casts with to* helper functions. https://bugs.webkit.org/show_bug.cgi?id=112401 Reviewed by Stephen Chenney. to* helper functions are preferred over static_cast calls since they help to catch bad casts easily on the testing infrastructure. * WebView/WebRenderNode.mm: (copyRenderNode): * WebView/WebView.mm: (-[WebView _addScrollerDashboardRegionsForFrameView:dashboardRegions:]): 2013-03-14 Manuel Rego Casasnovas Add selectTrailingWhitespaceEnabled setting to WebCore::Page https://bugs.webkit.org/show_bug.cgi?id=109404 Reviewed by Tony Chang. Use new settings for smartInsertDeleteEnabled and selectTrailingWhitespaceEnabled. * WebCoreSupport/WebEditorClient.mm: (WebEditorClient::smartInsertDeleteEnabled): (WebEditorClient::isSelectTrailingWhitespaceEnabled): * WebView/WebView.mm: (-[WebView _commonInitializationWithFrameName:groupName:]): Initialize settings from NSUserDefaults. (-[WebView setSelectTrailingWhitespaceEnabled:]): (-[WebView isSelectTrailingWhitespaceEnabled]): (-[WebView setSmartInsertDeleteEnabled:]): (-[WebView smartInsertDeleteEnabled]): * WebView/WebViewData.h: * WebView/WebViewData.mm: (-[WebViewPrivate init]): 2013-03-14 Abhishek Arya Replace static_casts with to* helper functions. https://bugs.webkit.org/show_bug.cgi?id=112296 Reviewed by Kentaro Hara. to* helper functions are preferred over static_cast calls since they help to catch bad casts easily on the testing infrastructure. * WebCoreSupport/WebFrameLoaderClient.mm: (applyAppleDictionaryApplicationQuirkNonInlinePart): * WebView/WebHTMLRepresentation.mm: (searchForLabelsBeforeElement): 2013-03-14 Alice Liu Add to HistoryItem a way to know if its underlying CachedPage has expired. https://bugs.webkit.org/show_bug.cgi?id=110652 Reviewed by Brady Eidson. * History/WebHistoryItem.mm: (-[WebHistoryItem _isInPageCache]): Added. Just calls and returns core imple's function. (-[WebHistoryItem _hasCachedPageExpired]): Same thing. * History/WebHistoryItemPrivate.h: * WebView/WebPreferences.mm: (-[WebPreferences _backForwardCacheExpirationInterval]): Address fixme, now that WebCore::Settings has getters and setters with default value. * WebView/WebView.mm: (-[WebView _preferencesChanged:]): call setBackForwardCacheExpirationInterval similar to other settings. 2013-03-13 Rik Cabanier create runtime flags for CSS Compositing https://bugs.webkit.org/show_bug.cgi?id=111818 Reviewed by Ryosuke Niwa. Added a preference to enable CSS compositing. * WebView/WebPreferenceKeysPrivate.h: * WebView/WebPreferences.mm: (+[WebPreferences initialize]): (-[WebPreferences cssCompositingEnabled]): (-[WebPreferences setCSSCompositingEnabled:]): * WebView/WebPreferencesPrivate.h: * WebView/WebView.mm: (-[WebView _preferencesChanged:]): 2013-03-13 Ryosuke Niwa Threaded HTML Parser is missing feature define flags in all but Chromium port's build files https://bugs.webkit.org/show_bug.cgi?id=112277 Reviewed by Adam Barth. * Configurations/FeatureDefines.xcconfig: 2013-03-13 Pavel Feldman Web Inspector: get rid of hiddenPanels filter https://bugs.webkit.org/show_bug.cgi?id=112252 Reviewed by Vsevolod Vlasov. * WebCoreSupport/WebInspectorClient.h: (WebInspectorFrontendClient): * WebCoreSupport/WebInspectorClient.mm: * WebKit.order: 2013-03-12 Geoffrey Garen Moved RunLoopTimer and SchedulePair to WTF https://bugs.webkit.org/show_bug.cgi?id=112171 Reviewed by Oliver Hunt. This will allow us to use timers in lower level primitives without duplicating all the code. * WebCoreSupport/WebFrameNetworkingContext.h: (WebFrameNetworkingContext): 2013-03-12 Abhishek Arya Replace static_casts with to* functions. https://bugs.webkit.org/show_bug.cgi?id=112072 Reviewed by Philip Rogers. to* functions are preferred over static_cast calls since they help to catch bad casts easily on the testing infrastructure. * WebView/WebView.mm: (-[WebView _enterFullscreenForNode:WebCore::]): 2013-03-11 Sheriff Bot Unreviewed, rolling out r145462. http://trac.webkit.org/changeset/145462 https://bugs.webkit.org/show_bug.cgi?id=112097 Compilation failure in PluginView.cpp (Requested by jamesr_ on #webkit). * WebView/WebView.mm: (-[WebView _enterFullscreenForNode:WebCore::]): 2013-03-11 Abhishek Arya Replace static_casts with to* functions. https://bugs.webkit.org/show_bug.cgi?id=112072 Reviewed by Philip Rogers. to* functions are preferred over static_cast calls since they help to catch bad casts easily on the testing infrastructure. * WebView/WebView.mm: (-[WebView _enterFullscreenForNode:WebCore::]): 2013-03-11 Jochen Eisinger Rename DefinitelyProcessingUserGesture to DefinitelyProcessingNewUserGesture https://bugs.webkit.org/show_bug.cgi?id=111959 Reviewed by Alexey Proskuryakov. * Plugins/Hosted/NetscapePluginInstanceProxy.mm: (WebKit::NetscapePluginInstanceProxy::evaluate): * Plugins/WebNetscapePluginView.mm: (-[WebNetscapePluginView sendEvent:isDrawRect:]): 2013-03-11 Abhishek Arya Replace static_cast with to* helper functions. https://bugs.webkit.org/show_bug.cgi?id=112045 Reviewed by Eric Seidel. * WebView/WebRenderLayer.mm: (+[WebRenderLayer nameForLayer:]): 2013-03-11 Jer Noble Unreviewed build fix. Remove stray brace which crept into r145409. * WebView/WebFullScreenController.mm: (-[WebFullScreenController performClose:]): 2013-01-30 Jer Noble Mac: Cmd-w should close full screen window. https://bugs.webkit.org/show_bug.cgi?id=108406 Reviewed by Darin Adler. Allow the user to close the full screen window with Cmd-w by making the full screen window closable, and by intercepting performClose:. * WebView/WebFullScreenController.mm: (-[WebFullScreenController init]): Create a closable full screen window. (-[WebFullScreenController performClose:]): When we receive a close request in full screen mode, animate out of full screen. 2013-03-07 Anders Carlsson Add didFocusTextField:inFrame to WebFormDelegate https://bugs.webkit.org/show_bug.cgi?id=111804 Reviewed by Dan Bernstein. * WebCoreSupport/WebChromeClient.mm: (WebChromeClient::focusedNodeChanged): * WebView/WebFormDelegate.h: * WebView/WebFormDelegate.m: (-[WebFormDelegate didFocusTextField:inFrame:]): 2013-03-04 Jer Noble Default mouse cursor behavior should be auto-hide for full screen video with custom controls https://bugs.webkit.org/show_bug.cgi?id=107601 Reviewed by Beth Dakin. Enable the CURSOR_VISIBILITY feature. * Configurations/FeatureDefines.xcconfig: 2013-03-05 Geoffrey Garen Removed some dead code in the page cache https://bugs.webkit.org/show_bug.cgi?id=111525 Reviewed by Alexey Proskuryakov. Page cache autorelease doesn't exist anymore, so there's no need to keep around these olds hacks. This fixes Fix bizarre WebWindowWatcher policy in WebHistoryItem. * History/WebHistoryItem.mm: (+[WebHistoryItem _releaseAllPendingPageCaches]): * History/WebHistoryItemInternal.h: * Misc/WebCoreStatistics.mm: (+[WebCoreStatistics autoreleasedPageCount]): * WebView/WebView.mm: (-[WebView _commonInitializationWithFrameName:groupName:]): 2013-03-06 Dmitry Zvorygin Introduce new message sources for logging. https://bugs.webkit.org/show_bug.cgi?id=110968 Reviewed by Pavel Feldman. * WebCoreSupport/WebChromeClient.mm: * WebView/WebUIDelegatePrivate.h: 2013-03-05 Kent Tamura Rename WebCore/editing/visible_units.* to VisibleUnits.* https://bugs.webkit.org/show_bug.cgi?id=111426 Reviewed by Alexey Proskuryakov. * WebView/WebFrame.mm: 2013-03-05 James Robinson ContainerNode::setActive should not sleep for 100ms on platforms that do not implement synchronous repaint(true) semantics https://bugs.webkit.org/show_bug.cgi?id=87054 Reviewed by Darin Adler. The Mac WebKit1 port supports immediate invalidations. * WebCoreSupport/WebChromeClient.h: (WebChromeClient): * WebCoreSupport/WebChromeClient.mm: (WebChromeClient::supportsImmediateInvalidation): 2013-03-05 David Kilzer BUILD FIX (r144698): Only enable SPEECH_SYNTHESIS for Mac Fixes the following build failures: Undefined symbols for architecture i386: "__ZTVN7WebCore25PlatformSpeechSynthesizerE", referenced from: __ZN7WebCore25PlatformSpeechSynthesizerC2EPNS_31PlatformSpeechSynthesizerClientE in PlatformSpeechSynthesizer.o NOTE: a missing vtable usually means the first non-inline virtual member function has no definition. "__ZN7WebCore25PlatformSpeechSynthesizer19initializeVoiceListEv", referenced from: __ZN7WebCore25PlatformSpeechSynthesizerC2EPNS_31PlatformSpeechSynthesizerClientE in PlatformSpeechSynthesizer.o ld: symbol(s) not found for architecture i386 * Configurations/FeatureDefines.xcconfig: - Only set ENABLE_SPEECH_SYNTHESIS for the macosx platform. 2013-03-04 David Kilzer BUILD FIX (r144662): Import JSBase.h in WebFrameLoadDelegate.h Fixes the following build failure: In file included from Source/WebKit/ios/DefaultDelegates/WebDefaultFrameLoadDelegate.m:11: In file included from Source/WebKit/mac/WebView/WebFrameLoadDelegatePrivate.h:29: Source/WebKit/mac/WebView/WebFrameLoadDelegate.h:41:5: error: 'JSC_OBJC_API_ENABLED' is not defined, evaluates to 0 [-Werror,-Wundef] #if JSC_OBJC_API_ENABLED ^ Source/WebKit/mac/WebView/WebFrameLoadDelegate.h:207:5: error: 'JSC_OBJC_API_ENABLED' is not defined, evaluates to 0 [-Werror,-Wundef] #if JSC_OBJC_API_ENABLED ^ 2 errors generated. * WebView/WebFrameLoadDelegate.h: Include JSBase.h. 2013-03-04 Chris Fleizach Support WebSpeech - Speech Synthesis https://bugs.webkit.org/show_bug.cgi?id=106742 Reviewed by Simon Fraser. Enable speech synthesis for the Mac. * Configurations/FeatureDefines.xcconfig: 2013-03-04 Mark Hahnenberg Remove contextInternalContext from JSContextInternal.h https://bugs.webkit.org/show_bug.cgi?id=111356 Reviewed by Geoffrey Garen. We don't need it any more since we have globalContextRef in JSContext. * WebView/WebScriptWorld.mm: (+[WebScriptWorld scriptWorldForJavaScriptContext:]): 2013-03-04 Laszlo Gombos JSC_OBJC_API_ENABLED should be removed from FeatureDefines.h https://bugs.webkit.org/show_bug.cgi?id=111269 Reviewed by Mark Hahnenberg. Include JavaScriptCore/JSBase.h for the definition of JSC_OBJC_API_ENABLED. * WebView/WebDelegateImplementationCaching.h: 2013-03-04 Kunihiko Sakamoto Add build flag for FontLoader https://bugs.webkit.org/show_bug.cgi?id=111289 Reviewed by Benjamin Poulain. Add ENABLE_FONT_LOAD_EVENTS build flag (disabled by default). * Configurations/FeatureDefines.xcconfig: 2013-03-03 Benjamin Poulain [Mac] Get rid of a useless method from DOMHTMLInputElement https://bugs.webkit.org/show_bug.cgi?id=111279 Reviewed by Sam Weinig. * DOM/WebDOMOperations.mm: * DOM/WebDOMOperationsPrivate.h: setValueForUser: is already privately exposed by DOMHTMLInputElement, no need to have it twice. 2013-03-03 Adam Barth Unreviewed attempted build fix. Adds back some includes removed in http://trac.webkit.org/changeset/144565. * DOM/WebDOMOperations.mm: * Misc/WebNSPasteboardExtras.mm: * WebCoreSupport/WebFrameNetworkingContext.mm: * WebView/WebRenderLayer.mm: * WebView/WebRenderNode.mm: 2013-03-03 Adam Barth Unreviewed rollout of http://trac.webkit.org/r144530 As described in https://bugs.webkit.org/show_bug.cgi?id=111167 and https://bugs.webkit.org/show_bug.cgi?id=111035, this patch caused a large number of ASSERTs in chromium-win. * DOM/WebDOMOperations.mm: * Misc/WebNSPasteboardExtras.mm: * WebCoreSupport/WebFrameNetworkingContext.mm: * WebView/WebRenderLayer.mm: * WebView/WebRenderNode.mm: 2013-02-18 Darin Adler Cut down the number of source files that depend on Clipboard.h https://bugs.webkit.org/show_bug.cgi?id=110030 Reviewed by Ryosuke Niwa. * WebView/WebPDFView.mm: Add include of Clipboard.h since we use it here and the world no longer includes it everywhere. 2013-03-02 Benjamin Poulain Move computedStyleIncludingVisitedInfo from TestRunner to Internals https://bugs.webkit.org/show_bug.cgi?id=109772 Reviewed by Andreas Kling. * WebView/WebView.mm: * WebView/WebViewPrivate.h: 2013-03-02 David Kilzer BUILD FIX (r143637): Predeclare JSContext as an Objective-C class Fixes the following build failure: In file included from Source/WebKit/ios/DefaultDelegates/WebDefaultFrameLoadDelegate.m:11: In file included from Source/WebKit/mac/WebView/WebFrameLoadDelegatePrivate.h:29: Source/WebKit/mac/WebView/WebFrameLoadDelegate.h:215:64: error: expected a type - (void)webView:(WebView *)webView didCreateJavaScriptContext:(JSContext *)context forFrame:(WebFrame *)frame; ^ 1 error generated. * WebView/WebFrameLoadDelegate.h: Add @class JSContext declaration. 2013-02-28 Alexey Proskuryakov Reduce amount of rebuilding when touching networking headers https://bugs.webkit.org/show_bug.cgi?id=111035 Reviewed by Eric Seidel. Adding includes that are now necessary because WebCore headers don't have them any more. * DOM/WebDOMOperations.mm: * Misc/WebNSPasteboardExtras.mm: * WebCoreSupport/WebFrameNetworkingContext.mm: * WebView/WebRenderLayer.mm: * WebView/WebRenderNode.mm: 2013-03-01 Jason Anderssen Move markerTextForListItem from TestRunner to Internals https://bugs.webkit.org/show_bug.cgi?id=110939 Reviewed by Benjamin Poulain. * DOM/WebDOMOperations.mm: * DOM/WebDOMOperationsPrivate.h: 2013-02-28 Sam Weinig Add SPI for marking a WebView as doing things on behalf of another process https://bugs.webkit.org/show_bug.cgi?id=111125 Reviewed by Alexey Proskuryakov. * WebCoreSupport/WebFrameNetworkingContext.h: (WebFrameNetworkingContext): * WebCoreSupport/WebFrameNetworkingContext.mm: (WebFrameNetworkingContext::sourceApplicationAuditData): * WebView/WebView.mm: (-[WebView _setSourceApplicationAuditData:]): (-[WebView _sourceApplicationAuditData]): * WebView/WebViewData.h: * WebView/WebViewData.mm: (-[WebViewPrivate dealloc]): * WebView/WebViewPrivate.h: Add SPI for setting a source application for a WebView. 2013-03-01 Sheriff Bot Unreviewed, rolling out r144422 and r144424. http://trac.webkit.org/changeset/144422 http://trac.webkit.org/changeset/144424 https://bugs.webkit.org/show_bug.cgi?id=111167 Caused over 20 tests to fail assertion on Chromium Win port as ASSERTION FAILED: m_platformRequestUpdated (Requested by toyoshim on #webkit). * DOM/WebDOMOperations.mm: * Misc/WebNSPasteboardExtras.mm: * WebCoreSupport/WebFrameNetworkingContext.mm: * WebView/WebRenderLayer.mm: * WebView/WebRenderNode.mm: 2013-02-28 Alexey Proskuryakov Reduce amount of rebuilding when touching networking headers https://bugs.webkit.org/show_bug.cgi?id=111035 Reviewed by Eric Seidel. Adding includes that are now necessary because WebCore headers don't have them any more. * DOM/WebDOMOperations.mm: * Misc/WebNSPasteboardExtras.mm: * WebCoreSupport/WebFrameNetworkingContext.mm: * WebView/WebRenderLayer.mm: * WebView/WebRenderNode.mm: 2013-02-27 John Bauman Plugin in iframe may not display https://bugs.webkit.org/show_bug.cgi?id=109879 Reviewed by Simon Fraser. Ensure NetscapePluginWidget informs the plugin view of the cliprect change directly. * Plugins/WebBaseNetscapePluginView.h: * WebCoreSupport/WebFrameLoaderClient.mm: (NetscapePluginWidget::clipRectChanged): 2013-02-26 Alexey Proskuryakov Don't add a body to platform request until necessary https://bugs.webkit.org/show_bug.cgi?id=110900 Reviewed by Brady Eidson. WebKit1 behavior is unchanged, body is added on every conversion. * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::convertMainResourceLoadToDownload): (WebFrameLoaderClient::dispatchDidLoadResourceFromMemoryCache): (WebFrameLoaderClient::assignIdentifierToInitialRequest): (WebFrameLoaderClient::dispatchWillSendRequest): (WebFrameLoaderClient::dispatchDecidePolicyForResponse): (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction): (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction): (WebFrameLoaderClient::updateGlobalHistory): (WebFrameLoaderClient::canHandleRequest): * WebView/WebDataSource.mm: (-[WebDataSource initialRequest]): (-[WebDataSource request]): * WebView/WebFrame.mm: (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]): 2013-02-27 Glenn Adams Add ENABLE_CSS3_TEXT_LINE_BREAK flag. https://bugs.webkit.org/show_bug.cgi?id=110944 Reviewed by Dean Jackson. * Configurations/FeatureDefines.xcconfig: 2013-02-26 Jer Noble Unreviewed build fix; use correct macro for platform name in FeatureDefines.xcconfig. * Configurations/FeatureDefines.xcconfig: 2013-02-26 Dmitry Zvorygin Merged Tip and Debug log levels for web console. https://bugs.webkit.org/show_bug.cgi?id=109919 Reviewed by Pavel Feldman. In every component either TIP or DEBUG level was used for reporting, but not both. This patch is prerequisite for Web Inspector console log filtering. * WebCoreSupport/WebChromeClient.mm: (stringForMessageLevel): * WebView/WebUIDelegatePrivate.h: 2013-02-21 Jeffrey Pfau Optionally partition cache to prevent using cache for tracking https://bugs.webkit.org/show_bug.cgi?id=110269 Reviewed by Maciej Stachowiak. Update WKSI bindings and add feature defines. * Configurations/FeatureDefines.xcconfig: Add defines for cache partitioning and public suffix list usage * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): 2013-02-25 Jer Noble Normalize ENABLE_ENCRYPTED_MEDIA definitions across all FeatureDefines files. https://bugs.webkit.org/show_bug.cgi?id=110806 Reviewed by Alexey Proskuryakov. Ensure both ENCRYPTED_MEDIA and ENCRYPTED_MEDIA_V2 are enabled on macosx_1090. * Configurations/FeatureDefines.xcconfig: 2013-02-25 Andreas Kling Reduce amount of code that includes StylePropertySet.h Reviewed by Antti Koivisto. * WebCoreSupport/WebEditorClient.mm: * WebView/WebFrame.mm: * WebView/WebView.mm: 2013-02-24 Andreas Kling Reduce include graph of JSDOMBinding.h Reviewed by Antti Koivisto. * WebView/WebHTMLView.mm: 2013-02-21 Grzegorz Czajkowski Allow to retrieve the request data from abstract TextCheckingRequest to be accessible for WK2 https://bugs.webkit.org/show_bug.cgi?id=110208 Reviewed by Hajime Morrita. * WebCoreSupport/WebEditorClient.mm: (WebEditorClient::didCheckSucceed): (WebEditorClient::requestCheckingOfString): Extract the request data as it is the member of 'TextCheckingRequest'. 2013-02-19 Mark Hahnenberg Objective-C API: Need a way to use the Objective-C JavaScript API with WebKit https://bugs.webkit.org/show_bug.cgi?id=106059 Reviewed by Geoffrey Garen. Addition of appropriate delegate callbacks and support to the WebKit API. * WebCoreSupport/WebFrameLoaderClient.mm: * WebView/WebDelegateImplementationCaching.h: (WebFrameLoadDelegateImplementationCache): * WebView/WebFrame.h: * WebView/WebFrame.mm: (-[WebFrame _stringByEvaluatingJavaScriptFromString:forceUserGesture:]): (-[WebFrame _stringByEvaluatingJavaScriptFromString:withGlobalObject:inScriptWorld:]): (-[WebFrame _javaScriptContextForScriptWorld:]): (-[WebFrame javaScriptContext]): * WebView/WebFrameLoadDelegate.h: * WebView/WebFramePrivate.h: * WebView/WebScriptDebugDelegate.mm: (-[WebScriptCallFrame _convertValueToObjcValue:JSC::]): (-[WebScriptCallFrame exception]): (-[WebScriptCallFrame evaluateWebScript:]): * WebView/WebScriptWorld.h: * WebView/WebScriptWorld.mm: (+[WebScriptWorld scriptWorldForJavaScriptContext:]): * WebView/WebView.mm: (-[WebView _cacheFrameLoadDelegateImplementations]): (aeDescFromJSValue): (-[WebView aeDescByEvaluatingJavaScriptFromString:]): (-[WebView _computedStyleIncludingVisitedInfo:forElement:]): 2013-02-20 Dirk Schulze Enable CANVAS_PATH flag https://bugs.webkit.org/show_bug.cgi?id=108508 Reviewed by Simon Fraser. Enable CANVAS_PATH flag on trunk. * Configurations/FeatureDefines.xcconfig: 2013-02-19 Tim Horton Clarify isInWindow vs. isVisible path through to RenderLayerCompositor https://bugs.webkit.org/show_bug.cgi?id=110261 Reviewed by Simon Fraser. * WebView/WebView.mm: (-[WebView viewWillMoveToWindow:]): (-[WebView viewDidMoveToWindow]): Use Page::setIsInWindow in addition to willMoveOffscreen/didMoveOnscreen. 2013-02-18 Anders Carlsson Add a DefaultHash for RefPtr https://bugs.webkit.org/show_bug.cgi?id=110170 Reviewed by Andreas Kling. Remove all explicit uses of SecurityOriginHash. * WebCoreSupport/WebApplicationCache.mm: (+[WebApplicationCache originsWithCache]): 2013-02-15 Eric Carlson [Mac] remove wkCaptionAppearance from WebKitSystemInterface https://bugs.webkit.org/show_bug.cgi?id=109996 Reviewed by Simon Fraser. * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): 2013-02-15 Sheriff Bot Unreviewed, rolling out r143088. http://trac.webkit.org/changeset/143088 https://bugs.webkit.org/show_bug.cgi?id=110000 Breaks the build (Requested by dgorbik on #webkit). * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): 2013-02-15 Eric Carlson [Mac] remove wkCaptionAppearance from WebKitSystemInterface https://bugs.webkit.org/show_bug.cgi?id=109996 Reviewed by Simon Fraser. * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): 2013-02-15 Allan Sandfeld Jensen Simplify hitTestResultAtPoint and nodesFromRect APIs https://bugs.webkit.org/show_bug.cgi?id=95720 Reviewed by Julien Chaffraix. Update calls to new API. * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::actionDictionary): * WebView/WebFrame.mm: (-[WebFrame elementAtPoint:]): * WebView/WebHTMLView.mm: (-[WebHTMLView elementAtPoint:allowShadowContent:]): 2013-02-14 David Kilzer [Mac] Clean up WARNING_CFLAGS Reviewed by Mark Rowe. * Configurations/Base.xcconfig: Use GCC_WARN_64_TO_32_BIT_CONVERSION to enable and disable -Wshorten-64-to-32 rather than WARNING_CFLAGS. 2013-02-13 Zan Dobersek The 'global isinf/isnan' compiler quirk required when using clang with libstdc++ https://bugs.webkit.org/show_bug.cgi?id=109325 Reviewed by Anders Carlsson. Prefix calls to the isinf and isnan methods with std::, declaring we want to use the two methods as they're provided by the C++ standard library being used. * tests/DecimalTest.cpp: (TEST_F): 2013-02-12 Joseph Pecoraro [iOS] Enable PAGE_VISIBILITY_API https://bugs.webkit.org/show_bug.cgi?id=109399 Reviewed by David Kilzer. * Configurations/FeatureDefines.xcconfig: 2013-02-12 David Kilzer BUILD FIX (r142576): WK1 build fails when ENABLE(DELETION_UI) is off Fixes the following build failure: WebEditorClient.mm:243:23: error: out-of-line definition of 'shouldShowDeleteInterface' does not match any declaration in 'WebEditorClient' bool WebEditorClient::shouldShowDeleteInterface(HTMLElement* element) ^~~~~~~~~~~~~~~~~~~~~~~~~ * WebCoreSupport/WebEditorClient.mm: (WebEditorClient::shouldShowDeleteInterface): Protect with ENABLE(DELETION_UI) macro. 2013-02-11 Ryosuke Niwa Disable delete button controller on non-Mac ports and delete EditorClient::shouldShowDeleteInterface https://bugs.webkit.org/show_bug.cgi?id=109534 Reviewed by Anders Carlsson. * WebCoreSupport/WebEditorClient.h: 2013-02-11 Benjamin Poulain Kill TestRunner::setMinimumTimerInterval; implement the feature with InternalSettings https://bugs.webkit.org/show_bug.cgi?id=109349 Reviewed by Sam Weinig. * WebView/WebView.mm: * WebView/WebViewPrivate.h: 2013-02-10 Dan Bernstein Added *.pdf to EXCLUDED_SOURCE_FILE_NAMES_iphoneos. Rubber-stamped by Anders Carlsson. * Configurations/WebKit.xcconfig: 2013-02-10 Jae Hyun Park Rename ENABLE(GLIB_SUPPORT) to USE(GLIB) https://bugs.webkit.org/show_bug.cgi?id=104266 Reviewed by Philippe Normand. Using USE(GLIB) instead of ENABLE(GLIB_SUPPORT) is more consistent with the existing macro naming conventions. From Platform.h USE() - use a particular third-party library or optional OS service ENABLE() - turn on a specific feature of WebKit * WebView/WebView.mm: (-[WebView _commonInitializationWithFrameName:groupName:]): (-[WebView _close]): * WebView/WebViewData.h: * WebView/WebViewInternal.h: 2013-02-08 Benjamin Poulain Move workerThreadCount from TestRunner to WebCore Internals https://bugs.webkit.org/show_bug.cgi?id=109239 Reviewed by Darin Adler. Get rid of WebWorkersPrivate, which was only needed for DRT. * WebKit.exp: * Workers/WebWorkersPrivate.h: Removed. * Workers/WebWorkersPrivate.mm: Removed. 2013-02-07 Sheriff Bot Unreviewed, rolling out r142212. http://trac.webkit.org/changeset/142212 https://bugs.webkit.org/show_bug.cgi?id=109255 Causes ASSERT(!m_installed) on launch (Requested by smfr on #webkit). * WebView/WebView.mm: (-[WebView _commonInitializationWithFrameName:groupName:]): (WebInstallMemoryPressureHandler): 2013-02-06 Gavin Barraclough PluginProcess should quit immediately if idle in response to low-memory notifications https://bugs.webkit.org/show_bug.cgi?id=109103 Reviewed by Darin Adler. * WebView/WebView.mm: (-[WebView _commonInitializationWithFrameName:groupName:]): - MemoryPressureHandler::install is now called via MemoryPressureHandler::initialize. (WebInstallMemoryPressureHandler): - MemoryPressureHandler::install is now called via MemoryPressureHandler::initialize. 2013-02-07 Benjamin Poulain Move pauseAnimation/pauseTransition from TestRunner to Internals https://bugs.webkit.org/show_bug.cgi?id=109107 Reviewed by Anders Carlsson. * WebView/WebFrame.mm: * WebView/WebFramePrivate.h: 2013-02-06 Mike West Add an ENABLE_NOSNIFF feature flag. https://bugs.webkit.org/show_bug.cgi?id=109029 Reviewed by Jochen Eisinger. This new flag will control the behavior of 'X-Content-Type-Options: nosniff' when processing script and other resource types. * Configurations/FeatureDefines.xcconfig: 2013-02-04 Benjamin Poulain Kill suspendAnimation(), resumeAnimation() and numberOfActiveAnimations() from DRT/WTR; use Internals https://bugs.webkit.org/show_bug.cgi?id=108741 Reviewed by Tony Chang. * WebView/WebFrame.mm: * WebView/WebFramePrivate.h: 2013-02-04 Enrica Casucci Add specific EditActions for Bold and Italic commands. https://bugs.webkit.org/show_bug.cgi?id=108842. Reviewed by Ryosuke Niwa. * WebCoreSupport/WebEditorClient.mm: (undoNameForEditAction): 2013-02-03 David Kilzer Upstream ENABLE_PDFKIT_PLUGIN settting Reviewed by Tim Horton. * Configurations/FeatureDefines.xcconfig: Disable PDFKIT_PLUGIN on iOS since PDFKit is a Mac-only framework. 2013-02-02 David Kilzer Upstream iOS FeatureDefines Reviewed by Anders Carlsson. * Configurations/FeatureDefines.xcconfig: - ENABLE_DEVICE_ORIENTATION: Add iOS configurations. - ENABLE_PLUGIN_PROXY_FOR_VIDEO: Ditto. - FEATURE_DEFINES: Add ENABLE_PLUGIN_PROXY_FOR_VIDEO. Add PLATFORM_NAME variant to reduce future merge conflicts. 2013-02-01 Alexis Menard Enable unprefixed CSS transitions by default. https://bugs.webkit.org/show_bug.cgi?id=108216 Reviewed by Dean Jackson. Rename the flag CSS_TRANSFORMS_ANIMATIONS_TRANSITIONS_UNPREFIXED to CSS_TRANSFORMS_ANIMATIONS_UNPREFIXED which will be used later to guard the unprefixing work for CSS Transforms and animations. * Configurations/FeatureDefines.xcconfig: 2013-01-31 Aurimas Liutikas Editor::m_compositionNode not updated on HTMLInputElement::setValue() https://bugs.webkit.org/show_bug.cgi?id=107737 Reviewed by Ryosuke Niwa. * WebView/WebHTMLView.mm: (-[WebHTMLView _updateSelectionForInputManager]): 2013-01-31 Sheriff Bot Unreviewed, rolling out r141479. http://trac.webkit.org/changeset/141479 https://bugs.webkit.org/show_bug.cgi?id=108564 breaks chromium test (Requested by morrita on #webkit). * WebView/WebHTMLView.mm: (-[WebHTMLView _updateSelectionForInputManager]): 2013-01-31 Enrica Casucci Mac: Editor::baseWritingDirectionForSelectionStart should return WritingDirection instead of NSWritingDirection. https://bugs.webkit.org/show_bug.cgi?id=108519. Reviewed by Sam Weinig. There is no need to use AppKit types here. baseWritingDirectionForSelectionStart now returns WritingDirection and WebHTMLView toggleWritingDirection has been modified accordingly. * WebView/WebHTMLView.mm: (-[WebHTMLView toggleBaseWritingDirection:]): 2013-01-31 Aurimas Liutikas Editor::m_compositionNode not updated on HTMLInputElement::setValue() https://bugs.webkit.org/show_bug.cgi?id=107737 Reviewed by Ryosuke Niwa. * WebView/WebHTMLView.mm: (-[WebHTMLView _updateSelectionForInputManager]): 2013-01-31 Joseph Pecoraro Disable ENABLE_FULLSCREEN_API on iOS https://bugs.webkit.org/show_bug.cgi?id=108250 Reviewed by Benjamin Poulain. * Configurations/FeatureDefines.xcconfig: 2013-01-31 Enrica Casucci WebKit2: provide new bundle APIs to allow bundle clients to be notified of pasteboard access. https://bugs.webkit.org/show_bug.cgi?id=108396. Reviewed by Alexey Proskuryakov. Adds stub implementation for WebKit of the new EditorClient methods. * WebCoreSupport/WebEditorClient.h: * WebCoreSupport/WebEditorClient.mm: (WebEditorClient::willWriteSelectionToPasteboard): (WebEditorClient::getClientPasteboardDataForRange): 2013-01-31 Brady Eidson Lack of a log level string should not obliterate compiled in logging channel state. https://bugs.webkit.org/show_bug.cgi?id=108502 Reviewed by Alexey Proskuryakov and Sam Weinig. * Misc/WebKitLogging.m: If there's no log level string, leave the channel state alone. 2013-01-29 Sheriff Bot Unreviewed, rolling out r140983. http://trac.webkit.org/changeset/140983 https://bugs.webkit.org/show_bug.cgi?id=108277 Unfortunately, this API has one last client (Requested by abarth on #webkit). * Configurations/FeatureDefines.xcconfig: 2012-11-28 Jer Noble Allow clients to ask for the WebView/WKView placeholder view when in full screen mode. https://bugs.webkit.org/show_bug.cgi?id=103558 Reviewed by Benjamin Poulain. Clients may want to behave differently when their WebView/WKView has been swapped out by a placeholder view when in full screen mode. Add a simple accessor for the existing placeholder view to WebFullScreenController and WebView. * WebView/WebFullScreenController.h: * WebView/WebFullScreenController.mm: (-[WebFullScreenController webViewPlaceholder]): Added simple accessor. * WebView/WebView.mm: (-[WebView fullScreenPlaceholderView]): Added simple accessor. 2013-01-28 Pratik Solanki PLATFORM(IOS) should come before __MAC_OS_X_VERSION_MIN_REQUIRED https://bugs.webkit.org/show_bug.cgi?id=108101 Reviewed by Benjamin Poulain. Since iOS does not define __MAC_OS_X_VERSION_MIN_REQUIRED, any usage of __MAC_OS_X_VERSION_MIN_REQUIRED should be after a PLATFORM(IOS) check. * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): 2013-01-28 Joseph Pecoraro [Mac] Update PageVisibilityState when WebView is hidden / visible https://bugs.webkit.org/show_bug.cgi?id=107509 Reviewed by Sam Weinig. * WebView/WebView.mm: * WebView/WebViewPrivate.h: (-[WebView _commonInitializationWithFrameName:groupName:]): Set the initial visibility of the page. (-[WebView addWindowObserversForWindow:]): (-[WebView removeWindowObservers]): (-[WebView _isViewVisible]): (-[WebView _updateVisibilityState]): (-[WebView viewDidMoveToWindow]): (-[WebView _windowVisibilityChanged:]): Update visibility state in the same ways WK2 does. This involves listening for some new NSWindow delegates. 2013-01-28 Joseph Pecoraro Improve PageVisibility API with enums https://bugs.webkit.org/show_bug.cgi?id=107364 Reviewed by Sam Weinig. * WebView/WebView.mm: * WebView/WebViewPrivate.h: (core): (-[WebView _setVisibilityState:isInitialState:]): Switch the private API form int to a WebPageVisibilityState enum. 2013-01-28 Adam Barth Remove webkitNotifications.createHTMLNotification https://bugs.webkit.org/show_bug.cgi?id=107598 Reviewed by Benjamin Poulain. * Configurations/FeatureDefines.xcconfig: 2013-01-25 Andy Estes Wrap content filtering code in an object https://bugs.webkit.org/show_bug.cgi?id=107914 Reviewed by Alexey Proskuryakov. * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): Updated to reflect changes in WKSI. 2013-01-24 Dan Bernstein WebNavigationData does not distinguish between an empty title and a missing title https://bugs.webkit.org/show_bug.cgi?id=107917 Reviewed by Andy Estes. * WebCoreSupport/WebFrameLoaderClient.mm: (nilOrNSString): Added this helper function. (WebFrameLoaderClient::updateGlobalHistory): Initialize the WebNavigationData with a nil title, rather than the empty string, if the document does not have a title. 2013-01-24 Mark Hahnenberg Objective-C API: Rename JSValue.h/APIJSValue.h to JSCJSValue.h/JSValue.h https://bugs.webkit.org/show_bug.cgi?id=107327 Reviewed by Filip Pizlo. We're renaming these two files, so we have to replace the names everywhere. * DOM/WebDOMOperations.mm: * ForwardingHeaders/runtime/JSCJSValue.h: Copied from Source/WebKit/mac/ForwardingHeaders/runtime/JSValue.h. * ForwardingHeaders/runtime/JSValue.h: Removed. * WebView/WebFrame.mm: * WebView/WebView.mm: 2013-01-22 Anders Carlsson Use a platforom strategy for local storage https://bugs.webkit.org/show_bug.cgi?id=107600 Reviewed by Andreas Kling. Update for new storage strategy. * WebCoreSupport/WebPlatformStrategies.h: (WebPlatformStrategies): * WebCoreSupport/WebPlatformStrategies.mm: (WebPlatformStrategies::createStorageStrategy): 2013-01-21 Kentaro Hara Implement UIEvent constructor https://bugs.webkit.org/show_bug.cgi?id=107430 Reviewed by Adam Barth. Editor's draft: https://dvcs.w3.org/hg/d4e/raw-file/tip/source_respec.htm UIEvent constructor is implemented under a DOM4_EVENTS_CONSTRUCTOR flag, which is enabled on Safari and Chromium for now. * Configurations/FeatureDefines.xcconfig: 2013-01-22 Joseph Pecoraro [Mac] Enable Page Visibility (PAGE_VISIBILITY_API) https://bugs.webkit.org/show_bug.cgi?id=107230 Reviewed by David Kilzer. * Configurations/FeatureDefines.xcconfig: 2013-01-22 Tim Horton PDFPlugin: Build PDFPlugin everywhere, enable at runtime https://bugs.webkit.org/show_bug.cgi?id=107117 Reviewed by Alexey Proskuryakov. Since PDFLayerController SPI is all forward-declared, the plugin should build on all Mac platforms, and can be enabled at runtime. * Configurations/FeatureDefines.xcconfig: 2013-01-21 Dirk Schulze Add build flag for Canvas's Path object (disabled by default) https://bugs.webkit.org/show_bug.cgi?id=107473 Reviewed by Dean Jackson. * Configurations/FeatureDefines.xcconfig: 2013-01-17 Andy Estes Add a USE() macro for content filtering code https://bugs.webkit.org/show_bug.cgi?id=107098 Reviewed by Mark Rowe. * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): Use USE(CONTENT_FILTERING). 2013-01-19 Philip Rogers Merge SVGStylable into SVGStyledElement https://bugs.webkit.org/show_bug.cgi?id=106877 SVG2 changes element inheritance so all SVGElements are stylable. As a first-step towards a cleaner class hierarchy, this patch moves SVGStylable into SVGStyledElement. Reviewed by Dirk Schulze. * MigrateHeaders.make: 2013-01-18 Seokju Kwon Add explicit keyword to constructors in platform-specific InspectorClient https://bugs.webkit.org/show_bug.cgi?id=107255 Reviewed by Kentaro Hara. Add explicit keyword to constructors that take one argument in platform-specific implementation of InspectorClient. * WebCoreSupport/WebInspectorClient.h: (WebInspectorClient): 2013-01-15 Jer Noble Add a Setting to disable QTKit media engine. https://bugs.webkit.org/show_bug.cgi?id=106972 Reviewed by Eric Carlson. Add WebKit API to set QTKit enabled setting from user defaults. * WebView/WebPreferenceKeysPrivate.h: * WebView/WebPreferences.mm: (+[WebPreferences initialize]): Set WebCore settings based on user defaults. (-[WebPreferences setQTKitEnabled:]): Pass through to WebCore. (-[WebPreferences isQTKitEnabled]): Ditto. * WebView/WebPreferencesPrivate.h: * WebView/WebView.mm: (-[WebView _preferencesChanged:]): Synchronize WebKit/WebCore settings. 2013-01-15 Enrica Casucci Add a new set of WebKit2 APIs for text search and search results management. https://bugs.webkit.org/show_bug.cgi?id=106834. Reviewed by Simon Fraser. Adding new API to perform text search in WebKit2 without using the stock UI. The new interface provides all the information necessary to write a custom UI for search. Added new TextWebKitAPI test. * WebView/WebHTMLView.mm: (-[WebHTMLView countMatchesForText:inDOMRange:options:limit:markMatches:]): Modified to reflect the changes to Editor::countMatchesForText interface. 2013-01-10 Zan Dobersek Remove the ENABLE_ANIMATION_API feature define occurences https://bugs.webkit.org/show_bug.cgi?id=106544 Reviewed by Simon Fraser. The Animation API code was removed in r137243. The ENABLE_ANIMATION_API feature define handling still lingers in various build systems and configurations but is of no use, so it should be removed. * Configurations/FeatureDefines.xcconfig: 2013-01-08 Mark Lam Removed the need for the ProposedDatabase mechanism. https://bugs.webkit.org/show_bug.cgi?id=106292. Reviewed by Sam Weinig. * WebCoreSupport/WebChromeClient.h: * WebCoreSupport/WebChromeClient.mm: (WebChromeClient::exceededDatabaseQuota): 2013-01-07 Dan Bernstein [mac] WebKit1 clients can’t tell when a frame has been removed from the hierarchy https://bugs.webkit.org/show_bug.cgi?id=106261 Reviewed by Simon Fraser. Test: TestWebKitAPI/Tests/mac/WebViewDidRemoveFrameFromHierarchy.mm. Added -[WebFrameLoadDelegate webView:didRemoveFrameFromHierarchy:]. * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::detachedFromParent2): Added a call to the new frame load delegate method. * WebView/WebDelegateImplementationCaching.h: (WebFrameLoadDelegateImplementationCache): Added the new method to the cache. * WebView/WebFrameLoadDelegatePrivate.h: Declared the new delegate method. * WebView/WebView.mm: (-[WebView _cacheFrameLoadDelegateImplementations]): Added the new method to the cache. 2013-01-07 Mike West Make the IFRAME_SEAMLESS flag runtime-enabled. https://bugs.webkit.org/show_bug.cgi?id=106213 Reviewed by Ojan Vafai. * WebView/WebPreferenceKeysPrivate.h: * WebView/WebPreferences.mm: (-[WebPreferences seamlessIFramesEnabled]): (-[WebPreferences setSeamlessIFramesEnabled:]): * WebView/WebPreferencesPrivate.h: * WebView/WebView.mm: (-[WebView _preferencesChanged:]): Add a seamless IFrame preference to WebPreferences, and use it to toggle the runtime state of the feature as appropriate. 2013-01-04 Adam Klein Remove ENABLE_MUTATION_OBSERVERS #define https://bugs.webkit.org/show_bug.cgi?id=105459 Reviewed by Ryosuke Niwa. * Configurations/FeatureDefines.xcconfig: 2013-01-01 Dan Bernstein Update copyright strings Reviewed by Sam Weinig. * Info.plist: 2012-12-29 Adam Roben Web Inspector: Mac WK1 Inspector can't save/load timeline data https://bugs.webkit.org/show_bug.cgi?id=105547 Reviewed by Pavel Feldman. * WebCoreSupport/WebInspectorClient.h: Declared new overrides and member variables necessary for save support. * WebCoreSupport/WebInspectorClient.mm: (WebInspectorFrontendClient::save): (WebInspectorFrontendClient::append): Implemented these to make saving timeline data work. (It seems to me the InspectorFrontendClient API could be cleaned up a bit. I had to look at Chromium source code to determine that I needed to call back into the InspectorFrontendAPI JS object after saving/appending, and that I needed to keep a map of passed URLs -> chosen URLs.) (-[WebInspectorWindowController window:willPositionSheet:usingRect:]): Tweaked the position of the sheet so that open/save sheets look a little bette.r (-[WebInspectorWindowController webView:runOpenPanelForFileButtonWithResultListener:allowMultipleFiles:]): Implemented to make loading timeline data work. 2012-12-28 Mark Rowe Move logic for extracting the OS X marketing version in to WebCore / Reviewed by Dan Bernstein. * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): Remove the code related to the WKSI symbol. * WebView/WebView.mm: (systemMarketingVersionForUserAgentString): Call the WebCore function instead of the WKSI function. (+[WebView _standardUserAgentWithApplicationName:]): Retain the result now that our helper doesn't do that for us. 2012-12-27 Sam Weinig Attempt to fix the tests. * WebView/WebPreferences.mm: (+[WebPreferences initialize]): 2012-12-23 Alexey Proskuryakov Network process should respect cookie accept policy https://bugs.webkit.org/show_bug.cgi?id=105684 Reviewed by Sam Weinig. * WebCoreSupport/WebPlatformStrategies.h: * WebCoreSupport/WebPlatformStrategies.mm: CookiesStrategy no longer has notifyCookiesChanged(). 2012-12-22 Alexey Proskuryakov Add a separate class for networking related storage https://bugs.webkit.org/show_bug.cgi?id=105676 Reviewed by Sam Weinig. * WebCoreSupport/WebFrameLoaderClient.mm: Updated for ResourceHandle include changes. * WebCoreSupport/WebFrameNetworkingContext.h: * WebCoreSupport/WebFrameNetworkingContext.mm: This class is now simpler, with more session tracking being in WebCore now. * WebCoreSupport/WebPlatformStrategies.h: * WebCoreSupport/WebPlatformStrategies.mm: (WebPlatformStrategies::cookiesForDOM): (WebPlatformStrategies::setCookiesFromDOM): (WebPlatformStrategies::cookiesEnabled): (WebPlatformStrategies::cookieRequestHeaderFieldValue): (WebPlatformStrategies::getRawCookies): (WebPlatformStrategies::deleteCookie): We no longer need a function for default cookie storage! Other cookie functions now take a session. * WebView/WebPreferences.mm: (+[WebPreferences _switchNetworkLoaderToNewTestingSession]): Initialize WCSI before calling a WebCore that uses it. (+[WebPreferences _setCurrentNetworkLoaderSessionCookieAcceptPolicy:]): Use NetworkStorageSession for session tracking. * WebView/WebView.mm: (-[WebView _cachedResponseForURL:]): Updated for networking context now returning a class for session. 2012-12-20 Ilya Tikhonovsky Unreviewed build fix for chromium mac after r138206. * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): 2012-12-19 Alexey Proskuryakov [WK2 NetworkProcess] Client doesn't receive SSL certificates https://bugs.webkit.org/show_bug.cgi?id=105467 Reviewed by Brady Eidson. * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): Initialize a WKSI function we've been missing. 2012-12-19 Alexis Menard Implement CSS parsing for CSS transitions unprefixed. https://bugs.webkit.org/show_bug.cgi?id=104804 Reviewed by Dean Jackson. Add a new flag ENABLE_CSS_TRANSFORMS_ANIMATIONS_TRANSITIONS_UNPREFIXED to cover the work of unprefixing Transforms, Animations and Transitions. It will let the possibility of each ports to turn it off in their release branches until we're confident that these CSS properties are ready to be unprefixed. * Configurations/FeatureDefines.xcconfig: 2012-12-18 Alexey Proskuryakov Remove unnecessary functions from CookiesStrategy https://bugs.webkit.org/show_bug.cgi?id=105369 Reviewed by Brady Eidson. * WebCoreSupport/WebPlatformStrategies.h: * WebCoreSupport/WebPlatformStrategies.mm: 2012-12-18 Alice Liu Add SPI to WebKit1 WebFrame for hit testing https://bugs.webkit.org/show_bug.cgi?id=105106 Reviewed by Dan Bernstein. * WebView/WebFrame.mm: (-[WebFrame elementAtPoint:]): Added. Takes an NSPoint to feed to the WebCore::Frame for hit-testing. Creates a WebElementDictionary from that WebCore::HitTestResult, and returns the element dictionary. * WebView/WebFramePrivate.h: 2012-12-18 Alice Liu Add SPI to WebKit1 WebFrame for node conversion to JSValueRef https://bugs.webkit.org/show_bug.cgi?id=105262 Reviewed by Anders Carlsson. * WebView/WebFrame.mm: (-[WebFrame jsWrapper:forWorld:]): Added. Takes a DOMNode and WebScriptWorld and provides a JSValueRef for the WebCore::Node in that particular WebScriptWorld. * WebView/WebFramePrivate.h: 2012-12-18 Beth Dakin https://bugs.webkit.org/show_bug.cgi?id=102579 [mac] Enable scaled cursors Reviewed by Dean Jackson. * Configurations/FeatureDefines.xcconfig: 2012-12-16 Levi Weintraub Push pixel snapping logic into TransformState https://bugs.webkit.org/show_bug.cgi?id=101779 Reviewed by Simon Fraser. * WebView/WebFullScreenController.mm: (screenRectOfContents): Removed SnapOffsetForTransforms as it's no longer needed. 2012-12-15 Anders Carlsson Rename FrameLoaderClient::download to convertMainResourceLoadToDownload https://bugs.webkit.org/show_bug.cgi?id=105122 Reviewed by Andreas Kling. Update for WebCore changes. * WebCoreSupport/WebFrameLoaderClient.h: (WebFrameLoaderClient): * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::convertMainResourceLoadToDownload): 2012-12-15 Mark Lam Re-landing patch for "Introducing the DatabaseStrategy and database servers". https://bugs.webkit.org/show_bug.cgi?id=104934. Not reviewed. Merged from r137767. Previously reviewed by Sam Weinig. * WebCoreSupport/WebPlatformStrategies.h: (WebPlatformStrategies): * WebCoreSupport/WebPlatformStrategies.mm: (WebPlatformStrategies::createDatabaseStrategy): 2012-12-14 Mark Lam The WebView should initialize the platform strategies before initializing other sub-systems. https://bugs.webkit.org/show_bug.cgi?id=105083. Reviewed by Alexey Proskuryakov. * WebView/WebView.mm: (-[WebView _commonInitializationWithFrameName:groupName:]): 2012-12-14 Sheriff Bot Unreviewed, rolling out r137767. http://trac.webkit.org/changeset/137767 https://bugs.webkit.org/show_bug.cgi?id=105062 Broke Mac builds. (Requested by mlam on #webkit). * WebCoreSupport/WebPlatformStrategies.h: (WebPlatformStrategies): * WebCoreSupport/WebPlatformStrategies.mm: 2012-12-14 Mark Lam Introducing the DatabaseStrategy and database servers. https://bugs.webkit.org/show_bug.cgi?id=104934. Reviewed by Sam Weinig. The database server is currently a placeholder that does nothing. * WebCoreSupport/WebPlatformStrategies.h: (WebPlatformStrategies): * WebCoreSupport/WebPlatformStrategies.mm: (WebPlatformStrategies::createDatabaseStrategy): 2012-12-13 Alexey Proskuryakov Per-Tab WebProcess: DOM cookie access functions should respect private browsing https://bugs.webkit.org/show_bug.cgi?id=104691 Reviewed by Sam Weinig. * WebCoreSupport/WebFrameNetworkingContext.h: * WebCoreSupport/WebFrameNetworkingContext.mm: (WebFrameNetworkingContext::inPrivateBrowsingMode): (WebFrameNetworkingContext::storageSession): Implemented inPrivateBrowsingMode(). 2012-12-12 Mark Lam Encapsulate externally used webdatabase APIs in DatabaseManager. https://bugs.webkit.org/show_bug.cgi?id=104741. Reviewed by Sam Weinig. Use DatabaseManager instead of accessing DatabaseTracker, AbstractDatabase, and DatabaseContext directly. This is to prepare for upcoming webkit2 refactoring. * Storage/WebDatabaseManager.mm: (-[WebDatabaseManager origins]): (-[WebDatabaseManager databasesWithOrigin:]): (-[WebDatabaseManager detailsForDatabase:withOrigin:]): (-[WebDatabaseManager deleteAllDatabases]): (-[WebDatabaseManager deleteOrigin:]): (-[WebDatabaseManager deleteDatabase:withOrigin:]): (WebKitInitializeDatabasesIfNecessary): * Storage/WebDatabaseManagerClient.h: Copied from Source/WebKit/mac/Storage/WebDatabaseTrackerClient.h. (WebDatabaseManagerClient): * Storage/WebDatabaseManagerClient.mm: Copied from Source/WebKit/mac/Storage/WebDatabaseTrackerClient.mm. (WebDatabaseManagerClient::sharedWebDatabaseManagerClient): (WebDatabaseManagerClient::WebDatabaseManagerClient): (WebDatabaseManagerClient::~WebDatabaseManagerClient): (DidModifyOriginData::dispatchToMainThread): (DidModifyOriginData::DidModifyOriginData): (DidModifyOriginData): (WebDatabaseManagerClient::dispatchDidModifyOrigin): (WebDatabaseManagerClient::dispatchDidModifyDatabase): * Storage/WebDatabaseQuotaManager.mm: (-[WebDatabaseQuotaManager usage]): (-[WebDatabaseQuotaManager quota]): (-[WebDatabaseQuotaManager setQuota:]): * Storage/WebDatabaseTrackerClient.h: Removed. * Storage/WebDatabaseTrackerClient.mm: Removed. * WebCoreSupport/WebSecurityOrigin.mm: (-[WebSecurityOrigin usage]): (-[WebSecurityOrigin quota]): (-[WebSecurityOrigin setQuota:]): * WebKit.order: * WebView/WebFrame.mm: (-[WebFrame _cacheabilityDictionary]): * WebView/WebView.mm: (-[WebView _preferencesChanged:]): 2012-12-12 Alexey Proskuryakov Make LOG() work in WebProcess and NetworkProcess https://bugs.webkit.org/show_bug.cgi?id=104718 Reviewed by Tim Horton. * WebView/WebView.mm: Use WebCore/InitializeLogging.h to avoid conflicts between WebCore and WebKit versions of this file. 2012-12-11 Mike West Web Inspector: ConsoleTypes should not expose MessageType - it should be private to inspector. https://bugs.webkit.org/show_bug.cgi?id=66371 Reviewed by Pavel Feldman. Drops WebCore::MessageType from the addMessageToConsole method. * WebCoreSupport/WebChromeClient.h: (WebChromeClient): * WebCoreSupport/WebChromeClient.mm: (WebChromeClient::addMessageToConsole): 2012-12-09 Antti Koivisto Factor node traversal into standalone functions https://bugs.webkit.org/show_bug.cgi?id=104507 Reviewed by Eric Seidel. * WebView/WebHTMLRepresentation.mm: (searchForLabelsBeforeElement): 2012-12-10 Alexis Menard [CSS3 Backgrounds and Borders] Remove CSS3_BACKGROUND feature flag. https://bugs.webkit.org/show_bug.cgi?id=104539 Reviewed by Antonio Gomes. As discussed on webkit-dev it is not needed to keep this feature flag as support for type is a small feature that is already implemented by three other UAs. It was useful while landing this feature as partial bits were landed one after one. * Configurations/FeatureDefines.xcconfig: 2012-12-06 Rick Byers CSS cursor property should support webkit-image-set https://bugs.webkit.org/show_bug.cgi?id=99493 Reviewed by Beth Dakin. Add ENABLE_MOUSE_CURSOR_SCALE - disabled by default. * Configurations/FeatureDefines.xcconfig: 2012-12-03 Yury Semikhatsky Unreviewed. Fix Mac compilation after r136448. * WebCoreSupport/WebChromeClient.mm: (stringForMessageType): 2012-12-03 Alexis Menard [Mac] Enable CSS3 background-position offset by default. https://bugs.webkit.org/show_bug.cgi?id=103905 Reviewed by Simon Fraser. Turn the flag on by default. * Configurations/FeatureDefines.xcconfig: 2012-12-02 Yongjun Zhang Need a method to close all idle localstorage databases immediately. https://bugs.webkit.org/show_bug.cgi?id=103469 Reviewed by David Kilzer. Add a new method to WebStorageManager that we can call to close all idle local storage databases. * Storage/WebStorageManager.mm: (+[WebStorageManager closeIdleLocalStorageDatabases]): * Storage/WebStorageManagerPrivate.h: 2012-11-30 Mihai Maerean [CSSRegions] when WebKit uses V8, there should be a single variable to store if the CSS Regions feature is enabled https://bugs.webkit.org/show_bug.cgi?id=101192 Reviewed by Hajime Morita. Removed the CSS Regions flag in Settings and switched to using the new flag I have added in RuntimeEnabledFeatures. Tests: No new tests because there is no functional change. * WebView/WebView.mm: (-[WebView _preferencesChanged:]): 2012-11-29 Rafael Weinstein [HTMLTemplateElement] Add feature flag https://bugs.webkit.org/show_bug.cgi?id=103694 Reviewed by Adam Barth. This flag will guard the implementation of the HTMLTemplateElement. http://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/templates/index.html * Configurations/FeatureDefines.xcconfig: 2012-11-29 Alexey Proskuryakov [WK2] Forward cookie jar calls to NetworkProcess https://bugs.webkit.org/show_bug.cgi?id=103457 Reviewed by Darin Adler. * WebCoreSupport/WebPlatformStrategies.h: (WebPlatformStrategies): * WebCoreSupport/WebPlatformStrategies.mm: (WebPlatformStrategies::cookiesForDOM): (WebPlatformStrategies::setCookiesFromDOM): (WebPlatformStrategies::cookiesEnabled): (WebPlatformStrategies::cookieRequestHeaderFieldValue): (WebPlatformStrategies::getRawCookies): (WebPlatformStrategies::deleteCookie): (WebPlatformStrategies::getHostnamesWithCookies): (WebPlatformStrategies::deleteCookiesForHostname): (WebPlatformStrategies::deleteAllCookies): (WebPlatformStrategies::getPluginInfo): (WebPlatformStrategies::bufferForType): WebKit1 strategy just uses PlatformCookieJar. 2012-11-28 Beth Dakin https://bugs.webkit.org/show_bug.cgi?id=102970 [WK1] REGRESSION (r129545): Main frame doesn't rubberband unless WebFrameLoadDelegate implements -webView:didFirstLayoutInFrame: Reviewed by Sam Weinig. We should always register for DidFirstLayout in WK1 since we do work at that time besides just calling the delegate function. * WebView/WebView.mm: (-[WebView _cacheFrameLoadDelegateImplementations]): 2012-11-27 Michael Saboff TextIterator unnecessarily converts 8 bit strings to 16 bits https://bugs.webkit.org/show_bug.cgi?id=103295 Reviewed by Brent Fulgham. Updated _stringForRange to use plainText() instead of removed plainTextToMallocAllocatedBuffer(). * WebView/WebFrame.mm: (-[WebFrame _stringForRange:]): 2012-11-27 James Simonsen Consolidate FrameLoader::load() into one function taking a FrameLoadRequest https://bugs.webkit.org/show_bug.cgi?id=102151 Reviewed by Adam Barth. * Plugins/WebPluginController.mm: * WebView/WebFrame.mm: (-[WebFrame loadRequest:]): (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]): 2012-11-27 Pratik Solanki objc/objc-runtime.h does not exist on all PLATFORM(MAC) https://bugs.webkit.org/show_bug.cgi?id=101780 Reviewed by Brent Fulgham. Clean up header includes so we don't include objc/objc-runtime.h. * Carbon/HIWebView.mm: (UpdateCommandStatus): Use wtfObjcMsgSend template instead of objc_msgSend. * Plugins/WebNetscapePluginView.mm: * Plugins/WebPluginContainerCheck.mm: (-[WebPluginContainerCheck _continueWithPolicy:]): Use wtfObjcMsgSend template instead of objc_msgSend. * Plugins/WebPluginController.mm: * WebCoreSupport/WebCachedFramePlatformData.h: * WebCoreSupport/WebDeviceOrientationClient.mm: * WebView/WebDelegateImplementationCaching.mm: * WebView/WebHTMLView.mm: * WebView/WebPDFDocumentExtras.mm: * WebView/WebPolicyDelegate.mm: (-[WebPolicyDecisionListener _usePolicy:]): Use wtfObjcMsgSend template instead of objc_msgSend. * WebView/WebView.mm: 2012-11-27 Sheriff Bot Unreviewed, rolling out r135786. http://trac.webkit.org/changeset/135786 https://bugs.webkit.org/show_bug.cgi?id=103379 It made 3 plugin tests timeout on several platforms (Requested by Ossy on #webkit). * Plugins/WebPluginController.mm: * WebView/WebFrame.mm: (-[WebFrame loadRequest:]): (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]): 2012-11-26 James Simonsen Consolidate FrameLoader::load() into one function taking a FrameLoadRequest https://bugs.webkit.org/show_bug.cgi?id=102151 Reviewed by Adam Barth. * Plugins/WebPluginController.mm: * WebView/WebFrame.mm: (-[WebFrame loadRequest:]): (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]): 2012-11-23 Alexis Menard [CSS3 Backgrounds and Borders] Implement new CSS3 background-position parsing. https://bugs.webkit.org/show_bug.cgi?id=102104 Reviewed by Julien Chaffraix. Protect the new feature behind a feature flag. * Configurations/FeatureDefines.xcconfig: 2012-11-21 Allan Sandfeld Jensen Disambiguate innerNodeFramePoint and mainFramePoint https://bugs.webkit.org/show_bug.cgi?id=98139 Reviewed by Julien Chaffraix. Switch to using HitTestResult::innerNodeFrame and HitTestResult::innerNodeFramePoint. * WebCoreSupport/WebContextMenuClient.mm: (WebContextMenuClient::showContextMenu): 2012-11-20 Sheriff Bot Unreviewed, rolling out r135295. http://trac.webkit.org/changeset/135295 https://bugs.webkit.org/show_bug.cgi?id=102834 This patch causes assertion to some layout tests on chromium (Requested by jianli on #webkit). * Plugins/WebPluginController.mm: * WebView/WebFrame.mm: (-[WebFrame loadRequest:]): (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]): 2012-11-20 James Simonsen Consolidate FrameLoader::load() into one function taking a FrameLoadRequest https://bugs.webkit.org/show_bug.cgi?id=102151 Reviewed by Adam Barth. * Plugins/WebPluginController.mm: * WebView/WebFrame.mm: (-[WebFrame loadRequest:]): (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]): 2012-11-19 Kihong Kwon Add PROXIMITY_EVENTS feature https://bugs.webkit.org/show_bug.cgi?id=102658 Reviewed by Kentaro Hara. Add PROXIMITY_EVENTS feature to xcode project for WebKit. * Configurations/FeatureDefines.xcconfig: 2012-11-16 Tony Chang Remove ENABLE_CSS_HIERARCHIES since it's no longer in use https://bugs.webkit.org/show_bug.cgi?id=102554 Reviewed by Andreas Kling. As mentioned in https://bugs.webkit.org/show_bug.cgi?id=79939#c41 , we're going to revist this feature once additional vendor support is achieved. * Configurations/FeatureDefines.xcconfig: 2012-11-15 Alexey Proskuryakov Private Browsing is a per-page setting that sets a global value https://bugs.webkit.org/show_bug.cgi?id=67870 Reviewed by Sam Weinig. * WebCoreSupport/WebFrameNetworkingContext.h: * WebCoreSupport/WebFrameNetworkingContext.mm: Moved functions for managing global sessions from WebCore. * WebCoreSupport/WebPlatformStrategies.h: * WebCoreSupport/WebPlatformStrategies.mm: (WebPlatformStrategies::defaultCookieStorage): Added. Uses WebFrameNetworkingContext to reach the storage. * WebView/WebPreferences.mm: (+[WebPreferences _switchNetworkLoaderToNewTestingSession]): Ditto. (+[WebPreferences _setCurrentNetworkLoaderSessionCookieAcceptPolicy:]): Ditto. * WebView/WebPreferencesPrivate.h: Added a comment explaining that two functions are not generic enough for use outside DRT (one of them had "testing" in name, but another did not). * WebView/WebView.mm: (-[WebView _preferencesChanged:]): Create a global private browsing session when the first view with private browsing is created, delete it when any window with it disabled is created (since this comes from preferences, it applies to all views equally, even though we are dealing with a single one here). (-[WebView _cachedResponseForURL:]): Use main frame's networking context instead of a global one. 2012-11-13 Timothy Hatcher Adjust the Web Inspector window title frame if needed to prevent it from intersecting the dock button. https://bugs.webkit.org/show_bug.cgi?id=102073 Reviewed by Joseph Pecoraro. * WebCoreSupport/WebInspectorClient.mm: (-[WebInspectorWindow _customTitleFrame]): Added. Adjust the title frame. 2012-11-12 Simon Fraser Build fix after r134346 and 134347. Use frameView.isFlipped, not frameView.flipped in the assertion. * WebCoreSupport/WebInspectorClient.mm: (-[WebInspectorWindowController window]): 2012-11-12 Timothy Hatcher Add a dock button to the top right corner of the Web Inspector window (similar to the full screen button). https://bugs.webkit.org/show_bug.cgi?id=102025 Reviewed by Joseph Pecoraro. * Resources/Dock.pdf: Added. * WebCoreSupport/WebInspectorClient.h: * WebCoreSupport/WebInspectorClient.mm: (-[WebInspectorWindow _cursorForResizeDirection:]): Added. (WebInspectorClient::didResizeMainFrame): Call attachAvailabilityChanged instead. (WebInspectorFrontendClient::attachAvailabilityChanged): Added. (-[WebInspectorWindowController window]): Create the dock button and add it. (-[WebInspectorWindowController attachWindow:]): Added. (-[WebInspectorWindowController attach]): Call setAttachedWindow. (-[WebInspectorWindowController detach]): Ditto. (-[WebInspectorWindowController setDockingUnavailable:]): Added. Update hidden state of the dock button. 2012-11-08 Timothy Hatcher Always use a textured window for the Web Inspector. https://bugs.webkit.org/show_bug.cgi?id=101693 Reviewed by Joseph Pecoraro. * WebCoreSupport/WebInspectorClient.mm: (-[WebInspectorWindowController window]): Removed the conditional for a textured window. 2012-11-08 Roger Fong Null check URL key entries into WebHistory hash table. https://bugs.webkit.org/show_bug.cgi?id=101664 Reviewed by Brady Eidson. Sometimes the _entriesByURL hash table used to keep track of web history is erroneously passed in null key entries, which causes an exception to fire. This prevents the desired page navigation from taking effect. This is a workaround for the problem. Ideally we would figure out where the null values for the key are coming from but for now we'll just set it to "" to prevent the exception from being thrown so that navigation can continue as expected. * History/WebHistory.mm: (-[WebHistoryPrivate visitedURL:withTitle:increaseVisitCount:]): 2012-11-07 Andreas Kling Remove build-webkit dependency on Java SDK for Apple Mac WebKit. Reviewed by Anders Carlsson. * Plugins/WebJavaPlugIn.h: Removed. 2012-11-06 Adam Barth Unreviewed attempt to fix the chromium-mac build. * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): 2012-11-06 Anders Carlsson Update Java related WKSI function names https://bugs.webkit.org/show_bug.cgi?id=101414 Reviewed by Sam Weinig. * WebCoreSupport/WebChromeClient.mm: (WebChromeClient::unavailablePluginButtonClicked): * WebCoreSupport/WebFrameLoaderClient.mm: (isPlugInInactive): 2012-11-06 Alexey Proskuryakov Clean up which storage cookie jar functions use https://bugs.webkit.org/show_bug.cgi?id=101395 Reviewed by Brady Eidson. * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): Updated for two new functions. 2012-11-06 Andrey Lushnikov Added console.clear() method Web Inspector: add console.clear() https://bugs.webkit.org/show_bug.cgi?id=101021 Reviewed by Vsevolod Vlasov. * WebCoreSupport/WebChromeClient.mm: (stringForMessageType): Added ClearMessageType case to switch 2012-11-05 Alexey Proskuryakov Get rid of setCookieStoragePrivateBrowsingEnabled. https://bugs.webkit.org/show_bug.cgi?id=101247 Reviewed by Brady Eidson. * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): We no longer have this function. 2012-11-03 Alexey Proskuryakov Get rid of USE(CFURLSTORAGESESSIONS) https://bugs.webkit.org/show_bug.cgi?id=101131 Reviewed by Sam Weinig. * WebView/WebPreferences.mm: (+[WebPreferences _switchNetworkLoaderToNewTestingSession]): (+[WebPreferences _setCurrentNetworkLoaderSessionCookieAcceptPolicy:]): * WebView/WebView.mm: (-[WebView _cachedResponseForURL:]): 2012-11-02 Anders Carlsson Don't instantiate the Java plug-in if it's inactive https://bugs.webkit.org/show_bug.cgi?id=101102 Reviewed by Andreas Kling. * WebCoreSupport/WebChromeClient.mm: (WebChromeClient::shouldUnavailablePluginMessageBeButton): The RenderEmbeddedObject::PluginInactive reason should always result in a button being shown. (WebChromeClient::unavailablePluginButtonClicked): If the Java plug-in is inactive, call WKJLReportWebComponentsUsed() to reactivate the plug-in and then reload the page. * WebCoreSupport/WebFrameLoaderClient.mm: (isOracleJavaPlugIn): (isPlugInInactive): Helper functions. (WebFrameLoaderClient::createPlugin): If the plug-in is inactive, set the appropriate unavailability reason on the renderer. 2012-11-02 Simon Fraser Enable SUBPIXEL_LAYOUT on Mac https://bugs.webkit.org/show_bug.cgi?id=101076 Reviewed by Dave Hyatt. Define ENABLE_SUBPIXEL_LAYOUT and include it in FEATURE_DEFINES. * Configurations/FeatureDefines.xcconfig: 2012-11-02 Adam Barth ENABLE(UNDO_MANAGER) is disabled everywhere and is not under active development https://bugs.webkit.org/show_bug.cgi?id=100711 Reviewed by Eric Seidel. * Configurations/FeatureDefines.xcconfig: 2012-11-01 Adam Roben [WK1] Fixed-position elements jiggle up and down slightly during scrolling on a Retina display https://bugs.webkit.org/show_bug.cgi?id=100957 Reviewed by Simon Fraser. WebCore doesn't yet support subpixel scrolling. WebKit2 forces scrolling to always be integral. Now WebKit1 forces this as well. I'm not sure how to write a test for this. * WebView/WebDynamicScrollBarsView.mm: (shouldRoundScrollOrigin): Returns YES if there are any position:fixed or position:sticky elements in the page. (-[WebDynamicScrollBarsView scrollClipView:toPoint:]): Round the scroll origin to the nearest pixel if needed. 2012-10-31 Anders Carlsson Fix build. . Reviewed by Sam Weinig. * Panels/WebAuthenticationPanel.m: (-[WebAuthenticationPanel loadNib]): 2012-10-30 Joseph Pecoraro [Mac] Sync up FeatureDefine Configuration Files https://bugs.webkit.org/show_bug.cgi?id=100171 Reviewed by David Kilzer. Follow up to better coordinate with iOS feature defines. Make: - ENABLE_FILTERS always on - ENABLE_INPUT_* iphonesimulator values point to the iphoneos values * Configurations/FeatureDefines.xcconfig: 2012-10-30 Joseph Pecoraro [Mac] Sync up FeatureDefine Configuration Files https://bugs.webkit.org/show_bug.cgi?id=100171 Reviewed by David Kilzer. Ensure an identical FeatureDefine files across all projects. Changes: - ENABLE_CSS_BOX_DECORATION_BREAK should be in all - ENABLE_PDFKIT_PLUGIN should be in all - ENABLE_RESOLUTION_MEDIA_QUERY should be in all - ENABLE_ENCRYPTED_MEDIA should be in all - ENABLE_HIDDEN_PAGE_DOM_TIMER_THROTTLING with corrected value - Some alphabetical ordering cleanup * Configurations/FeatureDefines.xcconfig: 2012-10-29 Anders Carlsson Build WebKit as C++11 on Mac https://bugs.webkit.org/show_bug.cgi?id=100720 Reviewed by Daniel Bates. * Configurations/Base.xcconfig: Add CLANG_CXX_LANGUAGE_STANDARD=gnu++0x. * History/WebBackForwardList.mm: (-[WebBackForwardList description]): * History/WebHistoryItem.mm: (-[WebHistoryItem description]): Add static_casts to prevent implicit type conversions in non-constant initializer lists. 2012-10-28 Mark Rowe Simplify Xcode configuration settings that used to vary between OS versions. Reviewed by Dan Bernstein. * Configurations/Base.xcconfig: * Configurations/DebugRelease.xcconfig: * Configurations/WebKit.xcconfig: 2012-10-28 Mark Rowe Remove references to unsupported OS and Xcode versions. Reviewed by Anders Carlsson. * Configurations/Base.xcconfig: * Configurations/CompilerVersion.xcconfig: Removed. * Configurations/DebugRelease.xcconfig: * Configurations/Version.xcconfig: 2012-10-29 Enrica Casucci Add ENABLE_USERSELECT_ALL feature flag. https://bugs.webkit.org/show_bug.cgi?id=100559 Reviewed by Eric Seidel. * Configurations/FeatureDefines.xcconfig: 2012-10-27 Alexey Proskuryakov All tests crash in WebKit1 mode https://bugs.webkit.org/show_bug.cgi?id=100602 Reviewed by Sam Weinig. * WebView/WebView.mm: (+[WebView _setLoadResourcesSerially:]): Resource load scheduler is created via a strategy, so strategies need to be initialized before using it. 2012-10-27 Dan Bernstein REAL_PLATFORM_NAME build setting is no longer needed https://bugs.webkit.org/show_bug.cgi?id=100587 Reviewed by Mark Rowe. Removed the definition of REAL_PLATFORM_NAME and replaced references to it with references to PLATFORM_NAME. * Configurations/Base.xcconfig: * Configurations/CompilerVersion.xcconfig: * Configurations/DebugRelease.xcconfig: * Configurations/FeatureDefines.xcconfig: * Configurations/Version.xcconfig: * Configurations/WebKit.xcconfig: 2012-10-26 Thiago Marcos P. Santos Add feature flags for CSS Device Adaptation https://bugs.webkit.org/show_bug.cgi?id=95960 Reviewed by Kenneth Rohde Christiansen. * Configurations/FeatureDefines.xcconfig: 2012-10-25 Dominik Röttsches Conditionalize XHR timeout support https://bugs.webkit.org/show_bug.cgi?id=100356 Reviewed by Adam Barth. Adding XHR_TIMEOUT feature to conditionalize this on ports without network backend support. Defaults to ON on Mac since the Mac NSUrlConnection based backend has setTimeoutInterval support. * Configurations/FeatureDefines.xcconfig: 2012-10-24 Timothy Hatcher Fix a crash seen during the Inspector tests on the WebKit1 bots. Reviewed by Filip Pizlo. * WebCoreSupport/WebInspectorClient.mm: (WebInspectorFrontendClient::bringToFront): Use the window from the WebView since m_windowController's window is not the same when the Inspector is docked. 2012-10-24 Brady Eidson Add a strategy for loader customization. https://bugs.webkit.org/show_bug.cgi?id=100278 Reviewed by Alexey Proskuryakov. * WebCoreSupport/WebPlatformStrategies.h: (WebPlatformStrategies): * WebCoreSupport/WebPlatformStrategies.mm: (WebPlatformStrategies::createLoaderStrategy): 2012-10-24 Timothy Hatcher Make the Inspector WKView/WebView become the first responder when bringToFront is called. https://bugs.webkit.org/show_bug.cgi?id=100209 Reviewed by Joseph Pecoraro. * WebCoreSupport/WebInspectorClient.mm: (WebInspectorFrontendClient::bringToFront): Make the Inspector WebView become the first responder. 2012-10-23 Alexey Proskuryakov Add a strategy for shared workers https://bugs.webkit.org/show_bug.cgi?id=100165 Reviewed by Brady Eidson. * WebCoreSupport/WebPlatformStrategies.h: * WebCoreSupport/WebPlatformStrategies.mm: (WebPlatformStrategies::createPasteboardStrategy): (WebPlatformStrategies::createSharedWorkerStrategy): (WebPlatformStrategies::createVisitedLinkStrategy): 2012-10-24 Eric Carlson Allow ports to override text track rendering style https://bugs.webkit.org/show_bug.cgi?id=97800 Reviewed by Maciej Stachowiak. * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): Initialize new WKSI function pointers. 2012-10-23 Dan Bernstein WebKit/mac part of [mac] Kerning and ligatures are not enabled by default https://bugs.webkit.org/show_bug.cgi?id=100188 Reviewed by Sam Weinig. * WebView/WebView.mm: (+[WebView initialize]): Added a local variable to hold the standard user defaults. Added code to register a value of YES for the WebKitKerningAndLigaturesEnabledByDefault user default. Changed to refer to that default key by name. 2012-10-23 Kenneth Rohde Christiansen Add support for resolution media query https://bugs.webkit.org/show_bug.cgi?id=99077 Reviewed by Antti Koivisto. Add support for the RESOLUTION_MEDIA_QUERY feature flag. * Configurations/FeatureDefines.xcconfig: 2012-10-21 Andreas Kling Remove Page::javaScriptURLsAreAllowed setting. Reviewed by Anders Carlsson. * WebKit.order: * WebView/WebView.mm: * WebView/WebViewPrivate.h: 2012-10-19 Dongwoo Joshua Im Rename ENABLE_CSS3_TEXT_DECORATION to ENABLE_CSS3_TEXT https://bugs.webkit.org/show_bug.cgi?id=99804 Reviewed by Julien Chaffraix. CSS3 text related properties will be implemented under this flag, including text decoration, text-align-last, and text-justify. * Configurations/FeatureDefines.xcconfig: 2012-10-18 Pablo Flouret Implement css3-conditional's @supports rule https://bugs.webkit.org/show_bug.cgi?id=86146 Reviewed by Antti Koivisto. * Configurations/FeatureDefines.xcconfig: Add an ENABLE_CSS3_CONDITIONAL_RULES flag. 2012-10-17 Joseph Pecoraro [Mac] Uninitialized Members in WebDataSourcePrivate https://bugs.webkit.org/show_bug.cgi?id=99617 Reviewed by David Kilzer. Initialize BOOL member variables. * WebView/WebDataSource.mm: (WebDataSourcePrivate::WebDataSourcePrivate): 2012-10-17 Mark Rowe Fix the build with a newer version of clang. Reviewed by Dan Bernstein. Some of the methods in WebCoreStatistics appear to have been added by someone not familiar with Objective-C. While it's technically valid to have empty components in a selector, it's rarely done and is not consistent with our style guidelines. In this particular case it's also done in such a manner that it's ambiguous and therefore generates a warning in newer versions of the compiler. Fixes . * Misc/WebCoreStatistics.h: Remove unused methods and rename the two poorly-named methods that remain. * Misc/WebCoreStatistics.mm: Ditto. (-[WebFrame numberOfPagesWithPageWidth:pageHeight:]): (-[WebFrame printToCGContext:pageWidth:pageHeight:]): 2012-10-16 Jian Li Rename feature define ENABLE_WIDGET_REGION to ENABLE_DRAGGBALE_REGION https://bugs.webkit.org/show_bug.cgi?id=98975 Reviewed by Adam Barth. Renaming is needed to better match with the draggable region code. * Configurations/FeatureDefines.xcconfig: 2012-10-15 Dan Bernstein WebKit/mac part of Font’s fast code path doesn’t support kerning and ligatures https://bugs.webkit.org/show_bug.cgi?id=99113 Reviewed by Tim Horton. * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): Added wkCTFontTransformGlyphs. 2012-10-15 David Kilzer Move framework and library linking into WebKit.xcconfig Reviewed by Mark Rowe. * Configurations/WebKit.xcconfig: Move frameworks and libraries link flags to OTHER_LDFLAGS so that they work for iOS and OS X. 2012-10-14 Jon Lee Allow notification origin permission request when no js callback is provided https://bugs.webkit.org/show_bug.cgi?id=63615 Reviewed by Sam Weinig. Introduce a boolean to determine whether the request was using the legacy or standard API. This way, we do not fall through to calling the standard API's callback if the legacy API's callback is null. * WebCoreSupport/WebNotificationClient.mm: (WebCore): (-[WebNotificationPolicyListener initWithVoidCallback:]): (-[WebNotificationPolicyListener allow]): (-[WebNotificationPolicyListener deny]): 2012-10-14 Sam Weinig Make UserScript and UserStyleSheet value objects that are copyable https://bugs.webkit.org/show_bug.cgi?id=99275 Reviewed by Tim Horton. * WebView/WebView.mm: (-[WebView _injectMailQuirksScript]): (-[WebView _injectOutlookQuirksScript]): Update for new PageGroup function signatures. 2012-10-10 Brady Eidson Switch ResourceLoader::resourceData() from SharedBuffer to ResourceBuffer https://bugs.webkit.org/show_bug.cgi?id=98976 Reviewed by Anders Carlsson. * WebView/WebDataSource.mm: (-[WebDataSource data]): 2012-10-10 Jer Noble Disallow full screen mode keyboard access by default. https://bugs.webkit.org/show_bug.cgi?id=98971 Reviewed by Sam Weinig. Only support full screen if keyboard access is not requested. * WebView/WebView.mm: (-[WebView _supportsFullScreenForElement:WebCore::withKeyboard:]): 2012-10-10 Jon Lee [WK2] Activate plugins when user clicks on snapshot https://bugs.webkit.org/show_bug.cgi?id=98328 Reviewed by Brady Eidson. * WebCoreSupport/WebFrameLoaderClient.h: * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::recreatePlugin): Stub implementation of recreatePlugin(). 2012-10-10 Brady Eidson Switch CachedResource over from SharedBuffer to a new ResourceBuffer https://bugs.webkit.org/show_bug.cgi?id=98541 Reviewed by Anders Carlsson. * WebView/WebHTMLView.mm: (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]): 2012-10-10 Simon Fraser Store a visible rect in GraphicsLayers, and optionally dump it in layerTreeAsText https://bugs.webkit.org/show_bug.cgi?id=98839 Reviewed by Sam Weinig. To replace CATiledLayer with TileCaches, we need to be able to compute the visible part of a GraphicsLayer, in order to limit the extent of TileCache tiles. Reuse the existing code in GraphicsLayerCA for this, but store the computed rect in m_visibleRect. Add a flag to layerTreeAsText() so that tests can optionally include this visible rect in layer tree dumps. This output will be platform-specific, so we don't want to do it unconditionally. * WebView/WebFrame.mm: (-[WebFrame _layerTreeAsText]): 2012-10-09 Jian Li Update the CSS property used to support draggable regions. https://bugs.webkit.org/show_bug.cgi?id=97156 Reviewed by Adam Barth. The CSS property to support draggable regions, guarded under WIDGET_REGION is now disabled from Mac WebKit, in order not to cause confusion with DASHBOARD_SUPPORT feature. Also update the code to use the new name annotatedRegions to work for both features. * Configurations/FeatureDefines.xcconfig: Disable WIDGET_REGION feature. * WebCoreSupport/WebChromeClient.h: Rename dashboardRegions to annotatedRegions. * WebCoreSupport/WebChromeClient.mm: Rename dashboardRegions to annotatedRegions. (WebChromeClient::annotatedRegionsChanged): * WebView/WebView.mm: Rename dashboardRegions to annotatedRegions. (-[WebView _dashboardRegions]): 2012-10-09 Sheriff Bot Unreviewed, rolling out r130811 and r130821. http://trac.webkit.org/changeset/130811 http://trac.webkit.org/changeset/130821 https://bugs.webkit.org/show_bug.cgi?id=98831 Broke date-suggestion-picker-appearance-with-scroll-bar.html (Requested by abarth|gardening on #webkit). * WebView/WebFullScreenController.mm: (screenRectOfContents): * WebView/WebRenderNode.mm: (copyRenderNode): 2012-10-08 Kiran Muppala Throttle DOM timers on hidden pages. https://bugs.webkit.org/show_bug.cgi?id=98474 Reviewed by Maciej Stachowiak. Add HIDDEN_PAGE_DOM_TIMER_THROTTLING feature define and provide a SPI for DumpRenderTree to modify the visibility state of a page. The latter is needed to test throttling of timers on hidden pages through DumpRenderTree. * Configurations/FeatureDefines.xcconfig: * WebView/WebView.mm: (-[WebView _setVisibilityState:isInitialState:]): * WebView/WebViewPrivate.h: 2012-10-07 Caio Marcelo de Oliveira Filho Rename first/second to key/value in HashMap iterators https://bugs.webkit.org/show_bug.cgi?id=82784 Reviewed by Eric Seidel. * History/WebHistory.mm: (-[WebHistoryPrivate removeItemFromDateCaches:]): (-[WebHistoryPrivate orderedLastVisitedDays]): (WebHistoryWriter::WebHistoryWriter): * Misc/WebCoreStatistics.mm: (+[WebCoreStatistics javaScriptProtectedObjectTypeCounts]): (+[WebCoreStatistics javaScriptObjectTypeCounts]): * Plugins/Hosted/NetscapePluginHostManager.mm: (WebKit::NetscapePluginHostManager::hostForPlugin): (WebKit::NetscapePluginHostManager::pluginHostDied): (WebKit::NetscapePluginHostManager::didCreateWindow): * Plugins/Hosted/NetscapePluginHostProxy.mm: (WebKit::NetscapePluginHostProxy::pluginHostDied): * Plugins/Hosted/NetscapePluginInstanceProxy.mm: (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::idForObject): (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::retain): (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::release): (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::forget): (WebKit::NetscapePluginInstanceProxy::destroy): (WebKit::NetscapePluginInstanceProxy::webFrameDidFinishLoadWithReason): (WebKit::NetscapePluginInstanceProxy::cancelCheckIfAllowedToLoadURL): * Plugins/Hosted/ProxyInstance.mm: (WebKit::ProxyInstance::methodNamed): (WebKit::ProxyInstance::fieldNamed): * Plugins/WebNetscapePluginView.mm: (-[WebNetscapePluginView stopTimers]): (-[WebNetscapePluginView startTimers]): * WebCoreSupport/WebNotificationClient.mm: (WebNotificationClient::show): (WebNotificationClient::clearNotifications): (WebNotificationClient::notificationObjectDestroyed): * WebView/WebHTMLView.mm: (commandNameForSelector): 2012-10-06 Dan Bernstein WebKit/mac part of [mac] WebKit clients cannot change the behavior of text-rendering: auto https://bugs.webkit.org/show_bug.cgi?id=98601 Reviewed by Darin Adler. * WebView/WebView.mm: (+[WebView initialize]): Added a call to Font::setDefaultTypesettingFeatures() to enable kerning and ligatures if the WebKitKerningAndLigaturesEnabledByDefault user default key has the value YES. 2012-10-05 Sheriff Bot Unreviewed, rolling out r130556 and r130564. http://trac.webkit.org/changeset/130556 http://trac.webkit.org/changeset/130564 https://bugs.webkit.org/show_bug.cgi?id=98572 The patch wasn't reviewed by a reviewer and it is breaking Chromium Windows (Requested by jchaffraix on #webkit). * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): 2012-10-05 Tim Horton [cg] GraphicsContextCG should ask CG whether the shadow offset workaround is required https://bugs.webkit.org/show_bug.cgi?id=98565 Reviewed by Simon Fraser. Add wkCGContextDrawsWithCorrectShadowOffsets. * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): 2012-10-04 Eric Carlson Allow ports to override text track rendering style https://bugs.webkit.org/show_bug.cgi?id=97800 Reviewed by Silvia Pfeiffer. Add WCSI support for new WKSI caption functions. * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): Initialize new WKSI function pointers. 2012-10-04 Jon Lee Add a setting to enable plugin snapshotting https://bugs.webkit.org/show_bug.cgi?id=98319 Reviewed by Brady Eidson. Expose plugInSnapshottingEnabled preference to WebKit clients. * WebView/WebPreferenceKeysPrivate.h: Add WebKitPlugInSnapshottingEnabled key. * WebView/WebPreferences.mm: (+[WebPreferences initialize]): Setting is turned off by default. (-[WebPreferences plugInSnapshottingEnabled]): (-[WebPreferences setPlugInSnapshottingEnabled:]): * WebView/WebPreferencesPrivate.h: * WebView/WebView.mm: (-[WebView _preferencesChanged:]): Update settings based on preference. 2012-10-04 Rik Cabanier Turn Compositing on by default in WebKit build https://bugs.webkit.org/show_bug.cgi?id=98315 Reviewed by Simon Fraser. enable -webkit-blend-mode on trunk. * Configurations/FeatureDefines.xcconfig: 2012-10-04 Simon Fraser Final part of "sync" to "flush" renaming https://bugs.webkit.org/show_bug.cgi?id=98430 Reviewed by Tim Horton. Change method names on GraphicsLayer and GraphicsLayerClient that refer to "sync" to use the term "flush" instead, to be consistent with the rest of the code. * WebView/WebView.mm: 2012-10-03 Benjamin Poulain [WK2] Support all attributes of GeolocationPosition https://bugs.webkit.org/show_bug.cgi?id=98212 Reviewed by Sam Weinig. Add an internal constructor for the sake of testing. A similar API is used on iOS. * WebView/WebGeolocationPosition.mm: (-[WebGeolocationPosition initWithGeolocationPosition:]): 2012-10-04 Simon Fraser Standardize on "flush" terminology for compositing layer flushing/syncing https://bugs.webkit.org/show_bug.cgi?id=98321 Reviewed by Simon Fraser. Rename compositing-related methods that refer to "syncing" to instead refer to "flushing". * WebCoreSupport/WebChromeClient.h: * WebCoreSupport/WebChromeClient.mm: (WebChromeClient::scheduleCompositingLayerFlush): * WebView/WebView.mm: (-[WebView _flushCompositingChanges]): (LayerFlushController::flushLayers): (-[WebView _scheduleCompositingLayerFlush]): * WebView/WebViewInternal.h: == Rolled over to ChangeLog-2012-10-02 ==