2012-08-05 Peter Wang Web Inspector: [JSC] implement setting breakpoints by line:column https://bugs.webkit.org/show_bug.cgi?id=53003 Unreviewed, just changed the interface according the changes of base class JSC::Debugger. No JSC can provide the column info of current JS statement, mac porting can use it to support "Pretty Print" debug mode. * WebView/WebScriptDebugger.h: (WebScriptDebugger): * WebView/WebScriptDebugger.mm: (WebScriptDebugger::callEvent): (WebScriptDebugger::atStatement): (WebScriptDebugger::returnEvent): (WebScriptDebugger::exception): (WebScriptDebugger::willExecuteProgram): (WebScriptDebugger::didExecuteProgram): (WebScriptDebugger::didReachBreakpoint): 2012-08-01 Jian Li Add new CSS property "-webkit-widget-region" to expose dashboard region support for other port https://bugs.webkit.org/show_bug.cgi?id=90298 Reviewed by Adam Barth. * Configurations/FeatureDefines.xcconfig: Add ENABLE_WIDGET_REGION define. 2012-08-01 Antti Koivisto Assertion failure in inspector/profiler/heap-snapshot-containment-show-all.html on Lion bot https://bugs.webkit.org/show_bug.cgi?id=92888 Reviewed by Andreas Kling. Protect the WebInspectorWindowController so it doesn't get destroyed during [WebView close] and cause unsafe [WebView dealloc]. * WebCoreSupport/WebInspectorClient.mm: (-[WebInspectorWindowController destroyInspectorView:]): 2012-07-29 Rik Cabanier Add ENABLE_CSS_COMPOSITING flag https://bugs.webkit.org/show_bug.cgi?id=92553 Reviewed by Dirk Schulze. Adds compiler flag CSS_COMPOSITING to build systems to enable CSS blending and compositing. See spec https://dvcs.w3.org/hg/FXTF/rawfile/tip/compositing/index.html * Configurations/FeatureDefines.xcconfig: 2012-07-27 Anders Carlsson Show the unavailable plug-in indicator for Java applets as well https://bugs.webkit.org/show_bug.cgi?id=92521 Reviewed by Sam Weinig. Check if the Java plug-in is blocked before trying to instantiate it. * WebCoreSupport/WebFrameLoaderClient.mm: 2012-07-25 Jer Noble Add setting to enable and disable diagnostic logging. https://bugs.webkit.org/show_bug.cgi?id=92337 Reviewed by Anders Carlsson. Add a WebKit WebPreferences API to set set the WebCore diagnosticLoggingEnabled setting. * WebView/WebPreferenceKeysPrivate.h: * WebView/WebPreferences.mm: (+[WebPreferences initialize]): Register the default value to false. (-[WebPreferences diagnosticLoggingEnabled]): Simple userDefaults accessor. (-[WebPreferences setDiagnosticLoggingEnabled:]): Ditto. * WebView/WebPreferencesPrivate.h: * WebView/WebView.mm: (-[WebView _preferencesChanged:]): Ensure this preference is propagated to Settings whenever the preferences change. 2012-07-25 Pratik Solanki Remove catchesDelegateExceptions from WebViewData and related accessor methods https://bugs.webkit.org/show_bug.cgi?id=90898 Reviewed by Darin Adler. Remove catchesDelegateException ivar from WebViewData and all its accesor methods from WebView. All uses of this flag in WebKit set it to YES and no one calls _setCatchesDelegateExceptions with NO. * WebCoreSupport/WebDragClient.mm: (WebDragClient::startDrag): * WebView/WebDelegateImplementationCaching.mm: (CallDelegate): (CallDelegateReturningFloat): (CallDelegateReturningBoolean): (CallResourceLoadDelegateReturningBoolean): (CallFormDelegate): (CallFormDelegateReturningBoolean): * WebView/WebView.mm: (-[WebView _commonInitializationWithFrameName:groupName:]): (-[WebView _policyDelegateForwarder]): (-[WebView _UIDelegateForwarder]): (-[WebView _editingDelegateForwarder]): (-[_WebSafeForwarder initWithTarget:defaultTarget:]): (-[_WebSafeForwarder forwardInvocation:]): * WebView/WebViewData.h: * WebView/WebViewPrivate.h: 2012-07-23 Simon Fraser Part 2 of: Implement sticky positioning https://bugs.webkit.org/show_bug.cgi?id=90046 Reviewed by Ojan Vafai. Turn on ENABLE_CSS_STICKY_POSITION. * Configurations/FeatureDefines.xcconfig: 2012-07-23 Pierre Rossi Unify numTouchEventHandlersChanged and needTouchEvents in the chrome client https://bugs.webkit.org/show_bug.cgi?id=91006 Reviewed by Ryosuke Niwa. Remove numTouchEventHandlersChanged stub. * WebCoreSupport/WebChromeClient.h: 2012-07-23 Simon Fraser Part 1 of: Implement sticky positioning https://bugs.webkit.org/show_bug.cgi?id=90046 Reviewed by Ojan Vafai. Add ENABLE_CSS_STICKY_POSITION, defaulting to off initially. Sort the ENABLE_CSS lines in the file. Make sure all the flags are in FEATURE_DEFINES. * Configurations/FeatureDefines.xcconfig: 2012-07-23 Kent Tamura Rename ENABLE_METER_TAG and ENABLE_PROGRESS_TAG to ENABLE_METER_ELEMENT and ENABLE_PROGRESS_ELEMENT respectively https://bugs.webkit.org/show_bug.cgi?id=91941 Reviewed by Kentaro Hara. A flag name for an elmement should be ENABLE_*_ELEMENT. * Configurations/FeatureDefines.xcconfig: 2012-07-22 Kent Tamura Rename ENABLE_DETAILS to ENABLE_DETAILS_ELEMENT https://bugs.webkit.org/show_bug.cgi?id=91928 Reviewed by Kentaro Hara. A flag name for an elmement should be ENABLE_*_ELEMENT. * Configurations/FeatureDefines.xcconfig: 2012-07-20 Kent Tamura Rename ENABLE_DATALIST to ENABLE_DATALIST_ELEMENT https://bugs.webkit.org/show_bug.cgi?id=91846 Reviewed by Kentaro Hara. A flag name for an elmement should be ENABLE_*_ELEMENT. * Configurations/FeatureDefines.xcconfig: 2012-07-18 Benjamin Poulain [Mac] Make WebDataSourcePrivate lighter https://bugs.webkit.org/show_bug.cgi?id=91511 Reviewed by Anders Carlsson. Make WebDataSourcePrivate a simple C++ class and use smart pointers for memory management. Since the "loader" attribute is only set on initialization, all the assertions spread in various function are removed in favor of assertions on initialization. * WebView/WebDataSource.h: * WebView/WebDataSource.mm: (WebDataSourcePrivate): (WebDataSourcePrivate::WebDataSourcePrivate): (WebDataSourcePrivate::~WebDataSourcePrivate): Use a class instead of a Objective-C object for WebDataSourcePrivate. Use smart pointers instead of ref counting manually. (-[WebDataSource _setRepresentation:]): (-[WebDataSource _addSubframeArchives:]): (-[WebDataSource _transferApplicationCache:]): (-[WebDataSource _setDeferMainResourceDataLoad:]): (-[WebDataSource _documentFragmentWithArchive:]): (-[WebDataSource _initWithDocumentLoader:]): (+[WebDataSource initialize]): (-[WebDataSource dealloc]): (-[WebDataSource finalize]): WebDataSource takes the special initialization and destruction that was done in WebDataSourcePrivate. (-[WebDataSource representation]): 2012-07-17 Vivek Galatage Web Inspector: refactor InspectorController::connectFrontend() to accept InspectorFrontendChannel. https://bugs.webkit.org/show_bug.cgi?id=91196 Reviewed by Pavel Feldman. Refactoring InspectorClients. InspectorClient::openInspectorFrontend now returning the InspectorFrontendChannel. * WebCoreSupport/WebInspectorClient.h: (WebInspectorClient): * WebCoreSupport/WebInspectorClient.mm: (WebInspectorClient::openInspectorFrontend): 2012-07-17 David Barr Introduce ENABLE_CSS_IMAGE_ORIENTATION compile flag https://bugs.webkit.org/show_bug.cgi?id=89055 Reviewed by Kent Tamura. The css3-images module is at candidate recommendation. http://www.w3.org/TR/2012/CR-css3-images-20120417/#the-image-orientation Add a configuration option for CSS image-orientation support, disabling it by default. * Configurations/FeatureDefines.xcconfig: 2012-07-15 Joseph Pecoraro Fix case sensitive build issue. Unreviewed build fix. * WebView/WebPreferences.mm: 2012-07-15 Benjamin Poulain Make WebPreferencesPrivate a simple struct https://bugs.webkit.org/show_bug.cgi?id=91330 Reviewed by Filip Pizlo. To avoid taking time creating a new Objective-C object for WebPreferencesPrivate, we can just make it a simple struct. * WebView/WebPreferences.h: * WebView/WebPreferences.mm: (WebPreferencesPrivate): (WebPreferencesPrivate::WebPreferencesPrivate): Replace the Objective-C WebPreferencesPrivate by a struct. Remove IBCreatorID from the object as it is unused. Use RetainPtr for the Objective-C attribute to avoid tracking their memory manually. (-[WebPreferences initWithIdentifier:]): Change the order of the initialization to avoid allocating anyting if a WebPreferences exists for the identifier. Both [NSObject init] and WebPreferencesPrivate allocation are moved after the fast path. (-[WebPreferences initWithCoder:]): (-[WebPreferences encodeWithCoder:]): (-[WebPreferences dealloc]): (-[WebPreferences identifier]): (-[WebPreferences _valueForKey:]): (-[WebPreferences _setStringValue:forKey:]): (-[WebPreferences _setIntegerValue:forKey:]): (-[WebPreferences _setFloatValue:forKey:]): (-[WebPreferences _setBoolValue:forKey:]): (-[WebPreferences _setLongLongValue:forKey:]): (-[WebPreferences _setUnsignedLongLongValue:forKey:]): 2012-07-14 Benjamin Poulain [Mac] Do not try to update the cache model for every WebPreferences change https://bugs.webkit.org/show_bug.cgi?id=91302 Reviewed by Joseph Pecoraro. WebView was listening to any change on any WebPreferences in order to update the cache model. This is unneeded in most cases, we can just listen to updates of the CacheModel property. * WebView/WebPreferences.mm: (-[WebPreferences initWithIdentifier:]): (-[WebPreferences _postCacheModelChangedNotification]): (-[WebPreferences setCacheModel:]): * WebView/WebPreferencesPrivate.h: * WebView/WebView.mm: (+[WebView initialize]): (+[WebView _cacheModelChangedNotification:]): 2012-07-14 Sheriff Bot Unreviewed, rolling out r122665. http://trac.webkit.org/changeset/122665 https://bugs.webkit.org/show_bug.cgi?id=91321 Broke Mac builds (Requested by rniwa on #webkit). * WebView/WebPreferences.mm: (-[WebPreferences initWithIdentifier:]): (-[WebPreferences setCacheModel:]): * WebView/WebPreferencesPrivate.h: * WebView/WebView.mm: (+[WebView initialize]): (+[WebView _preferencesChangedNotification:]): 2012-07-13 Benjamin Poulain [Mac] Do not try to update the cache model for every WebPreferences change https://bugs.webkit.org/show_bug.cgi?id=91302 Reviewed by Joseph Pecoraro. WebView was listening to any change on any WebPreferences in order to update the cache model. This is unneeded in most cases, we can just listen to updates of the CacheModel property. * WebView/WebPreferences.mm: (-[WebPreferences initWithIdentifier:]): (-[WebPreferences _postCacheModelChangedNotification]): (-[WebPreferences setCacheModel:]): * WebView/WebPreferencesPrivate.h: * WebView/WebView.mm: (+[WebView initialize]): (+[WebView _cacheModelChangedNotification:]): 2012-07-11 Mark Rowe Fix a logic error in the #if so that the correct code is compiled on Snow Leopard. I introduced this in r122403 when I inverted the sense of the #if. * WebView/WebFullScreenController.mm: 2012-07-11 Mark Rowe Build against the latest SDK when targeting older OS X versions. Reviewed by Dan Bernstein. The deployment target is already set to the version that we're targeting, and it's that setting which determines which functionality from the SDK is available to us. * Configurations/Base.xcconfig: 2012-07-11 Mark Rowe WebFullScreenController and WKFullScreenWindowController shouldn't add unprefixed methods to AppKit classes Reviewed by Dan Bernstein. * WebView/WebFullScreenController.mm: (convertRectToScreen): Add a static helper method that calls through to -[NSWindow convertRectToScreen:] on OS versions where it exists but otherwise provides a compatibility implementation of it. (-[WebFullScreenController enterFullScreen:]): Call our new helper. 2012-07-11 Mark Rowe Remove BUILDING_ON / TARGETING macros in favor of system availability macros This removal was handled by a script that translates the relevant macros in to the equivalent checks using the system availability macros. Reviewed by Filip Pizlo. * DefaultDelegates/WebDefaultContextMenuDelegate.mm: * Misc/WebKitErrors.m: * Misc/WebNSControlExtras.m: * Misc/WebNSFileManagerExtras.mm: * Plugins/Hosted/WebHostedNetscapePluginView.mm: * Plugins/WebBaseNetscapePluginView.mm: * Plugins/WebNetscapePluginView.mm: * WebCoreSupport/WebChromeClient.mm: * WebCoreSupport/WebEditorClient.mm: * WebCoreSupport/WebFrameLoaderClient.mm: * WebCoreSupport/WebSystemInterface.mm: * WebView/WebClipView.mm: * WebView/WebDynamicScrollBarsView.mm: * WebView/WebFrameView.mm: * WebView/WebFullScreenController.mm: * WebView/WebHTMLView.mm: * WebView/WebHTMLViewInternal.h: * WebView/WebPDFDocumentExtras.mm: * WebView/WebPreferences.mm: * WebView/WebResourceInternal.h: * WebView/WebScriptDebugDelegate.h: * WebView/WebView.mm: * WebView/WebViewPrivate.h: 2012-07-11 Anders Carlsson Add -Wtautological-compare and -Wsign-compare warning flags https://bugs.webkit.org/show_bug.cgi?id=90994 Reviewed by Mark Rowe. * Configurations/Base.xcconfig: 2012-07-11 Mark Rowe Add a Mountain Lion version of libWebKitSystemInterface.a. Reviewed by John Sullivan. * Configurations/DebugRelease.xcconfig: Look for the library under its expected name. 2012-07-10 Adam Barth WebCore::Settings for Hixie76 WebSocket protocol doesn't do anything and should be removed https://bugs.webkit.org/show_bug.cgi?id=90910 Reviewed by Eric Seidel. * WebView/WebPreferences.mm: (+[WebPreferences initialize]): (-[WebPreferences setHixie76WebSocketProtocolEnabled:]): (-[WebPreferences isHixie76WebSocketProtocolEnabled]): * WebView/WebView.mm: (-[WebView _preferencesChanged:]): 2012-07-09 Matt Falkenhagen Add ENABLE_DIALOG_ELEMENT and skeleton files https://bugs.webkit.org/show_bug.cgi?id=90521 Reviewed by Kent Tamura. * Configurations/FeatureDefines.xcconfig: 2012-07-09 Yongjun Zhang Consider closing unused localStorage database after a timeout. https://bugs.webkit.org/show_bug.cgi?id=90713 For a localStorage, if there is no active document referencing to it for certain amount of time (300 seconds), we can close the underlying sqlite database. Reviewed by Brady Eidson. * Storage/WebStorageManager.mm: (+[WebStorageManager setStorageDatabaseIdleInterval:]): add a new method for DumpRenderTree to set the timeout that we will wait before closing database. (initializeLocalStoragePath): * Storage/WebStorageManagerPrivate.h: 2012-07-09 Sheriff Bot Unreviewed, rolling out r122107. http://trac.webkit.org/changeset/122107 https://bugs.webkit.org/show_bug.cgi?id=90794 Build failure on Mac debug bots (Requested by falken_ on #webkit). * Configurations/FeatureDefines.xcconfig: 2012-07-09 Matt Falkenhagen Add ENABLE_DIALOG_ELEMENT and skeleton files https://bugs.webkit.org/show_bug.cgi?id=90521 Reviewed by Kent Tamura. * Configurations/FeatureDefines.xcconfig: 2012-07-04 John Mellor Text Autosizing: Add compile flag and runtime setting https://bugs.webkit.org/show_bug.cgi?id=87394 This patch renames Font Boosting to Text Autosizing. Reviewed by Adam Barth. * Configurations/FeatureDefines.xcconfig: 2012-07-02 Benjamin Poulain Do not do any logging initialization when logging is disabled https://bugs.webkit.org/show_bug.cgi?id=90228 Reviewed by Simon Fraser. * Misc/WebIconDatabase.mm: (-[WebIconDatabase _scaleIcon:toSize:]): * Misc/WebKitLogging.h: * Misc/WebKitLogging.m: * WebView/WebHTMLView.mm: (-[WebHTMLView _attributeStringFromDOMRange:]): * WebView/WebView.mm: (-[WebView _commonInitializationWithFrameName:groupName:]): 2012-07-01 Timothy Hatcher Make the "Inspect Element" context menu item appear in nightly builds again. rdar://problem/11702613 https://webkit.org/b/89323 Reviewed by Dan Bernstein. * WebView/WebUIDelegatePrivate.h: Add missing enums that were added in ContextMenuItem.h but left out here. 2012-06-29 Sheriff Bot Unreviewed, rolling out r121529. http://trac.webkit.org/changeset/121529 https://bugs.webkit.org/show_bug.cgi?id=90260 Failed to compile on Chromium WebKitMacBuilder (Requested by keishi on #webkit). * DefaultDelegates/WebDefaultContextMenuDelegate.mm: (-[WebDefaultUIDelegate menuItemWithTag:target:representedObject:]): * Misc/WebNSControlExtras.m: (-[NSControl sizeToFitAndAdjustWindowHeight]): * WebCoreSupport/WebEditorClient.mm: (WebEditorClient::shouldEraseMarkersAfterChangeSelection): (WebEditorClient::getGuessesForWord): * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::dispatchDidFirstLayout): (WebFrameLoaderClient::provisionalLoadStarted): * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): * WebView/WebDynamicScrollBarsView.mm: (-[WebDynamicScrollBarsView scrollWheel:]): * WebView/WebFullScreenController.mm: (-[WebFullScreenController finishedEnterFullScreenAnimation:]): (-[WebFullScreenController exitFullScreen]): * WebView/WebHTMLView.mm: (-[WebHTMLView _pasteWithPasteboard:allowPlainText:]): * WebView/WebView.mm: (+[WebView initialize]): (-[WebView _deviceScaleFactor]): 2012-06-29 Eric Seidel Remove more BUILDING_ON_LEOPARD branches now that no port builds on Leopard https://bugs.webkit.org/show_bug.cgi?id=90252 Reviewed by Ryosuke Niwa. * DefaultDelegates/WebDefaultContextMenuDelegate.mm: (-[WebDefaultUIDelegate menuItemWithTag:target:representedObject:]): * Misc/WebNSControlExtras.m: (-[NSControl sizeToFitAndAdjustWindowHeight]): * WebCoreSupport/WebEditorClient.mm: (WebEditorClient::shouldEraseMarkersAfterChangeSelection): (WebEditorClient::getGuessesForWord): * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::dispatchDidFirstLayout): (WebFrameLoaderClient::provisionalLoadStarted): * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): * WebView/WebDynamicScrollBarsView.mm: (-[WebDynamicScrollBarsView scrollWheel:]): * WebView/WebFullScreenController.mm: (-[WebFullScreenController finishedEnterFullScreenAnimation:]): (-[WebFullScreenController exitFullScreen]): * WebView/WebHTMLView.mm: (-[WebHTMLView _pasteWithPasteboard:allowPlainText:]): * WebView/WebView.mm: (+[WebView initialize]): (-[WebView _deviceScaleFactor]): 2012-06-25 Mark Hahnenberg JSLock should be per-JSGlobalData https://bugs.webkit.org/show_bug.cgi?id=89123 Reviewed by Geoffrey Garen. Changed all sites that used JSLock to instead use the new JSLockHolder and pass in the correct JS context that the code is about to interact with that needs protection. Also added a couple JSLocks to places that didn't already have it that needed it. * DOM/WebDOMOperations.mm: (JSC): * Misc/WebCoreStatistics.mm: (+[WebCoreStatistics javaScriptObjectsCount]): (+[WebCoreStatistics javaScriptGlobalObjectsCount]): (+[WebCoreStatistics javaScriptProtectedObjectsCount]): (+[WebCoreStatistics javaScriptProtectedGlobalObjectsCount]): (+[WebCoreStatistics javaScriptProtectedObjectTypeCounts]): (+[WebCoreStatistics javaScriptObjectTypeCounts]): (+[WebCoreStatistics shouldPrintExceptions]): (+[WebCoreStatistics setShouldPrintExceptions:]): (+[WebCoreStatistics memoryStatistics]): (+[WebCoreStatistics javaScriptReferencedObjectsCount]): * Plugins/Hosted/NetscapePluginInstanceProxy.mm: (WebKit::NetscapePluginInstanceProxy::evaluate): (WebKit::NetscapePluginInstanceProxy::invoke): (WebKit::NetscapePluginInstanceProxy::invokeDefault): (WebKit::NetscapePluginInstanceProxy::construct): (WebKit::NetscapePluginInstanceProxy::getProperty): (WebKit::NetscapePluginInstanceProxy::setProperty): (WebKit::NetscapePluginInstanceProxy::removeProperty): (WebKit::NetscapePluginInstanceProxy::hasMethod): (WebKit::NetscapePluginInstanceProxy::enumerate): (WebKit::NetscapePluginInstanceProxy::addValueToArray): (WebKit::NetscapePluginInstanceProxy::moveGlobalExceptionToExecState): * Plugins/WebNetscapePluginStream.mm: (WebNetscapePluginStream::wantsAllStreams): * Plugins/WebNetscapePluginView.mm: (-[WebNetscapePluginView sendEvent:isDrawRect:]): (-[WebNetscapePluginView privateBrowsingModeDidChange]): (-[WebNetscapePluginView setWindowIfNecessary]): (-[WebNetscapePluginView createPluginScriptableObject]): (-[WebNetscapePluginView getFormValue:]): (-[WebNetscapePluginView evaluateJavaScriptPluginRequest:]): (-[WebNetscapePluginView webFrame:didFinishLoadWithReason:]): (-[WebNetscapePluginView loadPluginRequest:]): (-[WebNetscapePluginView _printedPluginBitmap]): * Plugins/WebPluginController.mm: (+[WebPluginController plugInViewWithArguments:fromPluginPackage:]): (-[WebPluginController stopOnePlugin:]): (-[WebPluginController destroyOnePlugin:]): (-[WebPluginController startAllPlugins]): (-[WebPluginController addPlugin:]): * WebView/WebFrame.mm: (-[WebFrame _stringByEvaluatingJavaScriptFromString:forceUserGesture:]): (-[WebFrame _stringByEvaluatingJavaScriptFromString:withGlobalObject:inScriptWorld:]): * WebView/WebScriptDebugDelegate.mm: (-[WebScriptCallFrame scopeChain]): (-[WebScriptCallFrame evaluateWebScript:]): * WebView/WebView.mm: (+[WebView _reportException:inContext:]): (-[WebView aeDescByEvaluatingJavaScriptFromString:]): (-[WebView _computedStyleIncludingVisitedInfo:forElement:]): 2012-06-23 Sheriff Bot Unreviewed, rolling out r121058. http://trac.webkit.org/changeset/121058 https://bugs.webkit.org/show_bug.cgi?id=89809 Patch causes plugins tests to crash in GTK debug builds (Requested by zdobersek on #webkit). * DOM/WebDOMOperations.mm: (JSC): * Misc/WebCoreStatistics.mm: (+[WebCoreStatistics javaScriptObjectsCount]): (+[WebCoreStatistics javaScriptGlobalObjectsCount]): (+[WebCoreStatistics javaScriptProtectedObjectsCount]): (+[WebCoreStatistics javaScriptProtectedGlobalObjectsCount]): (+[WebCoreStatistics javaScriptProtectedObjectTypeCounts]): (+[WebCoreStatistics javaScriptObjectTypeCounts]): (+[WebCoreStatistics shouldPrintExceptions]): (+[WebCoreStatistics setShouldPrintExceptions:]): (+[WebCoreStatistics memoryStatistics]): (+[WebCoreStatistics javaScriptReferencedObjectsCount]): * Plugins/Hosted/NetscapePluginInstanceProxy.mm: (WebKit::NetscapePluginInstanceProxy::evaluate): (WebKit::NetscapePluginInstanceProxy::invoke): (WebKit::NetscapePluginInstanceProxy::invokeDefault): (WebKit::NetscapePluginInstanceProxy::construct): (WebKit::NetscapePluginInstanceProxy::getProperty): (WebKit::NetscapePluginInstanceProxy::setProperty): (WebKit::NetscapePluginInstanceProxy::removeProperty): (WebKit::NetscapePluginInstanceProxy::hasMethod): (WebKit::NetscapePluginInstanceProxy::enumerate): (WebKit::NetscapePluginInstanceProxy::addValueToArray): (WebKit::NetscapePluginInstanceProxy::moveGlobalExceptionToExecState): * Plugins/WebNetscapePluginStream.mm: (WebNetscapePluginStream::wantsAllStreams): * Plugins/WebNetscapePluginView.mm: (-[WebNetscapePluginView sendEvent:isDrawRect:]): (-[WebNetscapePluginView privateBrowsingModeDidChange]): (-[WebNetscapePluginView setWindowIfNecessary]): (-[WebNetscapePluginView createPluginScriptableObject]): (-[WebNetscapePluginView getFormValue:]): (-[WebNetscapePluginView evaluateJavaScriptPluginRequest:]): (-[WebNetscapePluginView webFrame:didFinishLoadWithReason:]): (-[WebNetscapePluginView loadPluginRequest:]): (-[WebNetscapePluginView _printedPluginBitmap]): * Plugins/WebPluginController.mm: (+[WebPluginController plugInViewWithArguments:fromPluginPackage:]): (-[WebPluginController stopOnePlugin:]): (-[WebPluginController destroyOnePlugin:]): (-[WebPluginController startAllPlugins]): (-[WebPluginController addPlugin:]): * WebView/WebFrame.mm: (-[WebFrame _stringByEvaluatingJavaScriptFromString:forceUserGesture:]): (-[WebFrame _stringByEvaluatingJavaScriptFromString:withGlobalObject:inScriptWorld:]): * WebView/WebScriptDebugDelegate.mm: (-[WebScriptCallFrame scopeChain]): (-[WebScriptCallFrame evaluateWebScript:]): * WebView/WebView.mm: (+[WebView _reportException:inContext:]): (-[WebView aeDescByEvaluatingJavaScriptFromString:]): (-[WebView _computedStyleIncludingVisitedInfo:forElement:]): 2012-06-22 Alexandru Chiculita [CSS Shaders] Re-enable the CSS Shaders compile time flag on Safari Mac https://bugs.webkit.org/show_bug.cgi?id=89781 Reviewed by Dean Jackson. Added ENABLE_CSS_SHADERS flag as enabled by default on Safari for Mac. * Configurations/FeatureDefines.xcconfig: 2012-06-20 Mark Hahnenberg JSLock should be per-JSGlobalData https://bugs.webkit.org/show_bug.cgi?id=89123 Reviewed by Gavin Barraclough. Changed all sites that used JSLock to instead use the new JSLockHolder and pass in the correct JS context that the code is about to interact with that needs protection. * DOM/WebDOMOperations.mm: (JSC): * Misc/WebCoreStatistics.mm: (+[WebCoreStatistics javaScriptObjectsCount]): (+[WebCoreStatistics javaScriptGlobalObjectsCount]): (+[WebCoreStatistics javaScriptProtectedObjectsCount]): (+[WebCoreStatistics javaScriptProtectedGlobalObjectsCount]): (+[WebCoreStatistics javaScriptProtectedObjectTypeCounts]): (+[WebCoreStatistics javaScriptObjectTypeCounts]): (+[WebCoreStatistics shouldPrintExceptions]): (+[WebCoreStatistics setShouldPrintExceptions:]): (+[WebCoreStatistics memoryStatistics]): (+[WebCoreStatistics javaScriptReferencedObjectsCount]): * Plugins/Hosted/NetscapePluginInstanceProxy.mm: (WebKit::NetscapePluginInstanceProxy::evaluate): (WebKit::NetscapePluginInstanceProxy::invoke): (WebKit::NetscapePluginInstanceProxy::invokeDefault): (WebKit::NetscapePluginInstanceProxy::construct): (WebKit::NetscapePluginInstanceProxy::getProperty): (WebKit::NetscapePluginInstanceProxy::setProperty): (WebKit::NetscapePluginInstanceProxy::removeProperty): (WebKit::NetscapePluginInstanceProxy::hasMethod): (WebKit::NetscapePluginInstanceProxy::enumerate): (WebKit::NetscapePluginInstanceProxy::addValueToArray): (WebKit::NetscapePluginInstanceProxy::moveGlobalExceptionToExecState): * Plugins/WebNetscapePluginStream.mm: (WebNetscapePluginStream::wantsAllStreams): * Plugins/WebNetscapePluginView.mm: (-[WebNetscapePluginView sendEvent:isDrawRect:]): (-[WebNetscapePluginView privateBrowsingModeDidChange]): (-[WebNetscapePluginView setWindowIfNecessary]): (-[WebNetscapePluginView createPluginScriptableObject]): (-[WebNetscapePluginView getFormValue:]): (-[WebNetscapePluginView evaluateJavaScriptPluginRequest:]): (-[WebNetscapePluginView webFrame:didFinishLoadWithReason:]): (-[WebNetscapePluginView loadPluginRequest:]): (-[WebNetscapePluginView _printedPluginBitmap]): * Plugins/WebPluginController.mm: (+[WebPluginController plugInViewWithArguments:fromPluginPackage:]): (-[WebPluginController stopOnePlugin:]): (-[WebPluginController destroyOnePlugin:]): (-[WebPluginController startAllPlugins]): (-[WebPluginController addPlugin:]): * WebView/WebFrame.mm: (-[WebFrame _stringByEvaluatingJavaScriptFromString:forceUserGesture:]): (-[WebFrame _stringByEvaluatingJavaScriptFromString:withGlobalObject:inScriptWorld:]): * WebView/WebScriptDebugDelegate.mm: (-[WebScriptCallFrame scopeChain]): (-[WebScriptCallFrame evaluateWebScript:]): * WebView/WebView.mm: (+[WebView _reportException:inContext:]): (-[WebView aeDescByEvaluatingJavaScriptFromString:]): (-[WebView _computedStyleIncludingVisitedInfo:forElement:]): 2012-06-22 Amy Ousterhout Renamed DeviceOrientation to DeviceOrientationData https://bugs.webkit.org/show_bug.cgi?id=88663 Reviewed by Steve Block. Updated files to use the renamed DeviceOrientationData instead of DeviceOrientation. This change makes DeviceOrientationData consistent with DeviceMotionData. * WebCoreSupport/WebDeviceOrientationClient.h: (WebDeviceOrientationClient): * WebCoreSupport/WebDeviceOrientationClient.mm: (WebDeviceOrientationClient::lastOrientation): * WebView/WebDeviceOrientation.mm: * WebView/WebDeviceOrientationInternal.h: 2012-06-20 Garret Kelly Moving cookieEnabled/setCookieEnabled from Page to Settings. https://bugs.webkit.org/show_bug.cgi?id=89545 Reviewed by Adam Barth. * WebView/WebView.mm: (-[WebView _cookieEnabled]): (-[WebView _setCookieEnabled:]): 2012-06-19 Dan Bernstein WebKit/mac part of: Paginated display API doesn’t allow setting the page progression direction https://bugs.webkit.org/show_bug.cgi?id=89394 Reviewed by Darin Adler. * WebView/WebView.mm: (-[WebView _setPaginationMode:]): Changed to map new WebPaginationMode values to new Pagination::Mode values. (-[WebView _paginationMode]): Similarly, in the opposite direction. * WebView/WebViewPrivate.h: Replaced WebPaginationMode values with ones that specify an axis and a direction along that axis. 2012-06-18 Andy Estes [Mac] -[WebPDFView _menuItemsFromPDFKitForEvent:] leaks NSMenuItems https://bugs.webkit.org/show_bug.cgi?id=89434 Reviewed by Darin Adler. * WebView/WebPDFView.mm: (-[WebPDFView _menuItemsFromPDFKitForEvent:]): Release copied NSMenuItems once they're stored in copiedItems. 2012-06-19 Mike West Introduce ENABLE_CSP_NEXT configuration flag. https://bugs.webkit.org/show_bug.cgi?id=89300 Reviewed by Adam Barth. The 1.0 draft of the Content Security Policy spec is just about to move to Last Call. We'll hide work on the upcoming 1.1 spec behind this ENABLE flag, disabled by default. Spec: https://dvcs.w3.org/hg/content-security-policy/raw-file/tip/csp-specification.dev.html * Configurations/FeatureDefines.xcconfig: 2012-06-14 Jia Pu Mark text with text alternative with blue underline. https://bugs.webkit.org/show_bug.cgi?id=83047 Reviewed by Enrica Casucci. Changes in WebKit include implementation of new functions declared in AlternativeTextClient, and logic for calling Editor::insertDictatedText() instead of Editor::insertText() when there's alternatives attached to the input string. * WebCoreSupport/CorrectionPanel.mm: (correctionIndicatorType): (CorrectionPanel::handleAcceptedReplacement): * WebCoreSupport/WebAlternativeTextClient.h: (WebAlternativeTextClient): * WebCoreSupport/WebAlternativeTextClient.mm: (WebAlternativeTextClient::showCorrectionAlternative): (WebAlternativeTextClient::dismissAlternative): (WebAlternativeTextClient::dismissAlternativeSoon): (WebAlternativeTextClient::recordAutocorrectionResponse): (WebAlternativeTextClient::removeDictationAlternatives): (WebAlternativeTextClient::showDictationAlternativeUI): (WebAlternativeTextClient::dismissDictationAlternativeUI): (WebAlternativeTextClient::dictationAlternatives): * WebView/WebHTMLView.mm: (-[WebHTMLView validAttributesForMarkedText]): (-[WebHTMLView insertText:]): * WebView/WebView.mm: (-[WebView handleAcceptedAlternativeText:]): (-[WebView _getWebCoreDictationAlternatives:fromTextAlternatives:]): (-[WebView _showDictationAlternativeUI:WebCore::forDictationContext:]): (-[WebView _dismissDictationAlternativeUI]): (-[WebView _removeDictationAlternatives:]): (-[WebView _dictationAlternatives:]): * WebView/WebViewData.h: * WebView/WebViewData.mm: (-[WebViewPrivate init]): * WebView/WebViewInternal.h: * WebView/WebViewPrivate.h: 2012-06-11 Alexis Menard [CSS3 Backgrounds and Borders] Protect box-decoration-break behind a feature flag. https://bugs.webkit.org/show_bug.cgi?id=88804 Reviewed by Tony Chang. Protect box-decoration-break behind a feature flag enabled by default. * Configurations/FeatureDefines.xcconfig: 2012-06-11 Sam Weinig Remove support for disconnected/excluded from search frames, they are not used by Safari anymore https://bugs.webkit.org/show_bug.cgi?id=88723 Reviewed by Dan Bernstein. * WebView/WebFrame.mm: * WebView/WebFramePrivate.h: Remove -[WebFrame _setIsDisconnected:] and -[WebFrame _setExcludeFromTextSearch:] 2012-06-10 Sheriff Bot Unreviewed, rolling out r119955. http://trac.webkit.org/changeset/119955 https://bugs.webkit.org/show_bug.cgi?id=88758 Breaks Chromium compile - Chromium depends on removed API (Requested by dominicc on #webkit). * WebView/WebFrame.mm: (-[WebFrame _setIsDisconnected:]): (-[WebFrame _setExcludeFromTextSearch:]): * WebView/WebFramePrivate.h: 2012-06-10 Sam Weinig Remove support for disconnected/excluded from search frames, they are not used by Safari anymore https://bugs.webkit.org/show_bug.cgi?id=88723 Reviewed by Dan Bernstein. * WebView/WebFrame.mm: * WebView/WebFramePrivate.h: Remove -[WebFrame _setIsDisconnected:] and -[WebFrame _setExcludeFromTextSearch:] 2012-06-09 Sukolsak Sakshuwong Add UNDO_MANAGER flag https://bugs.webkit.org/show_bug.cgi?id=87908 Reviewed by Tony Chang. * Configurations/FeatureDefines.xcconfig: 2012-06-07 Kentaro Hara Reduce Node object size from 72 byte to 64 byte https://bugs.webkit.org/show_bug.cgi?id=88528 Reviewed by Ryosuke Niwa. Added a symbol for callRemovedLastRef(). * WebKit.order: 2012-06-06 Andy Estes Wrap uppercaseWord, lowercaseWord, and capitalizeWord with USE(APPKIT) https://bugs.webkit.org/show_bug.cgi?id=88504 Reviewed by Dan Bernstein. uppercaseWord, lowercaseWord, and capitalizeWord are methods declared by NSResponder that subclasses are expected to implement. WebKit should only support these implementations on platforms that use AppKit. * WebCoreSupport/WebEditorClient.h: * WebCoreSupport/WebEditorClient.mm: 2012-06-05 Anders Carlsson Build fix. * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::createPlugin): The error constant has been renamed. 2012-06-05 Anders Carlsson Rename a plug-in loading error constant https://bugs.webkit.org/show_bug.cgi?id=88381 Reviewed by Sam Weinig. * Misc/WebKitErrors.h: 2012-06-05 Dongwoo Im Add 'isProtocolHandlerRegistered' and 'unregisterProtocolHandler'. https://bugs.webkit.org/show_bug.cgi?id=73176 Reviewed by Adam Barth. Two more APIs are added in Custom Scheme Handler specification. http://dev.w3.org/html5/spec/Overview.html#custom-handlers One is 'isProtocolHandlerRegistered' to query whether the specific URL is registered or not. The other is 'unregisterProtocolHandler' to remove the registered URL. * Configurations/FeatureDefines.xcconfig: Add a macro 'ENABLE_CUSTOM_SCHEME_HANDLER'. 2012-06-04 David Kilzer BUILD FIX: FeatureDefines.xcconfig should match across projects * Configurations/FeatureDefines.xcconfig: - Fix sort order of ENABLE_CSS3_FLEXBOX. - Fix typo in ENABLE_FONT_BOOSTING. - Add missing ENABLE_LEGACY_CSS_VENDOR_PREFIXES. 2012-06-02 Yongjun Zhang loadRequest should check for empty URLs. https://bugs.webkit.org/show_bug.cgi?id=88154 In [WebFrame loadRequest], if the url is invalid and not nil, we transform it to file: url. However, WebKit client could send down an empty URL that makes us transform it to file: url as well. We should skip that as we did for nil URLs. Reviewed by Brady Eidson. * WebView/WebFrame.mm: (-[WebFrame loadRequest:]): 2012-06-01 Michael Saboff WebFrame::_stringByEvaluatingJavaScriptFromString methods don't handle nil string https://bugs.webkit.org/show_bug.cgi?id=88109 Reviewed by Geoffrey Garen. Added short circuit return when the NSString to evaluate is nil. * WebView/WebFrame.mm: (-[WebFrame _stringByEvaluatingJavaScriptFromString:forceUserGesture:]): (-[WebFrame _stringByEvaluatingJavaScriptFromString:withGlobalObject:inScriptWorld:]): 2012-05-31 Hajime Morrita REGRESSION(r117572): editing/spelling/spellcheck-async-remove-frame.html crashes on Mac https://bugs.webkit.org/show_bug.cgi?id=86859 Reviewed by Ryosuke Niwa. * WebCoreSupport/WebEditorClient.h: * WebCoreSupport/WebEditorClient.mm: (-[WebEditorSpellCheckResponder initWithClient:sequence:results:]): (-[WebEditorSpellCheckResponder perform]): (WebEditorClient::didCheckSucceeded): (WebEditorClient::requestCheckingOfString): 2012-05-31 Andy Estes Disentangle code that relies on USE(AUTOMATIC_TEXT_REPLACEMENT) from that which merely relies on PLATFORM(MAC) https://bugs.webkit.org/show_bug.cgi?id=87933 Reviewed by Dan Bernstein. * WebCoreSupport/WebEditorClient.h: * WebCoreSupport/WebEditorClient.mm: 2012-05-29 David Barr Introduce ENABLE_CSS_IMAGE_RESOLUTION compile flag https://bugs.webkit.org/show_bug.cgi?id=87685 Reviewed by Eric Seidel. Add a configuration option for CSS image-resolution support, disabling it by default. * Configurations/FeatureDefines.xcconfig: 2012-05-29 Nikolas Zimmermann SVGViewSpec DOM bindings aka SVGSVGElement.currentView is unimplemented https://bugs.webkit.org/show_bug.cgi?id=15495 Reviewed by Rob Buis. * MigrateHeaders.make: Copy DOMSVGViewSpec*.h headers. 2012-05-25 Jesus Sanchez-Palencia WebKitTestRunner needs to support layoutTestController.setJavaScriptProfilingEnabled https://bugs.webkit.org/show_bug.cgi?id=42328 Reviewed by Eric Seidel. * WebInspector/WebInspector.mm: (-[WebInspector setJavaScriptProfilingEnabled:]): 2012-05-24 Tim Horton Add feature defines for web-facing parts of CSS Regions and Exclusions https://bugs.webkit.org/show_bug.cgi?id=87442 Reviewed by Dan Bernstein. * Configurations/FeatureDefines.xcconfig: 2012-05-24 John Mellor Font Boosting: Add compile flag and runtime setting https://bugs.webkit.org/show_bug.cgi?id=87394 Reviewed by Adam Barth. Add ENABLE_FONT_BOOSTING. * Configurations/FeatureDefines.xcconfig: 2012-05-23 Ojan Vafai add back the ability to disable flexbox https://bugs.webkit.org/show_bug.cgi?id=87147 Reviewed by Tony Chang. * Configurations/FeatureDefines.xcconfig: 2012-05-22 Tim Horton Add a quirk for applications that depend on the relative ordering of progressCompleted/didFinishLoad https://bugs.webkit.org/show_bug.cgi?id=87178 Reviewed by Maciej Stachowiak. Add plumbing for the quirk to flip the relative ordering of progressCompleted/didFinishLoad back to the behavior before http://trac.webkit.org/changeset/94105. Make it apply to any Mail.app linked against WebKit before that revision. * Misc/WebKitVersionChecks.h: * WebView/WebView.mm: (-[WebView _needsDidFinishLoadOrderQuirk]): (-[WebView _preferencesChanged:]): 2012-05-21 Gavin Barraclough Disable private names by default in WebCore https://bugs.webkit.org/show_bug.cgi?id=87088 Reviewed by Geoff Garen. r117859 introduced a preliminary implementation of ES6-like private name objects to JSC. These are probably not yet ready to be web-facing, so disabling by default in WebCore. Opting-in for JSC & DumpRenderTree so that we can still run the fast/js/names.html test. * WebView/WebPreferenceKeysPrivate.h: * WebView/WebPreferences.mm: (+[WebPreferences initialize]): (-[WebPreferences setJavaScriptExperimentsEnabled:]): (-[WebPreferences javaScriptExperimentsEnabled]): * WebView/WebPreferencesPrivate.h: * WebView/WebView.mm: (-[WebView _preferencesChanged:]): - Added JavaScriptExperimentsEnabled to WebPreferences. 2012-05-15 Gavin Barraclough Add support for private names https://bugs.webkit.org/show_bug.cgi?id=86509 Reviewed by Oliver Hunt. The spec isn't final, but we can start adding support to allow property maps to contain keys that aren't identifiers. * Plugins/Hosted/ProxyInstance.mm: (WebKit::ProxyClass::methodsNamed): (WebKit::ProxyClass::fieldNamed): (WebKit::ProxyInstance::getMethod): (WebKit::ProxyInstance::methodsNamed): (WebKit::ProxyInstance::fieldNamed): - Removed PropertyName::impl(), call publicName() to get the string associated with a name. 2012-05-21 Caio Marcelo de Oliveira Filho Move setEditingBehavior() from layoutTestController to window.internals https://bugs.webkit.org/show_bug.cgi?id=42689 Reviewed by Hajime Morita and Kenneth Rohde Christiansen. Remove Mac private API to get/set the editing behavior, since it was only there for the DRT. * WebKit.order: * WebView/WebFrame.mm: * WebView/WebFrameInternal.h: * WebView/WebPreferenceKeysPrivate.h: * WebView/WebPreferences.mm: (+[WebPreferences initialize]): * WebView/WebPreferencesPrivate.h: * WebView/WebView.mm: (-[WebView _preferencesChanged:]): 2012-05-20 Ryosuke Niwa Using createContextualFragment to insert a