2015-03-16 Babak Shafiei Merge r181587. 2015-03-16 Brent Fulgham WebKit1 Clients Are Not Reliably Repainted https://bugs.webkit.org/show_bug.cgi?id=142750 Reviewed by Simon Fraser. Check with the FrameView to see if we are in an immediately paintable state. If we are not, mark the view as dirty once the _immediateScrollToPoint operation is complete so that the region will be painted properly. * WebView/WebClipView.mm: (-[WebClipView _immediateScrollToPoint:]): 2015-02-10 Lucas Forschler Merge r177849 2015-01-01 Jeff Miller Update user-visible copyright strings to include 2015 https://bugs.webkit.org/show_bug.cgi?id=139880 Reviewed by Darin Adler. * Info.plist: 2015-01-28 Babak Shafiei Merge r179230. 2015-01-27 Beth Dakin Immediate action gesture recognizer still doesn't work well with IB https://bugs.webkit.org/show_bug.cgi?id=140967 -and corresponding- rdar://problem/19621509 Reviewed by Tim Horton. We should add (or remove) the gesture recognizer in viewDidMoveToWindow because initWithFrame it too early and IB might mess with it. * WebView/WebImmediateActionController.h: * WebView/WebImmediateActionController.mm: (-[WebImmediateActionController immediateActionRecognizer]): * WebView/WebView.mm: (-[WebView _commonInitializationWithFrameName:groupName:]): (-[WebView viewDidMoveToWindow]): 2015-01-28 Matthew Merge r179014. rdar://problem/19573674 2015-01-23 Timothy Horton QLPreviewMenuItem popovers don't close when the page scrolls https://bugs.webkit.org/show_bug.cgi?id=140806 Reviewed by Beth Dakin. Now that QLPreviewMenuItem's popover doesn't eat scrolls, we need to dismiss it if the page scrolls. * WebView/WebHTMLView.mm: (-[WebHTMLView scrollWheel:scrollWheel:]): Send scrollWheel along to WebImmediateActionController. * WebView/WebImmediateActionController.h: * WebView/WebImmediateActionController.mm: (-[WebImmediateActionController webView:didHandleScrollWheel:]): (-[WebImmediateActionController _clearImmediateActionState]): (-[WebImmediateActionController _defaultAnimationController]): Keep track of the active QLPreviewMenuItem, and close it upon scroll. 2015-01-28 Matthew Merge r179013. rdar://problem/19571601 2015-01-23 Timothy Horton Infinite recursion in _clearImmediateActionState https://bugs.webkit.org/show_bug.cgi?id=140807 Reviewed by Anders Carlsson. * WebView/WebImmediateActionController.mm: (-[WebImmediateActionController _clearImmediateActionState]): Use this opportunity to bring identical code to WebKit1, to avoid getting DataDetectors stuck when an immediate action is canceled. 2015-01-28 Matthew Merge r178938. rdar://problem/19558472 2015-01-22 Beth Dakin ibtoold crash below -[WebView close] https://bugs.webkit.org/show_bug.cgi?id=140782 -and corresponding- rdar://problem/19558472 Reviewed by Tim Horton. Retain the NSImmediateActionGestureRecognizer. This should not be necessary, but it is because interface builder is messing with our views. * WebView/WebImmediateActionController.h: * WebView/WebImmediateActionController.mm: (-[WebImmediateActionController webViewClosed]): (-[WebImmediateActionController _cancelImmediateAction]): (-[WebImmediateActionController immediateActionRecognizerWillPrepare:]): (-[WebImmediateActionController _updateImmediateActionItem]): 2015-01-28 Matthew Merge r178858. rdar://problem/19540806 2015-01-21 Beth Dakin Crash in QuickLook preview delegate method https://bugs.webkit.org/show_bug.cgi?id=140740 -and corresponding- rdar://problem/19540806 Reviewed by Tim Horton. Clear out the delegate. * WebView/WebImmediateActionController.mm: (-[WebImmediateActionController webViewClosed]): 2015-01-23 Babak Shafiei Merge r178680. rdar://problem/19489593 2015-01-19 Beth Dakin Speculative build fix. * WebView/WebView.mm: (-[WebView _convertRectFromRootView:]): 2015-01-23 Babak Shafiei Merge r178676. rdar://problem/19489593 2015-01-19 Beth Dakin REGRESSION (r178290): Yellow highlight from context menu Lookup in Dictionary is offset by flipped-ness https://bugs.webkit.org/show_bug.cgi?id=140643 -and corresponding- rdar://problem/19489593 Reviewed by Tim Horton. We universally flipped because we assumed that the root view was flipped and the WebView was not. However, in Dictionary, the WebView is flipped! So this patch fixes that assumption by checking the WebView’s flipped-ness. * WebView/WebView.mm: (-[WebView _convertRectFromRootView:]): 2015-01-23 Babak Shafiei Merge r178605. rdar://problem/19490114 2015-01-16 Beth Dakin Make sure early cancellation of immediate action actually does that in WK1 https://bugs.webkit.org/show_bug.cgi?id=140566 -and corresponding- rdar://problem/19490114 Reviewed by Tim Horton. Work around an AppKit bug by dispatching the call to _cancelImmediateAction asynchronously. * WebView/WebImmediateActionController.mm: (-[WebImmediateActionController immediateActionRecognizerWillPrepare:]): 2015-01-22 Matthew Hanson Merge r177611. rdar://problem/19451361 2014-12-19 Simon Fraser Fix pink background on CoreAnimation plug-ins in WebKit1 https://bugs.webkit.org/show_bug.cgi?id=139845 rdar://problem/19313075 Reviewed by Tim Horton. r154078 left in some debugging code that set a pink background on plug-in hosting layers. Remove it. * Plugins/Hosted/WebHostedNetscapePluginView.mm: (-[WebHostedNetscapePluginView createPluginLayer]): 2015-01-22 Matthew Hanson Merge r177152. rdar://problem/19451288 2014-12-11 Alexey Proskuryakov REGRESSION (Async Text Input): Text input method state is not reset when reloading a page https://bugs.webkit.org/show_bug.cgi?id=139504 rdar://problem/19034674 Reviewed by Enrica Casucci. Stub out new client calls, this patch does not attempt to make any changes on WebKit1. * WebCoreSupport/WebEditorClient.h: * WebCoreSupport/WebEditorClient.mm: (WebEditorClient::discardedComposition): 2015-01-22 Matthew Hanson Merge r177011. rdar://problem/19451253 2014-12-08 Alexey Proskuryakov REGRESSION (r158036): WebView cannot handle HTTP Basic Authentication challenge https://bugs.webkit.org/show_bug.cgi?id=138843 rdar://problem/18793695 Reviewed by Dan Bernstein. * Panels/WebAuthenticationPanel.m: (-[WebAuthenticationPanel cancel:]): (-[WebAuthenticationPanel logIn:]): Don't close the panel before using panel.sheetParent, because the parent becomes nil. In fact, we don't need to close it at all, it's enough to call orderOut:, and even that only when using an old NSWindow API. 2015-01-15 Matthew Hanson Merge r175719. rdar://problem/19424169 2014-11-05 Jer Noble De-templatize Timer https://bugs.webkit.org/show_bug.cgi?id=138450 Reviewed by Anders Carlsson. Remove template specifiers from Timer. * Plugins/Hosted/NetscapePluginInstanceProxy.h: * Plugins/Hosted/NetscapePluginInstanceProxy.mm: (WebKit::NetscapePluginInstanceProxy::requestTimerFired): * Plugins/WebNetscapePluginStream.h: * Plugins/WebNetscapePluginStream.mm: (WebNetscapePluginStream::deliverDataTimerFired): 2015-01-15 Babak Shafiei Merge r178378. rdar://problem/19274499 2015-01-13 Beth Dakin Should disable immediate actions for iTunes https://bugs.webkit.org/show_bug.cgi?id=140405 -and corresponding- rdar://problem/19461358 Reviewed by Tim Horton. * WebView/WebImmediateActionController.mm: (-[WebImmediateActionController _updateImmediateActionItem]): 2015-01-15 Babak Shafiei Merge r178290. rdar://problem/19441243 2015-01-12 Timothy Horton Multi-rect TextIndicators are vertically flipped in WebKit1 https://bugs.webkit.org/show_bug.cgi?id=140350 Reviewed by Beth Dakin. * WebView/WebView.mm: (-[WebView _setTextIndicator:fadeOut:]): Convert the textBoundingRect from root view to screen coordinates. 2015-01-15 Babak Shafiei Merge r178126. rdar://problem/19412705 2015-01-08 Timothy Horton Can't use DataDetectors after immediate action preparation https://bugs.webkit.org/show_bug.cgi?id=140263 Reviewed by Beth Dakin. * WebView/WebImmediateActionController.mm: (-[WebImmediateActionController immediateActionRecognizerWillPrepare:]): (-[WebImmediateActionController immediateActionRecognizerWillBeginAnimation:]): To match WebKit2, only call shouldUseActions if the animation is actually going to begin, not when preparing for it. This way, we're guaranteed to get a didCancel or didComplete. 2015-01-14 Dana Burkart Merged r175400. 2014-10-30 Jer Noble [EME] Add Setting for accessing storage location for MediaKeys data https://bugs.webkit.org/show_bug.cgi?id=138147 Reviewed by Brady Eidson. * WebView/WebPreferenceKeysPrivate.h: * WebView/WebPreferences.mm: (+[WebPreferences initialize]): Set default location. (-[WebPreferences mediaKeysStorageDirectory]): Simple accessor. (-[WebPreferences setMediaKeysStorageDirectory:]): Simple setter. * WebView/WebPreferencesPrivate.h: * WebView/WebView.mm: (-[WebView _preferencesChanged:]): Pass location from WebPreferences into Settings. 2015-01-07 Matthew Hanson Merge r178056. rdar://problem/19300492 2015-01-07 Beth Dakin Adopt delegate callbacks so that standardQuickLookMenuItem does not obscure the link https://bugs.webkit.org/show_bug.cgi?id=140206 -and corresponding- rdar://problem/19300492 Reviewed by Tim Horton. Providing and item frame will ensure that the original link is not obscured. * WebView/WebImmediateActionController.mm: (elementBoundingBoxInWindowCoordinatesFromNode): (-[WebImmediateActionController menuItem:itemFrameForPoint:]): For now use a max size that is smaller than the WebView, with the screen’s aspect ratio, and scaled down. (-[WebImmediateActionController menuItem:maxSizeForPoint:]): 2015-01-07 Matthew Hanson Merge r177705. rdar://problem/19333076 2014-12-23 Timothy Horton Install a TextIndicator for link immediate actions https://bugs.webkit.org/show_bug.cgi?id=139897 Reviewed by Anders Carlsson. * WebView/WebImmediateActionController.h: * WebView/WebImmediateActionController.mm: (-[WebImmediateActionController _clearImmediateActionState]): Tear down the TextIndicator, just like WebKit2. (-[WebImmediateActionController _defaultAnimationController]): Install a TextIndicator for links. (-[WebImmediateActionController menuItemDidClose:]): Tear down the TextIndicator when the QL preview closes. (-[WebImmediateActionController _menuItemForDataDetectedText]): Directly install and uninstall the TextIndicator for DataDetectors. (-[WebImmediateActionController _showTextIndicator]): Deleted. (-[WebImmediateActionController _hideTextIndicator]): Deleted. Remove the isShowingTextIndicator mechanism, just like it was removed from WebKit2. 2014-12-18 Matthew Hanson Merge r177528. rdar://problem/19299367 2014-12-18 Beth Dakin Need to re-enable action menus https://bugs.webkit.org/show_bug.cgi?id=139795 -and corresponding- rdar://problem/19299367 Reviewed by Tim Horton. Re-enable the menus by un-commenting the code to create the menu and controller. * WebView/WebView.mm: (-[WebView _commonInitializationWithFrameName:groupName:]): 2014-12-17 Matthew Hanson Merge r177427. rdar://problem/19237945 2014-12-16 Timothy Horton Implement and adopt two new TextIndicator presentation animations https://bugs.webkit.org/show_bug.cgi?id=139715 Reviewed by Anders Carlsson. * WebView/WebActionMenuController.mm: (-[WebActionMenuController _showTextIndicator]): * WebView/WebHTMLView.mm: (-[WebHTMLView quickLookWithEvent:]): Remove the completionHandler from text indicator presentation. * WebView/WebImmediateActionController.mm: (-[WebImmediateActionController immediateActionRecognizerWillPrepare:]): (-[WebImmediateActionController immediateActionRecognizerDidUpdateAnimation:]): (-[WebImmediateActionController immediateActionRecognizerDidCancelAnimation:]): (-[WebImmediateActionController immediateActionRecognizerDidCompleteAnimation:]): (-[WebImmediateActionController _menuItemForDataDetectedText]): (-[WebImmediateActionController _animationControllerForText]): (-[WebImmediateActionController _showTextIndicator]): Forward immediate action gesture recognizer animation progress to TextIndicator. Force us to keep the selection when immediate action popovers steal first responder status from the WebView. If the Lookup range is equal to the selection range, use a Crossfade animation; otherwise, use a FadeIn animation. * WebView/WebView.mm: (-[WebView _setMaintainsInactiveSelection:]): (-[WebView maintainsInactiveSelection]): (-[WebView _animationControllerForDictionaryLookupPopupInfo:]): (-[WebView _setTextIndicator:fadeOut:]): (-[WebView _clearTextIndicator]): (-[WebView _setTextIndicatorAnimationProgress:]): (-[WebView _showDictionaryLookupPopup:]): (-[WebView _dictionaryLookupPopoverWillClose:]): (-[WebView _setTextIndicator:fadeOut:animationCompletionHandler:]): Remove the completionHandler from text indicator presentation. Add a _setMaintainsInactiveSelection, which allows WebKit internals to change the return value of -maintainsInactiveSelection, allowing us to keep the selection alive when the WebView loses first responder status. * WebView/WebViewData.h: * WebView/WebViewInternal.h: 2014-12-16 Matthew Hanson Merge r177410. rdar://problem/19271707 2014-12-16 Beth Dakin Crash getting default animation controller for some text https://bugs.webkit.org/show_bug.cgi?id=139712 -and corresponding- rdar://problem/19271707 Reviewed by Tim Horton. Must null-check the range. * WebView/WebImmediateActionController.mm: (-[WebImmediateActionController _animationControllerForText]): 2014-12-16 Matthew Hanson Merge r177406. rdar://problem/19270279 2014-12-16 Timothy Horton Immediate action popovers can get stuck open https://bugs.webkit.org/show_bug.cgi?id=139709 Reviewed by Beth Dakin. * WebView/WebImmediateActionController.mm: (-[WebImmediateActionController _clearImmediateActionState]): Don't clear the animation controller; it breaks things and was unnecessary. 2014-12-16 Matthew Hanson Merge r177371. rdar://problem/19266902 2014-12-16 Tim Horton Disable TextIndication for Lookup immediate actions https://bugs.webkit.org/show_bug.cgi?id=139684 Reviewed by Anders Carlsson. * WebView/WebView.mm: (-[WebView _animationControllerForDictionaryLookupPopupInfo:]): 2014-12-16 Dana Burkart Merged r177327. 2014-12-15 Beth Dakin Build fix. * WebView/WebImmediateActionController.mm: 2014-12-16 Dana Burkart Merged r177326. 2014-12-15 Beth Dakin Speculative build fix. * WebView/WebView.mm: (-[WebView _animationControllerForDictionaryLookupPopupInfo:]): * WebView/WebViewInternal.h: 2014-12-16 Dana Burkart Merged r177323. 2014-12-15 Beth Dakin Make lookup an immediate action instead of an action menu item https://bugs.webkit.org/show_bug.cgi?id=139661 -and corresponding- rdar://problem/19198414 Reviewed by Tim Horton. Remove the lookup menu items and non-unused static function associated with lookup. * WebView/WebActionMenuController.mm: (-[WebActionMenuController _defaultMenuItemsForText]): (-[WebActionMenuController _defaultMenuItemsForEditableText]): (-[WebActionMenuController _defaultMenuItemsForEditableTextWithSuggestions]): (-[WebActionMenuController _createActionMenuItemForTag:]): (-[WebActionMenuController _lookupText:]): Deleted. (performDictionaryLookupForSelection): Deleted. (performDictionaryLookupForRange): Deleted. Set the defaultAnimationController to the lookup-provided animation controller when appropriate. * WebView/WebImmediateActionController.mm: (-[WebImmediateActionController _defaultAnimationController]): (dictionaryPopupInfoForRange): (-[WebImmediateActionController _animationControllerForText]): New type. * WebView/WebUIDelegatePrivate.h: New function to get the lookup animation controller. * WebView/WebView.mm: (-[WebView _animationControllerForDictionaryLookupPopupInfo:]): * WebView/WebViewInternal.h: 2014-12-16 Dana Burkart Merged r177304. 2014-12-15 Timothy Horton Implement Data Detectors immediate actions for Legacy WebKit https://bugs.webkit.org/show_bug.cgi?id=139619 Reviewed by Beth Dakin. * WebView/WebImmediateActionController.mm: (-[WebImmediateActionController _menuItemForDataDetectedText]): Note that this action context is only for immediate actions. 2014-12-15 Myles C. Maxfield Addressing post-review comments in r177035 https://bugs.webkit.org/show_bug.cgi?id=139557 Reviewed by Darin Adler. * WebView/WebActionMenuController.mm: (elementBoundingBoxInWindowCoordinatesFromNode): Migrate off rendererBoundingBox(). 2014-12-16 Dana Burkart Merged r177300. 2014-12-15 Timothy Horton Implement Data Detectors immediate actions for Legacy WebKit https://bugs.webkit.org/show_bug.cgi?id=139619 Reviewed by Eric Carlson. * WebView/WebHTMLView.mm: (-[WebHTMLView mouseDown:mouseDown:]): Send mouseDown along to the WebImmediateActionController too. * WebView/WebImmediateActionController.h: * WebView/WebImmediateActionController.mm: (-[WebImmediateActionController webViewClosed]): (-[WebImmediateActionController webView:willHandleMouseDown:]): (-[WebImmediateActionController _cancelImmediateAction]): (-[WebImmediateActionController _clearImmediateActionState]): (-[WebImmediateActionController immediateActionRecognizerWillPrepare:]): (-[WebImmediateActionController _defaultAnimationController]): (-[WebImmediateActionController _updateImmediateActionItem]): (-[WebImmediateActionController _menuItemForDataDetectedText]): (-[WebImmediateActionController _showTextIndicator]): (-[WebImmediateActionController _hideTextIndicator]): Copy most of the DataDetectors implementation into WebImmediateActionController. * WebView/WebUIDelegatePrivate.h: Add a new type. * WebView/WebView.mm: (-[WebView _commonInitializationWithFrameName:groupName:]): Temporarily disable action menus. (-[WebView _immediateActionController]): * WebView/WebViewInternal.h: 2014-12-15 Myles C. Maxfield Delete Notation because we don't use it https://bugs.webkit.org/show_bug.cgi?id=139171 Reviewed by Kent Tamura. * MigrateHeaders.make: 2014-12-16 Dana Burkart Merged r177201. 2014-12-11 Dan Bernstein Fix a leak introduced in r177199. Reviewed by Anders Carlsson. * WebView/WebImmediateActionController.mm: (-[WebImmediateActionController _updateImmediateActionItem]): 2014-12-16 Dana Burkart Merged r177199. 2014-12-11 Beth Dakin WK1: Need new SPI for Webkit clients to override default immediate action https://bugs.webkit.org/show_bug.cgi?id=139568 -and corresponding- rdar://problem/19225448 Reviewed by Dan Bernstein. Call SPI giving clients a chance to override the default behavior. * WebView/WebImmediateActionController.mm: (-[WebImmediateActionController _updateImmediateActionItem]): New SPI. * WebView/WebUIDelegatePrivate.h: 2014-12-16 Dana Burkart Merged r177186. 2014-12-11 Timothy Horton Move the preview popover to WebImmediateActionController https://bugs.webkit.org/show_bug.cgi?id=139563 Reviewed by Beth Dakin. * WebView/WebActionMenuController.mm: (-[WebActionMenuController _defaultMenuItemsForLink]): (-[WebActionMenuController menuItem:viewAtScreenPoint:]): Deleted. (-[WebActionMenuController menuItem:previewItemAtPoint:]): Deleted. (-[WebActionMenuController menuItem:preferredEdgeForPoint:]): Deleted. * WebView/WebImmediateActionController.h: * WebView/WebImmediateActionController.mm: (-[WebImmediateActionController webViewClosed]): (-[WebImmediateActionController immediateActionRecognizerWillPrepare:]): (-[WebImmediateActionController immediateActionRecognizerWillBeginAnimation:]): (-[WebImmediateActionController immediateActionRecognizerDidCancelAnimation:]): (-[WebImmediateActionController immediateActionRecognizerDidCompleteAnimation:]): (-[WebImmediateActionController _updateImmediateActionItem]): (-[WebImmediateActionController menuItem:viewAtScreenPoint:]): (-[WebImmediateActionController menuItem:previewItemAtPoint:]): (-[WebImmediateActionController menuItem:preferredEdgeForPoint:]): Move page preview popover related code to WebImmediateActionController. * WebView/WebUIDelegatePrivate.h: Add a link preview type. * WebView/WebView.mm: (-[WebView _commonInitializationWithFrameName:groupName:]): Pass the gesture recognizer to the WebImmediateActionController. 2014-12-16 Dana Burkart Merged r177183. 2014-12-11 Timothy Horton Fix the build. * WebView/WebImmediateActionController.h: * WebView/WebImmediateActionController.mm: 2014-12-16 Dana Burkart Merged r177131. 2014-12-10 Beth Dakin WK1: Add initial support for immediate actions https://bugs.webkit.org/show_bug.cgi?id=139522 Reviewed by Dan Bernstein. This basic implementation of the controller will use the delegate methods to perform and cache a HitTest when relevant. Future patches will patch _updateImmediateActionItem to use the HitTestResult to determine if there is any immediate action that should be taken. * WebView/WebImmediateActionController.h: Added. * WebView/WebImmediateActionController.mm: Added. (-[WebImmediateActionController webViewClosed]): (-[WebImmediateActionController _clearImmediateActionState]): (-[WebImmediateActionController performHitTestAtPoint:]): (-[WebImmediateActionController immediateActionRecognizerWillPrepare:]): (-[WebImmediateActionController immediateActionRecognizerWillBeginAnimation:]): (-[WebImmediateActionController immediateActionRecognizerDidCancelAnimation:]): (-[WebImmediateActionController immediateActionRecognizerDidCompleteAnimation:]): (-[WebImmediateActionController _updateImmediateActionItem]): New enum for immediate action types. * WebView/WebUIDelegatePrivate.h: Create an NSImmediateActionGestureRecognizer if possible and a controller. * WebView/WebView.mm: (-[WebView _commonInitializationWithFrameName:groupName:]): (-[WebView _close]): * WebView/WebViewData.h: * WebView/WebViewData.mm: (-[WebViewPrivate dealloc]): 2014-12-11 Matthew Hanson Merge r177132. rdar://problem/19213620 2014-12-10 Timothy Horton Copy and paste action menu items don't work on the Mozilla Midas demo in WebKit1 https://bugs.webkit.org/show_bug.cgi?id=139529 Reviewed by Beth Dakin. * WebView/WebActionMenuController.mm: (-[WebActionMenuController _copySelection:]): (-[WebActionMenuController _paste:]): Use the copy: and paste: methods on WebView so that we traverse subviews when trying to respond, otherwise these actions don't work in subframes. 2014-12-11 Matthew Hanson Merge r177111. rdar://problem/19198388 2014-12-10 Timothy Horton Should have copy and paste items in all text menus https://bugs.webkit.org/show_bug.cgi?id=139510 Reviewed by Beth Dakin. * WebView/WebActionMenuController.mm: (-[WebActionMenuController _defaultMenuItemsForText]): Add a disabled paste menu item into the read-only text menu. (-[WebActionMenuController _defaultMenuItemsForWhitespaceInEditableArea]): Add a disabled copy menu item into the editable whitespace text menu. 2014-12-10 Matthew Hanson Merge r176999. rdar://problem/19149219 2014-12-08 Beth Dakin Copy and Lookup menu items should be disabled when something is not copyable https://bugs.webkit.org/show_bug.cgi?id=139423 Reviewed by Tim Horton. Disable both lookup and copy when a HitTestResult does not allow copy. * WebView/WebActionMenuController.mm: Set autoenablesItems to NO. It’s messing with our ability to control the enable/ disable state otherwise. * WebView/WebView.mm: (-[WebView _commonInitializationWithFrameName:groupName:]): 2014-12-08 Matthew Hanson Merge r176856. 2014-12-05 Tim Horton Legacy WebKit should set deviceScaleFactor in _commonInitializationWithFrameName, not _initWithFrame https://bugs.webkit.org/show_bug.cgi?id=139306 Reviewed by Beth Dakin. * WebView/WebView.mm: (-[WebView _commonInitializationWithFrameName:groupName:]): (-[WebView _initWithFrame:frameName:groupName:]): Move setDeviceScaleFactor to the initialization path that is guaranteed to happen. 2014-12-05 Dana Burkart Merge r176811. 2014-12-04 Timothy Horton Fix the 32-bit build. * WebView/WebView.mm: (-[WebView _setTextIndicator:fadeOut:animationCompletionHandler:]): 2014-12-05 Dana Burkart Merge r176810. 2014-12-04 Tim Horton TextIndicator::createWithSelectionInFrame does synchronous IPC in WebKit2 https://bugs.webkit.org/show_bug.cgi?id=139252 Reviewed by Anders Carlsson. * WebView/WebView.mm: (-[WebView _setTextIndicator:fadeOut:animationCompletionHandler:]): Adjust to the WebCore changes. 2014-12-04 Dana Burkart Merge r173235. 2014-09-03 Enrica Casucci Remove PLATFORM(IOS) from WebCore/editing (Part 1). https://bugs.webkit.org/show_bug.cgi?id=136474 Reviewed by Tim Horton. * WebCoreSupport/WebEditorClient.mm: (undoNameForEditAction): 2014-12-04 Dana Burkart Merge r176777. 2014-12-03 Timothy Horton Implement action menus for tel: URLs https://bugs.webkit.org/show_bug.cgi?id=139240 Reviewed by Anders Carlsson. * WebView/WebActionMenuController.mm: (-[WebActionMenuController _defaultMenuItemsForDataDetectableLink]): Make sure to use the newly created currentActionContext... everywhere. 2014-12-04 Dana Burkart Merge r176775. 2014-12-03 Timothy Horton Implement action menus for tel: URLs https://bugs.webkit.org/show_bug.cgi?id=139240 Reviewed by Anders Carlsson. * WebView/WebActionMenuController.mm: (-[WebActionMenuController _defaultMenuItemsForDataDetectableLink]): Make sure to use the newly created currentActionContext. 2014-12-04 Dana Burkart Merge r176763. 2014-12-03 Tim Horton Implement action menus for tel: URLs https://bugs.webkit.org/show_bug.cgi?id=139240 Reviewed by Anders Carlsson. * WebView/WebActionMenuController.mm: (-[WebActionMenuController _defaultMenuItemsForDataDetectableLink]): Rename this function as it will work for both mailto and tel URLs. Adjust it to use contextForView:. (-[WebActionMenuController webView:willHandleMouseDown:]): (-[WebActionMenuController prepareForMenu:withEvent:]): (-[WebActionMenuController didCloseMenu:withEvent:]): (-[WebActionMenuController _defaultMenuItems]): Don't check the menu type when going to interact with _currentActionContext. We'll only have a _currentActionContext if we have a data detected item, and there are multiple menu types that end up using DDActionContext. * WebView/WebUIDelegatePrivate.h: Add a new type. 2014-12-03 Dana Burkart Merge r176695. 2014-12-02 Tim Horton Loading Lookup causes http/tests/cache/post-redirect-get.php to fail https://bugs.webkit.org/show_bug.cgi?id=139204 Reviewed by Anders Carlsson. * WebView/WebView.mm: (-[WebView _commonInitializationWithFrameName:groupName:]): (-[WebView _showDictionaryLookupPopup:]): * WebView/WebViewData.h: Work around this by delaying the softlinking (and setting up the notification observer) until we actually need it. There's still an underlying bug, but this will fix the test. 2014-12-03 Dana Burkart Merge r176693. 2014-12-02 Beth Dakin Yet another build fix. * WebView/WebActionMenuController.mm: (-[WebActionMenuController _defaultMenuItemsForLink]): 2014-12-03 Dana Burkart Merge r176691. 2014-12-02 Beth Dakin Build fix. * WebView/WebActionMenuController.mm: (-[WebActionMenuController _defaultMenuItemsForLink]): 2014-12-03 Dana Burkart Merge r176690. 2014-12-02 Beth Dakin More build fixing. * WebView/WebActionMenuController.mm: (-[WebActionMenuController _defaultMenuItemsForLink]): 2014-12-03 Dana Burkart Merge r176684. 2014-12-02 Beth Dakin Should use standardQuickLookMenuItem for apps that don't implement customizations https://bugs.webkit.org/show_bug.cgi?id=139193 -and corresponding- rdar://problem/18944696 Reviewed by Anders Carlsson. Use [NSMenuItem standardQuickLookMenuItem]. * WebView/WebActionMenuController.mm: (-[WebActionMenuController _defaultMenuItemsForLink]): Delegate methods to set up the standardQuickLookMenuItem. (-[WebActionMenuController menuItem:viewAtScreenPoint:]): (-[WebActionMenuController menuItem:previewItemAtPoint:]): (-[WebActionMenuController menuItem:preferredEdgeForPoint:]): Remove all of the old QLPreviewBubble code. (-[WebActionMenuController _createActionMenuItemForTag:]): (-[WebActionMenuController _quickLookURLFromActionMenu:]): Deleted. 2014-12-03 Dana Burkart Merge r176681. 2014-12-02 Timothy Horton Fix the build. * WebView/WebViewData.h: 2014-12-03 Dana Burkart Merge r176680. 2014-12-02 Tim Horton Implement Lookup transition from selection for Legacy WebKit https://bugs.webkit.org/show_bug.cgi?id=139180 Reviewed by Beth Dakin. * WebView/DictionaryPopupInfo.h: Added. Split DictionaryPopupInfo out into its own file. * WebView/WebActionMenuController.mm: (-[WebActionMenuController _lookupText:]): Hand the DictionaryPopupInfo to WebView, which will show the TextIndicator and invoke Lookup. (performDictionaryLookupForSelection): (performDictionaryLookupForRange): Plumb the transition style through these helpers. Create a TextIndicator from the selection range. * WebView/WebHTMLView.mm: (-[WebHTMLView _lookUpInDictionaryFromMenu:]): Make use of TextIndicator (and DictionaryPopupInfo, and the new _showDictionaryLookupPopup on WebView) to add a transition from blue when performing Lookup from the context menu. (-[WebHTMLView quickLookWithEvent:]): Remove our TextIndicator whenever a normal three-finger-tap event comes through, as it will have its own indication. * WebView/WebView.mm: (-[WebView _commonInitializationWithFrameName:groupName:]): (-[WebView _dictionaryLookupPopoverWillClose:]): Register for the LUNotificationPopoverWillClose notification and remove our TextIndicator when it is called, just like in WebKit2. Deregistration is already handled in _close. (-[WebView _showDictionaryLookupPopup:]): Just like WebKit2, show our TextIndicator and tell Lookup not to show its own, if the relevant API is available. * WebView/WebViewInternal.h: 2014-12-02 Dana Burkart Merge r176618. 2014-12-01 Timothy Horton Try to fix the Mac build. * WebView/WebView.mm: (-[WebView _commonInitializationWithFrameName:groupName:]): (-[WebView _close]): 2014-12-02 Dana Burkart Merge r176608. 2014-12-01 Timothy Horton Fix the iOS build. * WebView/WebActionMenuController.h: * WebView/WebActionMenuController.mm: * WebView/WebHTMLView.mm: (-[WebHTMLView scrollWheel:scrollWheel:]): (-[WebHTMLView mouseDown:mouseDown:]): * WebView/WebView.mm: * WebView/WebViewData.h: * WebView/WebViewData.mm: (-[WebViewPrivate dealloc]): * WebView/WebViewInternal.h: 2014-12-02 Dana Burkart Merge r176599. 2014-12-01 Tim Horton Implement yellow highlight for WebKit1 data detectors https://bugs.webkit.org/show_bug.cgi?id=138956 Reviewed by Beth Dakin. * WebView/WebActionMenuController.h: * WebView/WebActionMenuController.mm: (-[WebActionMenuController webView:willHandleMouseDown:]): (-[WebActionMenuController webView:didHandleScrollWheel:]): (-[WebActionMenuController prepareForMenu:withEvent:]): (-[WebActionMenuController didCloseMenu:withEvent:]): (-[WebActionMenuController _defaultMenuItemsForDataDetectedText]): (-[WebActionMenuController _showTextIndicator]): (-[WebActionMenuController _hideTextIndicator]): (-[WebActionMenuController _dismissActionMenuPopovers]): Copy the WebKit2 WKActionMenuController TextIndicator implementation into WebActionMenuController. The only significant difference is that we build the TextIndicator right at menu construction time instead of in the Web process. * WebView/WebHTMLView.mm: (-[WebHTMLView scrollWheel:]): Let the WebActionMenuController know that we're handling a scroll. (-[WebHTMLView mouseDown:]): Let the WebActionMenuController know that we're handling a mouseDown. * WebView/WebView.mm: (-[WebView _setTextIndicator:fadeOut:animationCompletionHandler:]): (-[WebView _clearTextIndicator]): (-[WebView _actionMenuController]): (-[WebView _convertRectFromRootView:]): Deleted. * WebView/WebViewData.h: * WebView/WebViewData.mm: * WebView/WebViewInternal.h: Keep a TextIndicatorWindow on WebView, just like WKView does. Expose the WebActionMenuController on WebView (internally). 2014-12-02 Dana Burkart Merge r176499. 2014-11-21 Jer Noble Support multiple signatures of diagnostic logging. https://bugs.webkit.org/show_bug.cgi?id=138690 Reviewed by Anders Carlsson. Page::PageClients has been renamed PageConfiguration. * WebView/WebView.mm: (-[WebView _commonInitializationWithFrameName:groupName:]): (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]): 2014-12-02 Dana Burkart Merge r176477. 2014-11-21 Tim Horton REGRESSION (r176351): Parts of apple.com/contact aren't Lookup-able ​https://bugs.webkit.org/show_bug.cgi?id=138960 Reviewed by Anders Carlsson. * WebView/WebActionMenuController.mm: (-[WebActionMenuController _defaultMenuItemsForMailtoLink]): (-[WebActionMenuController _defaultMenuItemsForDataDetectedText]): Use DataDetectors SPI instead of an explicit blacklist. 2014-12-02 Dana Burkart Merge r176463. 2014-11-21 Tim Horton REGRESSION (r176351): Parts of apple.com/contact aren't Lookup-able https://bugs.webkit.org/show_bug.cgi?id=138960 Reviewed by Beth Dakin. * WebView/WebActionMenuController.mm: (-[WebActionMenuController _defaultMenuItemsForDataDetectedText]): Blacklist contact results, because they don't have useful menus. If we bail before setting up _currentActionContext, we'll still allow fallthrough to ordinary text actions, avoiding mysterious failure when a contact is detected. This doesn't break the case that r176351 was intended to fix, because in that case we were detecting e.g. addresses. 2014-12-02 Dana Burkart Merge r176415. rdar://problem/18950441 2014-11-20 Tim Horton Cancel DataDetectors menu earlier if we know it can't be presented https://bugs.webkit.org/show_bug.cgi?id=138922 Reviewed by Beth Dakin. * WebView/WebActionMenuController.mm: (-[WebActionMenuController prepareForMenu:withEvent:]): Move our call to shouldUseActionsWithContext earlier, to menuNeedsUpdate, and use a bigger hammer (removeAllItems). (-[WebActionMenuController willOpenMenu:withEvent:]): If we end up with a menu with no items, don't change selection or anything. 2014-12-02 Dana Burkart Merge r176412. rdar://problem/18904600 2014-11-20 Beth Dakin Invalid message WebPageProxy.DidPerformDictionaryLookup on Google stocks result https://bugs.webkit.org/show_bug.cgi?id=138568 -and corresponding- rdar://problem/18904600 Reviewed by Tim Horton. Skip images for lookup. * WebView/WebActionMenuController.mm: (performDictionaryLookupForRange): 2014-11-19 Dana Burkart Merge r176356. rdar://problem/18996776 2014-11-19 Beth Dakin Invoking an action menu on a selection should result in the text menu https://bugs.webkit.org/show_bug.cgi?id=138892 -and corresponding- rdar://problem/18996776 Reviewed by Tim Horton. * WebView/WebActionMenuController.mm: (-[WebActionMenuController _defaultMenuItems]): 2014-11-19 Dana Burkart Merge r176351. rdar://problem/18971616 2014-11-19 Beth Dakin Data detected results with no menu items should not fall through to regular text action menus https://bugs.webkit.org/show_bug.cgi?id=138887 -and corresponding- rdar://problem/18971616 Reviewed by Tim Horton. * WebView/WebActionMenuController.mm: (-[WebActionMenuController _defaultMenuItems]): 2014-11-19 Dana Burkart Merge r176288. rdar://problem/18840382 2014-11-18 Tim Horton Avoid re-encoding action menu image data https://bugs.webkit.org/show_bug.cgi?id=138817 Reviewed by Anders Carlsson. * WebView/WebActionMenuController.mm: (-[WebActionMenuController _defaultMenuItemsForImage:]): (-[WebActionMenuController _addImageToPhotos:]): Build a temporary filename from a UUID and the image's desired extension. Use the Image's encoded data instead of re-encoding it with CGImageDestination. Build an image menu only if we have an image, URL, data, and extension. 2014-11-19 Dana Burkart Merge r176220. rdar://problem/18944893 2014-11-17 Beth Dakin Whitespace action menus should focus the HitTestResult and create an insertion point https://bugs.webkit.org/show_bug.cgi?id=138786 -and corresponding- rdar://problem/18944893 Reviewed by Tim Horton. Whitespace menus should cause the HitTestResult to be focused, and they should set the selection based on the HitTest location. * WebView/WebActionMenuController.mm: (-[WebActionMenuController isMenuForTextContent]): (-[WebActionMenuController focusAndSelectHitTestResult]): (-[WebActionMenuController willOpenMenu:withEvent:]): 2014-11-18 Dana Burkart Merge r176164. rdar://problem/18953982 2014-11-16 Tim Horton Use TextIndicator instead of the built in Lookup highlight https://bugs.webkit.org/show_bug.cgi?id=138775 Reviewed by Anders Carlsson. * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): Remove a WKSI import. * WebView/WebActionMenuController.mm: (-[WebActionMenuController _lookupText:]): (-[WebActionMenuController _createActionMenuItemForTag:]): Make use of the new Lookup SPI header. Disable the Lookup item if lookup is not available. 2014-11-17 Dana Burkart Merge r176145. 2014-11-14 Timothy Horton Update some artwork for the legacy WebKit action menu https://bugs.webkit.org/show_bug.cgi?id=138758 * WebView/WebActionMenuController.mm: (webKitBundleImageNamed): Deleted. Fix the build. 2014-11-17 Dana Burkart Merge r176143. 2014-11-14 Tim Horton Update some artwork for the legacy WebKit action menu https://bugs.webkit.org/show_bug.cgi?id=138758 Reviewed by Simon Fraser. * WebView/WebActionMenuController.mm: (-[WebActionMenuController _createActionMenuItemForTag:]): 2014-11-17 Dana Burkart Merge r176132. 2014-11-14 Beth Dakin WK1: Webpage preview can come up in wrong location https://bugs.webkit.org/show_bug.cgi?id=138747 -and corresponding- rdar://problem/18979004 Reviewed by Tim Horton. Converting to window twice is bad. * WebView/WebActionMenuController.mm: (elementBoundingBoxInWindowCoordinatesFromNode): (-[WebActionMenuController _quickLookURLFromActionMenu:]): (elementBoundingBoxFromNode): Deleted. 2014-11-17 Dana Burkart Merge r176107. 2014-11-13 Beth Dakin WK1: Clean up WebActionMenuController to use the _hitTestResult ivar https://bugs.webkit.org/show_bug.cgi?id=138716 -and corresponding- rdar://problem/18977222 Reviewed by Tim Horton. It’s not necessary to use the WebElementDictionary for so many things now that we are caching the HitTestResult. We should just use the HitTestResult. * WebView/WebActionMenuController.mm: (-[WebActionMenuController prepareForMenu:withEvent:]): (-[WebActionMenuController _openURLFromActionMenu:]): (-[WebActionMenuController _addToReadingListFromActionMenu:]): (elementBoundingBoxFromNode): (-[WebActionMenuController _quickLookURLFromActionMenu:]): (-[WebActionMenuController _defaultMenuItemsForLink]): (-[WebActionMenuController _defaultMenuItemsForImage]): (-[WebActionMenuController _defaultMenuItemsForVideo]): (-[WebActionMenuController _defaultMenuItemsForText]): (-[WebActionMenuController _defaultMenuItemsForEditableText]): (-[WebActionMenuController _defaultMenuItemsForEditableTextWithSuggestions]): (-[WebActionMenuController _defaultMenuItemsForWhitespaceInEditableArea]): (-[WebActionMenuController _createActionMenuItemForTag:]): (-[WebActionMenuController _defaultMenuItems]): (-[WebActionMenuController _elementBoundingBoxFromDOMElement:]): Deleted. (-[WebActionMenuController _defaultMenuItemsForLink:]): Deleted. (-[WebActionMenuController _defaultMenuItemsForImage:]): Deleted. (-[WebActionMenuController _defaultMenuItemsForVideo:]): Deleted. (-[WebActionMenuController _defaultMenuItemsForText:]): Deleted. (-[WebActionMenuController _defaultMenuItemsForEditableText:]): Deleted. (-[WebActionMenuController _defaultMenuItemsForEditableTextWithSuggestions:]): Deleted. (-[WebActionMenuController _defaultMenuItemsForWhitespaceInEditableArea:]): Deleted. (-[WebActionMenuController _createActionMenuItemForTag:withHitTestResult:]): Deleted. (-[WebActionMenuController _defaultMenuItemsForHitTestResult:]): Deleted. 2014-11-17 Dana Burkart Merge r176099. 2014-11-13 Beth Dakin WK1: Support default actions for video https://bugs.webkit.org/show_bug.cgi?id=138713 -and corresponding- rdar://problem/18877520 Reviewed by Tim Horton. Call setToNonShadowAncestor() for media HitTestResults. * WebView/WebActionMenuController.mm: (-[WebActionMenuController performHitTestAtPoint:]): Default items and actions. (-[WebActionMenuController _defaultMenuItemsForVideo:]): (-[WebActionMenuController _copyVideoURL:]): (-[WebActionMenuController _saveVideoToDownloads:]): (-[WebActionMenuController _createActionMenuItemForTag:withHitTestResult:]): (-[WebActionMenuController _defaultMenuItemsForHitTestResult:]): * WebView/WebUIDelegatePrivate.h: 2014-11-17 Dana Burkart Merge r176093. 2014-11-13 Tim Horton WK1: Update icon for Add to Reading List https://bugs.webkit.org/show_bug.cgi?id=138710 Reviewed by Beth Dakin. * WebView/WebActionMenuController.mm: (-[WebActionMenuController _createActionMenuItemForTag:withHitTestResult:]): Use the right icon, matching WebKit2. 2014-11-17 Dana Burkart Merge r176153. 2014-11-15 Tim Horton Implement data detectors and mailto action menus for WebKit1 https://bugs.webkit.org/show_bug.cgi?id=138765 Reviewed by Beth Dakin. * WebView/WebActionMenuController.h: * WebView/WebActionMenuController.mm: (-[WebActionMenuController willOpenMenu:withEvent:]): Tell DataDetectors that the menu is going to open. Select the text (or not) based on the number of items in the menu, just like WebKit2. (-[WebActionMenuController didCloseMenu:withEvent:]): Tell DataDetectors that the menu closed. (-[WebActionMenuController _defaultMenuItemsForLink]): Move these checks out of _defaultMenuItemsForLink, because we expect this to always return a complete link menu. (-[WebActionMenuController _defaultMenuItemsForMailtoLink]): Implement. More or less copied from WebKit2. (-[WebActionMenuController _selectDataDetectedText]): Select the stashed range. (-[WebActionMenuController _defaultMenuItemsForDataDetectedText]): Implement. More or less copied from WebKit2. The yellow highlight isn't hooked up yet. Give the client a chance to override via _webView:actionContextForHitTestResult:range:. (-[WebActionMenuController _selectLookupText]): Remove an unnecessary return. (-[WebActionMenuController _defaultMenuItems]): Call into the two new menu types. * WebView/WebUIDelegatePrivate.h: 2014-11-12 Beth Dakin WK1: Support default actions for images https://bugs.webkit.org/show_bug.cgi?id=138668 -and corresponding- rdar://problem/18785434 Reviewed by Tim Horton. * WebView/WebActionMenuController.h: * WebView/WebActionMenuController.mm: (-[WebActionMenuController didCloseMenu:withEvent:]): (-[WebActionMenuController _defaultMenuItemsForImage:]): (-[WebActionMenuController _copyImage:]): (temporaryPhotosDirectoryPath): (pathToPhotoOnDisk): (-[WebActionMenuController _canAddMediaToPhotos]): (-[WebActionMenuController _addImageToPhotos:]): (-[WebActionMenuController _saveImageToDownloads:]): (-[WebActionMenuController sharingServicePicker:sharingServicesForItems:mask:proposedSharingServices:]): (-[WebActionMenuController sharingServicePicker:delegateForSharingService:]): (-[WebActionMenuController sharingService:sourceWindowForShareItems:sharingContentScope:]): (-[WebActionMenuController _createActionMenuItemForTag:withHitTestResult:]): (-[WebActionMenuController _defaultMenuItemsForHitTestResult:]): * WebView/WebUIDelegatePrivate.h: 2014-11-12 Matthew Hanson Merge r175962. 2014-11-11 Tim Horton Localize strings for action menus https://bugs.webkit.org/show_bug.cgi?id=138591 Reviewed by Dan Bates. * WebView/WebActionMenuController.mm: (-[WebActionMenuController _createActionMenuItemForTag:withHitTestResult:]): Make use of the new strings. 2014-11-11 Babak Shafiei Merge r175996. 2014-11-11 Beth Dakin Action menu hit testing is not working properly with all WK1 apps https://bugs.webkit.org/show_bug.cgi?id=138643 -and corresponding- rdar://problem/18949376 Reviewed by Tim Horton. * WebView/WebActionMenuController.mm: (-[WebActionMenuController prepareForMenu:withEvent:]): (-[WebActionMenuController _lookupText:]): 2014-11-11 Matthew Hanson Merge r175821. 2014-11-10 Beth Dakin Action menu initialization should be moved to _commonInitializationWithFrameName https://bugs.webkit.org/show_bug.cgi?id=138572 -and corresponding- rdar://problem/18929733 Reviewed by Tim Horton. * WebView/WebView.mm: (-[WebView _commonInitializationWithFrameName:groupName:]): (-[WebView _initWithFrame:frameName:groupName:]): 2014-11-10 Beth Dakin WK1: Support default actions for editable text with misspelled word https://bugs.webkit.org/show_bug.cgi?id=138590 -and corresponding- rdar://problem/18877506 Reviewed by Tim Horton. If there are misspelled word suggestions for editable text, create a new type of menu with a spelling suggestion sub-menu. * WebView/WebActionMenuController.mm: (-[WebActionMenuController isMenuForTextContent]): (-[WebActionMenuController _defaultMenuItemsForEditableTextWithSuggestions:]): (-[WebActionMenuController _changeSelectionToSuggestion:]): (-[WebActionMenuController _createActionMenuItemForTag:withHitTestResult:]): (-[WebActionMenuController _defaultMenuItemsForHitTestResult:]): * WebView/WebHTMLView.mm: (-[WebHTMLView _changeSpellingToWord:]): * WebView/WebHTMLViewInternal.h: * WebView/WebUIDelegatePrivate.h: 2014-11-11 Matthew Hanson Merge r175837. 2014-11-10 Beth Dakin WK1: Support default actions for editable whitespace https://bugs.webkit.org/show_bug.cgi?id=138586 -and corresponding- rdar://problem/18932048 Reviewed by Tim Horton. New menu type. Just wants paste. * WebView/WebActionMenuController.mm: (-[WebActionMenuController isMenuForTextContent]): (-[WebActionMenuController _defaultMenuItemsForWhitespaceInEditableArea:]): (-[WebActionMenuController _defaultMenuItemsForHitTestResult:]): * WebView/WebUIDelegatePrivate.h: 2014-11-11 Matthew Hanson Merge r175832. 2014-11-10 Beth Dakin WK1: Support default actions for editable text https://bugs.webkit.org/show_bug.cgi?id=138580 -and corresponding- rdar://problem/18877497 Reviewed by Tim Horton. New menu type, and new action type for paste. * WebView/WebActionMenuController.mm: (-[WebActionMenuController isMenuForTextContent]): (-[WebActionMenuController willOpenMenu:withEvent:]): (-[WebActionMenuController _defaultMenuItemsForEditableText:]): (-[WebActionMenuController _paste:]): (-[WebActionMenuController _createActionMenuItemForTag:withHitTestResult:]): (-[WebActionMenuController _defaultMenuItemsForHitTestResult:]): * WebView/WebUIDelegatePrivate.h: 2014-11-11 Matthew Hanson Merge r175831. 2014-11-10 Beth Dakin WK1: Text is getting selected even when an action menu fails to invoke https://bugs.webkit.org/show_bug.cgi?id=138576 -and corresponding- rdar://problem/18931330 Reviewed by Tim Horton. Selection changes should happen in willOpenMenu: instead of prepareForMenu: * WebView/WebActionMenuController.h: * WebView/WebActionMenuController.mm: (-[WebActionMenuController prepareForMenu:withEvent:]): (-[WebActionMenuController willOpenMenu:withEvent:]): _selectLookupText no longer needs to return a BOOL indicating success or failure. (-[WebActionMenuController _selectLookupText]): (-[WebActionMenuController _defaultMenuItemsForHitTestResult:]): Pass willOpenMenu: on to the controller. * WebView/WebView.mm: (-[WebView willOpenMenu:withEvent:]): 2014-11-11 Matthew Hanson Merge r175825. 2014-11-10 Beth Dakin Speculative build fix. * WebView/WebActionMenuController.mm: 2014-11-10 Beth Dakin WK1: Support default actions for read-only text https://bugs.webkit.org/show_bug.cgi?id=138552 -and corresponding- rdar://problem/18877483 Reviewed by Tim Horton. New WKSystemInterface functions that WebCore needs to use. * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): WebActionMenuController now keeps an ivar for the WebCore::HitTestResult. This makes a lot of things easier. * WebView/WebActionMenuController.h: * WebView/WebActionMenuController.mm: Perform the hit test ourselves instead of calling into WebView so that we can more easily save the WebCore::HitTestResult for ourselves. (-[WebActionMenuController performHitTestAtPoint:]): Clear selection for non-text menus. (-[WebActionMenuController prepareForMenu:withEvent:]): Re-set the _type here just to be safe. (-[WebActionMenuController didCloseMenu:withEvent:]): Moving this method to be next to the link actions so they can be within a pragma mark. (-[WebActionMenuController _defaultMenuItemsForLink:]): New method for default text actions — lookup and copy. (-[WebActionMenuController _defaultMenuItemsForText:]): (-[WebActionMenuController _copySelection:]): (-[WebActionMenuController _lookupText:]): If there is not already a selection, invoking the action menu on text should select the lookup text. (-[WebActionMenuController _selectLookupText]): (performDictionaryLookupForSelection): (performDictionaryLookupForRange): Handle text now. (-[WebActionMenuController _createActionMenuItemForTag:withHitTestResult:]): (-[WebActionMenuController _defaultMenuItemsForHitTestResult:]): New enum values. * WebView/WebUIDelegatePrivate.h: Pass didCloseMenu on to the controller. * WebView/WebView.mm: (-[WebView didCloseMenu:withEvent:]): 2014-11-04 Matthew Hanson Merge r175425. 2014-10-31 Beth Dakin Use system art for action menus when possible https://bugs.webkit.org/show_bug.cgi?id=138260 Reviewed by Tim Horton. * WebView/WebActionMenuController.mm: (-[WebActionMenuController _createActionMenuItemForTag:withHitTestResult:]): 2014-10-29 Lucas Forschler Fix the branch pre-Yosemite build by moving an #if to encompass the whole file. * Misc/WebSharingServicePickerController.mm: 2014-10-29 Lucas Forschler Merge r175229 2014-10-27 Beth Dakin Provide a way for WebKit1 clients to override default action menu items https://bugs.webkit.org/show_bug.cgi?id=138066 -and corresponding- rdar://problem/18451638 Reviewed by Anders Carlsson. WebActionMenuController now has an ivar for the WebActionMenuType so that it can send that along to clients customizing the menu. * WebView/WebActionMenuController.h: * WebView/WebActionMenuController.mm: (-[WebActionMenuController prepareForMenu:withEvent:]): (-[WebActionMenuController _defaultMenuItemsForHitTestResult:]): New enum and new SPI to customize menus. * WebView/WebUIDelegatePrivate.h: 2014-10-29 Lucas Forschler Merge r175147 2014-10-23 Tim Horton Add some SPI headers for NSExtension and NSSharingService{Picker} https://bugs.webkit.org/show_bug.cgi?id=138027 Reviewed by Anders Carlsson. * Misc/WebSharingServicePickerController.h: * Misc/WebSharingServicePickerController.mm: * WebCoreSupport/WebSelectionServiceController.mm: * WebCoreSupport/WebContextMenuClient.mm: Fix a sorting issue. Replace redefinitions with SPI header #imports. 2014-10-29 Lucas Forschler Merge r172542 2014-08-13 Mark Rowe WebKit should build on Yosemite with the public SDK. Reviewed by Darin Adler. * Misc/WebSharingServicePickerController.mm: Forward-declare some details related to NSSharingServicePicker. 2014-10-28 Lucas Forschler Merge r175183 2014-10-24 Beth Dakin Build fix. * WebView/WebActionMenuController.mm: (-[WebActionMenuController _openURLFromActionMenu:]): (-[WebActionMenuController _addToReadingListFromActionMenu:]): (-[WebActionMenuController _quickLookURLFromActionMenu:]): 2014-10-28 Lucas Forschler Merge r175182 2014-10-24 Beth Dakin WebKit1 should support action menus https://bugs.webkit.org/show_bug.cgi?id=138032 Reviewed by Tim Horton. This patch adds basic support for action menus and adds actions for links. Helper class takes care of all of the action menu work. WebView will forward the prepareForMenu: message, and then the helper class takes it from there. * WebView/WebActionMenuController.h: Added. * WebView/WebActionMenuController.mm: Added. (-[WebActionMenuController webViewClosed]): (-[WebActionMenuController prepareForMenu:withEvent:]): Selectors for link actions. (-[WebActionMenuController _openURLFromActionMenu:]): (-[WebActionMenuController _addToReadingListFromActionMenu:]): (-[WebActionMenuController _elementBoundingBoxFromDOMElement:]): (-[WebActionMenuController _quickLookURLFromActionMenu:]): (-[WebActionMenuController _createActionMenuItemForTag:withHitTestResult:]): (webKitBundleImageNamed): (-[WebActionMenuController _defaultMenuItemsForLink:]): (-[WebActionMenuController _defaultMenuItemsForHitTestResult:]): Tags for the action menu items. * WebView/WebUIDelegatePrivate.h: * WebView/WebView.mm: Set the action menu if possible and create the controller. (-[WebView _initWithFrame:frameName:groupName:]): (-[WebView _close]): (-[WebView prepareForMenu:withEvent:]): WebViewData stores the WebActionMenuHelper * WebView/WebViewData.h: * WebView/WebViewData.mm: (-[WebViewPrivate dealloc]): 2014-10-28 Dana Burkart Merge r175132. 2014-10-23 Tim Horton Crashes under WebSelectionServiceController::hasRelevantSelectionServices https://bugs.webkit.org/show_bug.cgi?id=138013 Reviewed by Dan Bernstein. * WebCoreSupport/WebSelectionServiceController.mm: (WebSelectionServiceController::hasRelevantSelectionServices): Don't adopt this autoreleased object. 2014-10-28 Dana Burkart Merge r174841. 2014-10-17 Tim Horton Build fix for 32-bit Yosemite * WebCoreSupport/WebContextMenuClient.mm: (WebContextMenuClient::contextMenuForEvent): Avoid using NSItemProvider in 32-bit, because it doesn't exist. 2014-10-28 Dana Burkart Merge r174837. 2014-10-17 Tim Horton Fix the build with the public SDK. * WebCoreSupport/WebSelectionServiceController.mm: We should transition all this SPI to real SPI headers as soon as possible. 2014-10-28 Dana Burkart Merge r174791. 2014-10-16 Tim Horton Implement selection services menu for Legacy WebKit https://bugs.webkit.org/show_bug.cgi?id=137582 Reviewed by Brady Eidson. * Misc/WebSharingServicePickerController.h: Move SPI into the header (in the near future it will be moved to a modern-style SPI header). Add WebSharingServicePickerClient, which other classes can implement instead of tying WebSharingServicePickerController strongly to WebContextMenuClient. Make initWithData:... -> initWithItems:... instead, taking an array of NSItemProviders. * Misc/WebSharingServicePickerController.mm: Pass in NSSharingServicePickerStyle, so that clients can specify the style. (-[WebSharingServicePickerController clear]): (-[WebSharingServicePickerController didShareImageData:confirmDataIsValidTIFFData:]): (-[WebSharingServicePickerController sharingServicePicker:didChooseSharingService:]): (-[WebSharingServicePickerController sharingService:sourceFrameOnScreenForShareItem:]): (-[WebSharingServicePickerController sharingService:transitionImageForShareItem:contentRect:]): (-[WebSharingServicePickerController sharingService:sourceWindowForShareItems:sharingContentScope:]): Make use of WebSharingServicePickerClient. (-[WebSharingServicePickerController sharingService:didShareItems:]): If we're returned a NSAttributedString, paste it on top of the current selection, similar to what the WebKit2 implementation currently does. * WebCoreSupport/WebChromeClient.h: * WebCoreSupport/WebChromeClient.mm: (WebChromeClient::handleTelephoneNumberClick): (WebChromeClient::handleSelectionServiceClick): (WebChromeClient::hasRelevantSelectionServices): Override the services-related ChromeClient functions, forward them to WebSelectionServiceController. * WebCoreSupport/WebContextMenuClient.h: * WebCoreSupport/WebContextMenuClient.mm: (WebContextMenuClient::sharingServicePickerWillBeDestroyed): (WebContextMenuClient::pageForSharingServicePicker): (WebContextMenuClient::windowForSharingServicePicker): (WebContextMenuClient::screenRectForCurrentSharingServicePickerItem): (WebContextMenuClient::imageForCurrentSharingServicePickerItem): (WebContextMenuClient::contextMenuForEvent): (WebContextMenuClient::screenRectForHitTestNode): Deleted. (WebContextMenuClient::renderedImageForControlledImage): Deleted. (WebContextMenuClient::clearSharingServicePickerController): Deleted. Have WebContextMenuClient implement WebSharingServicePickerClient to avoid having WebSharingServicePickerController tightly bound to it. Make an NSItemProvider array when instantiating WebSharingServicePickerController instead of handing it data directly. * WebCoreSupport/WebSelectionServiceController.h: Copied from Source/WebKit/mac/WebCoreSupport/WebContextMenuClient.h. * WebCoreSupport/WebSelectionServiceController.mm: Added. (WebSelectionServiceController::WebSelectionServiceController): Add WebSelectionServiceController, which will act as the WebSharingServicePickerClient for selection services. (WebSelectionServiceController::handleSelectionServiceClick): Create a WebSharingSericePickerController with the selection's attributed string, and show its menu. (hasCompatibleServicesForItems): (WebSelectionServiceController::hasRelevantSelectionServices): Determine whether or not services are available. (WebSelectionServiceController::sharingServicePickerWillBeDestroyed): (WebSelectionServiceController::pageForSharingServicePicker): (WebSelectionServiceController::windowForSharingServicePicker): Implement the rest of the WebSharingServicePickerClient overrides. (WebSelectionServiceController::screenRectForCurrentSharingServicePickerItem): (WebSelectionServiceController::imageForCurrentSharingServicePickerItem): These are only useful for image sharing services, so we don't need to implement them (WebContextMenuClient does, on the other hand). * WebView/WebView.mm: (-[WebView _selectionServiceController]): * WebView/WebViewData.h: * WebView/WebViewData.mm: * WebView/WebViewInternal.h: Keep a WebSelectionServiceController. 2014-10-28 Dana Burkart Merge r174525. 2014-10-09 Tim Horton Add a WebKit1 preference for selection services https://bugs.webkit.org/show_bug.cgi?id=137498 Reviewed by Simon Fraser. * WebView/WebPreferenceKeysPrivate.h: * WebView/WebPreferences.mm: (+[WebPreferences initialize]): (-[WebPreferences serviceControlsEnabled]): (-[WebPreferences setServiceControlsEnabled:]): * WebView/WebPreferencesPrivate.h: * WebView/WebView.mm: (-[WebView _preferencesChanged:]): Add and plumb the preference. 2014-10-28 Dana Burkart Merge r174231. 2014-10-02 Tim Horton Move PageOverlay[Controller] to WebCore https://bugs.webkit.org/show_bug.cgi?id=137164 Reviewed by Anders Carlsson. * WebCoreSupport/WebChromeClient.h: * WebCoreSupport/WebChromeClient.mm: (WebChromeClient::attachViewOverlayGraphicsLayer): Add an empty ChromeClient override. 2014-08-19 Dana Burkart Merge r172709. 2014-08-18 Andy Estes REGRESSION (r167856): adobe.com no longer able to launch Create Cloud app using a URL with a custom scheme https://bugs.webkit.org/show_bug.cgi?id=136010 Reviewed by Darin Adler. * Misc/WebKitVersionChecks.h: Removed WEBKIT_FIRST_VERSION_WITH_NAVIGATION_URL_VALIDATION. * WebView/WebPDFView.mm: (-[WebPDFView PDFViewWillClickOnLink:withURL:]): Passed AllowNavigationToInvalidURL::Yes to FrameLoader::loadFrameRequest. * WebView/WebView.mm: (-[WebView _preferencesChanged:]): Reverted the linked-on-or-after check added in r170120 since it's no longer necessary. 2014-08-13 Lucas Forschler Merge r172526 2014-08-13 Timothy Hatcher Web Inspector: Workaround a NSWindow change to the title bar. https://bugs.webkit.org/show_bug.cgi?id=135880 Reviewed by Joseph Pecoraro. * WebCoreSupport/WebInspectorClient.mm: (WebInspectorFrontendClient::setToolbarHeight): Only call setContentBorderThickness: on 10.9 and earlier. (-[WebInspectorWindowController init]): Only call setDrawsBackground: on 10.9 and earlier. (-[WebInspectorWindowController window]): Set titlebarAppearsTransparent on 10.10. Only call border thickness APIs on 10.9 and earlier. 2014-08-12 Lucas Forschler Merge r172379 2014-08-10 Timothy Hatcher Web Inspector: new glyphs are visible on OS X 10.9 builds https://bugs.webkit.org/show_bug.cgi?id=135743 Reviewed by Joseph Pecoraro. * WebCoreSupport/WebInspectorClient.mm: (-[WebInspectorWindowController window]): Use 10100 instead of 1090 for the version. 2014-08-07 Dana Burkart Merge r172241 2014-08-07 Timothy Hatcher Web Inspector: Update glyphs to be more like Xcode 6 https://bugs.webkit.org/show_bug.cgi?id=135705 Reviewed by Joseph Pecoraro. * Resources/Dock.pdf: Added. * Resources/DockLegacy.pdf: Copied from Source/WebKit/mac/Resources/Dock.pdf. * WebCoreSupport/WebInspectorClient.mm: (-[WebInspectorWindowController window]): Use new images. 2014-08-07 Dana Burkart Merge r172172 2014-08-06 Alexey Proskuryakov REGRESSION (WebKit2): iOS Safari default encoding doesn't follow system language https://bugs.webkit.org/show_bug.cgi?id=135667 Reviewed by Anders Carlsson. * WebView/WebPreferences.mm: (+[WebPreferences _setInitialDefaultTextEncodingToSystemEncoding]): Moved implementation to WebCore, so that it can be shared with WebKit2. * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): We now use WKGetWebDefaultCFStringEncoding in WebCore, so it needs to be initialized. 2014-08-05 Lucas Forschler Merge r172016 2014-08-04 Benjamin Poulain Check for null frame when processing geolocation authorization request https://bugs.webkit.org/show_bug.cgi?id=135577 Reviewed by Geoffrey Garen. * WebCoreSupport/WebGeolocationClient.mm: (WebGeolocationClient::requestPermission): 2014-08-05 Lucas Forschler Merge r171973 2014-08-02 Jeremy Jones Support both window and view based video fullscreen. https://bugs.webkit.org/show_bug.cgi?id=135525 Reviewed by Simon Fraser. Parenting in the view instead of the window gives the fullscreen implementation more latitude in how it implements the animation. * WebView/WebView.mm: (-[WebView _enterFullscreenForNode:]): Use view instead of window. 2014-07-27 Matthew Hanson Merge r171635. 2014-07-25 Jeremy Jones Parent fullscreen from window instead of view https://bugs.webkit.org/show_bug.cgi?id=135310 Reviewed by Jer Noble. Parenting in the view causes an incorrect animation to fullscreen, and can cause fullscreen to only expand to the size of the view instead of the whole window. * WebView/WebView.mm: (-[WebView _enterFullscreenForNode:]): Pass window instead of view. 2014-07-25 Dean Jackson Revert back to the Safari behavior from Mavericks and Mountain Lion on this branch. Follow-up comment from Dan Bernstein. * WebView/WebPreferences.mm: (+[WebPreferences initialize]): Make sure this only applies to Mavericks and Mountain Lion. 2014-07-25 Dean Jackson Revert back to the Safari behavior from Mavericks and Mountain Lion on this branch. Reviewed by Ricky Mondello. * WebView/WebPreferences.mm: (+[WebPreferences initialize]): Set WebGL preference default to off. 2014-07-24 Lucas Forschler Merge r171575 2014-07-24 Pratik Solanki [iOS] Remove prefs to tweak cache values https://bugs.webkit.org/show_bug.cgi?id=135274 Reviewed by Alexey Proskuryakov. Remove iOS specific code that used to look up user defaults to see if any cache values were overridden. This was added for testing, is not used any more and is actually harmful now. It can cause unnecessary memory churn when under memory pressure since we call [WebView _setCacheModel] as a means to clear out memory cache. * WebView/WebPreferenceKeysPrivate.h: * WebView/WebPreferences.mm: (+[WebPreferences initialize]): (-[WebPreferences _setNSURLMemoryCacheSize:]): Deleted. (-[WebPreferences _NSURLMemoryCacheSize]): Deleted. (-[WebPreferences _setNSURLDiskCacheSize:]): Deleted. (-[WebPreferences _NSURLDiskCacheSize]): Deleted. * WebView/WebPreferencesPrivate.h: * WebView/WebView.mm: (+[WebView _setCacheModel:]): 2014-07-24 Lucas Forschler Merge r171540 2014-07-24 Dan Bernstein WebKit part of [Cocoa] WebCore::ProtectionSpace doesn’t preserve all NSURLProtectionSpace properties, such as the distinguishedNames array https://bugs.webkit.org/show_bug.cgi?id=135229 Reviewed by Alexey Proskuryakov. * Misc/WebDownload.mm: (-[WebDownloadInternal download:didReceiveAuthenticationChallenge:]): Chanegd to use the ProtectionSpace constructor that takes an NSURLProtectionSpace. * Plugins/WebBaseNetscapePluginView.mm: (WebKit::getAuthenticationInfo): Ditto. * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::canAuthenticateAgainstProtectionSpace): Changed to use ProtectionSpace::nsSpace. 2014-07-23 Lucas Forschler Merge r171370 2014-07-22 Enrica Casucci REGRESSION (WebKit2): Selection inside accelerated overflow:scroll doesn't track scrolling. https://bugs.webkit.org/show_bug.cgi?id=135180 Reviewed by Simon Fraser. * WebCoreSupport/WebEditorClient.h: 2014-07-23 Lucas Forschler Merge r171345 2014-07-22 Jeremy Jones Don't create new UIWindow for video fullscreen. https://bugs.webkit.org/show_bug.cgi?id=135038 Reviewed by Darin Adler. Provide UIView to WebVideoFullscreenController * WebView/WebView.mm: (-[WebView _enterFullscreenForNode:]): pass UIView instead of nil 2014-07-22 Dana Burkart Merge r171338. 2014-07-21 Pratik Solanki Unreviewed iOS build fix after r171321. * WebView/WebView.mm: (-[WebView _preferencesChanged:]): 2014-07-22 Dana Burkart Merge r171321. 2014-07-21 Beth Dakin WK1 should always setAcceleratedCompositingForFixedPositionEnabled(true) on Yosemite https://bugs.webkit.org/show_bug.cgi?id=135135 Reviewed by Darin Adler. Get rid of the ChromeClient function, and enable the Setting instead. * WebCoreSupport/WebChromeClient.h: * WebCoreSupport/WebChromeClient.mm: (WebChromeClient::requiresAcceleratedCompositingForViewportConstrainedPosition): Deleted. * WebView/WebView.mm: (-[WebView _preferencesChanged:]): 2014-07-22 Dana Burkart Merge r171308. 2014-07-21 Beth Dakin Put position:fixed elements into layers when a WK1 view is layer-backed https://bugs.webkit.org/show_bug.cgi?id=135075 Reviewed by Darin Adler. Returns true when the WebHTMLView has a layer. * WebCoreSupport/WebChromeClient.h: * WebCoreSupport/WebChromeClient.mm: (WebChromeClient::requiresAcceleratedCompositingForViewportConstrainedPosition): 2014-07-22 Dana Burkart Merge r171252. 2014-07-18 Andy Estes [iOS] Tapping "Allow Website" on a restricted page does not bring up the keypad https://bugs.webkit.org/show_bug.cgi?id=135072 Reviewed by David Kilzer. * WebCoreSupport/WebFrameLoaderClient.h: Override contentFilterDidBlockLoad(). * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::dispatchDidStartProvisionalLoad): Reset contentFilterForBlockedLoad to nullptr. (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction): Check if this is navigation represents an unblock request and ignore if so. * WebView/WebFrame.mm: (-[WebFrame _contentFilterDidHandleNavigationAction:]): Called ContentFilter::handleUnblockRequestAndDispatchIfSuccessful(). If the unblock is successful, reload the main frame. * WebView/WebFrameInternal.h: 2014-07-22 Dana Burkart Merge r171195. 2014-07-17 Timothy Hatcher Make console.profile record to the Timeline. https://bugs.webkit.org/show_bug.cgi?id=134643 Reviewed by Joseph Pecoraro. * WebInspector/WebInspector.mm: (-[WebInspector isProfilingJavaScript]): (-[WebInspector toggleProfilingJavaScript:]): (-[WebInspector startProfilingJavaScript:]): (-[WebInspector stopProfilingJavaScript:]): (-[WebInspector isJavaScriptProfilingEnabled]): (-[WebInspector setJavaScriptProfilingEnabled:]): 2014-07-17 Dean Jackson Disable some features on this branch. Reviewed originally by Simon Fraser. Disable: - CSS_EXCLUSIONS - CSS_GRID_LAYOUT - INPUT_TYPE_COLOR - INPUT_TYPE_COLOR_POPUP - CANVAS_PATH - CSS_TRANSFORMS_ANIMATIONS_UNPREFIXED - INDIE_UI - SHARED_WORKERS - NAVIGATOR_HWCONCURRENCY - GAMEPAD - PICTURE_SIZES - CSS3_CONDITIONAL_RULES - WILL_REVEAL_EDGE_EVENTS * Configurations/FeatureDefines.xcconfig: 2014-07-16 David Kilzer [iOS] Update order file paths for WebKit and WebKit2 Reviewed by Darin Adler. * Configurations/Base.xcconfig: Rename WebKit.order to WebKitLegacy.order. 2014-07-16 Brady Eidson Add WebSecurityOrigin "webSecurityOriginFromDatabaseIdentifier" SPI and change _websiteDataURLForContainerWithURL: SPI and https://bugs.webkit.org/show_bug.cgi?id=134984 Reviewed by Dan Bernstein. * WebCoreSupport/WebSecurityOrigin.mm: (+[WebSecurityOrigin webSecurityOriginFromDatabaseIdentifier:]): Added. (-[WebSecurityOrigin initWithURL:]): Update using RefPtr API to avoid a ref(). 2014-07-15 Myles C. Maxfield [OSX] [WK1] Crash when exiting fullscreen https://bugs.webkit.org/show_bug.cgi?id=134943 Reviewed by Dean Jackson. AppKit doesn't remove a view from the Key View Loop when removing it from its superview. This codepath is already "tested" in fullscreen/full-screen-cancel.html, but because of our testing infrastructure, the broken codepath doesn't actually get hit in DRT. Therefore, there is no test. * WebView/WebFullScreenController.mm: (-[WebFullScreenController enterFullScreen:]): * WebCoreSupport/WebSecurityOriginPrivate.h: 2014-07-14 Bear Travis [Feature Queries] Enable Feature Queries on Mac https://bugs.webkit.org/show_bug.cgi?id=134404 Reviewed by Antti Koivisto. Enable Feature Queries on Mac and resume running the feature tests. * Configurations/FeatureDefines.xcconfig: Turn on ENABLE_CSS3_CONDITIONAL_RULES. 2014-07-11 Zalan Bujtas Subpixel layout: return integral results for offset*, client*, scroll* by default. https://bugs.webkit.org/show_bug.cgi?id=134651 Reviewed by Simon Fraser. Revert to returning integral values for Element.offset* client* scroll* by default. Fractional values break number of sites(tight design) and JS frameworks(fail to handle fractional values). Since snapped dimension depends on both the original point and the width/height of the box, we need to call RenderBoxModelObject::pixelSnapped*() helpers, instead of round(). Covered by existing tests * WebView/WebPreferences.mm: (+[WebPreferences initialize]): 2014-07-10 Joseph Pecoraro [Mac] NSWindow warning: adding an unknown subview opening detached Inspector https://bugs.webkit.org/show_bug.cgi?id=134813 Reviewed by Timothy Hatcher. * WebCoreSupport/WebInspectorClient.mm: (-[WebInspectorWindowController window]): Use a selector that will avoid the warning message. 2014-07-09 Ryosuke Niwa REGRESSION(r167770): Cannot login in Evernote Safari extension https://bugs.webkit.org/show_bug.cgi?id=134776 Reviewed by Enrica Casucci. Unfortunately, NSWindowDidBecomeKeyNotification does not notify us when a popover becomes key so we need to keep using the SPI (_windowChangedKeyState) I removed in r167770. * WebView/WebView.mm: (-[WebView _windowChangedKeyState]): 2014-07-09 Enrica Casucci Implement Editor::fontAttributesForSelectionStart() or iOS. https://bugs.webkit.org/show_bug.cgi?id=134771 Reviewed by Ryosuke Niwa. * WebView/WebViewPrivate.h: 2014-07-08 Tim Horton [WK2] Expose a few drawing/compositing settings on WKPreferences(Private) https://bugs.webkit.org/show_bug.cgi?id=134645 Reviewed by Dan Bernstein. * WebView/WebPreferences.mm: (-[WebPreferences setSubpixelCSSOMElementMetricsEnabled:]): Remove an extra unnecessary space. 2014-07-03 Daniel Bates Add WTF::move() https://bugs.webkit.org/show_bug.cgi?id=134500 Rubber-stamped by Anders Carlsson. Substitute WTF::move() for std::move(). * History/WebHistoryItem.mm: (-[WebHistoryItem initFromDictionaryRepresentation:]): * Plugins/Hosted/NetscapePluginInstanceProxy.h: (WebKit::NetscapePluginInstanceProxy::setCurrentReply): * Plugins/WebNetscapePluginView.mm: (-[WebNetscapePluginView scheduleTimerWithInterval:repeat:timerFunc:]): * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::dispatchDecidePolicyForResponse): (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction): (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction): (WebFrameLoaderClient::dispatchWillSubmitForm): * WebCoreSupport/WebInspectorClient.mm: (WebInspectorClient::openInspectorFrontend): (WebInspectorFrontendClient::WebInspectorFrontendClient): * WebView/WebArchive.mm: (-[WebArchive initWithMainResource:subresources:subframeArchives:]): 2014-07-01 Mark Rowe Remove duplication in code that prepares the user agent string on Mac and iOS Reviewed by Simon Fraser. * WebView/WebView.mm: (webKitBundleVersionString): Return the entire CFBundleVersion now that WebCore handles formatting it. (+[WebView _standardUserAgentWithApplicationName:]): 2014-07-02 Dan Bernstein Remove some code only needed for versions of Safari that are no longer supported https://bugs.webkit.org/show_bug.cgi?id=134537 Reviewed by Anders Carlsson. * History/WebHistoryItem.mm: * Misc/WebKitVersionChecks.h: * WebCoreSupport/WebSecurityOrigin.mm: (-[WebSecurityOrigin domain]): Deleted. * WebInspector/WebInspector.mm: (-[WebInspector showTimeline:]): Deleted. (+[WebInspector webInspector]): Deleted. (-[WebInspector setWebFrame:]): Deleted. (-[WebInspector window]): Deleted. (-[WebInspector showWindow:]): Deleted. * WebView/WebFrame.mm: (-[WebFrame reload]): * WebView/WebPDFView.mm: (-[WebPDFView menuForEvent:]): (-[WebPDFView _anyPDFTagsFoundInMenu:]): Deleted. * WebView/WebView.mm: (-[WebView _initWithFrame:frameName:groupName:]): (-[WebView _preferencesChanged:]): (-[WebView initWithFrame:frameName:groupName:]): (-[WebView _initWithFrame:frameName:groupName:usesDocumentViews:]): Deleted. (+[WebView _setAlwaysUseATSU:]): Deleted. (-[WebView _needsUnrestrictedGetMatchedCSSRules]): Deleted. * WebView/WebViewPrivate.h: 2014-07-01 Dan Bernstein Remove WebChromeClient code that was only needed for Safari versions earlier than 3.1 https://bugs.webkit.org/show_bug.cgi?id=134531 Reviewed by Daniel Bates. * WebCoreSupport/WebChromeClient.mm: (WebChromeClient::exceededDatabaseQuota): 2014-06-29 Yoav Weiss Add support for HTMLImageElement's sizes attribute https://bugs.webkit.org/show_bug.cgi?id=133620 Reviewed by Dean Jackson. Added an ENABLE_PICTURE_SIZES compile flag. * Configurations/FeatureDefines.xcconfig: 2014-06-27 Sam Weinig InfoClick (from Nisus Software) dies on viewing found items https://bugs.webkit.org/show_bug.cgi?id=134410 Reviewed by Andy Estes. InfoClick was calling -[WebPreferences setPrivateBrowsingEnabled:] before setting up a WebView (or anything else that would have set up WebKitSystemInterface), which now requires a set up WebKitSystemInterface. We can fix this by initializing it from +[WebPreferences initialize]. * WebView/WebPreferences.mm: (+[WebPreferences initialize]): Add call to InitWebCoreSystemInterface(). (+[WebPreferences _switchNetworkLoaderToNewTestingSession]): Remove now unnecessary call to InitWebCoreSystemInterface(). 2014-06-27 Peyton Randolph Add feature flag for link long-press gesture. https://bugs.webkit.org/show_bug.cgi?id=134262 Reviewed by Enrica Casucci. * Configurations/FeatureDefines.xcconfig: Add ENABLE_LINK_LONG_PRESS. 2014-06-26 Brady Eidson Remove use of PlatformStrategies for Gamepad API. https://bugs.webkit.org/show_bug.cgi?id=134348 Reviewed by Dean Jackson. Remove all the GamepadStrategy gunk: * WebCoreSupport/WebHIDGamepadController.mm: Removed. * WebCoreSupport/WebPlatformStrategies.h: * WebCoreSupport/WebPlatformStrategies.mm: (WebPlatformStrategies::createGamepadStrategy): Deleted. (WebPlatformStrategies::startMonitoringGamepads): Deleted. (WebPlatformStrategies::stopMonitoringGamepads): Deleted. (WebPlatformStrategies::platformGamepads): Deleted. Instead, install the HIDGamepadProvider as the shared GamepadProvider: * WebView/WebView.mm: (WebKitInitializeGamepadProviderIfNecessary): (-[WebView _commonInitializationWithFrameName:groupName:]): 2014-06-26 Joseph Pecoraro [iOS] Remove User Default for iOS TextField Debugging https://bugs.webkit.org/show_bug.cgi?id=134356 Reviewed by Timothy Hatcher. * WebView/WebPreferenceKeysPrivate.h: * WebView/WebView.mm: (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]): 2014-06-25 Brady Eidson Add HID-based gamepad implementation for Mac https://bugs.webkit.org/show_bug.cgi?id=134324 Reviewed by Dean Jackson. Add a class that acts as an intermediary between the GamepadStrategyClient and the HIDGamepadListener: * WebCoreSupport/WebHIDGamepadController.h: * WebCoreSupport/WebHIDGamepadController.mm: (WebHIDGamepadController::shared): (WebHIDGamepadController::WebHIDGamepadController): (WebHIDGamepadController::gamepadConnected): (WebHIDGamepadController::gamepadDisconnected): (WebHIDGamepadController::registerGamepadStrategyClient): (WebHIDGamepadController::unregisterGamepadStrategyClient): Implement the strategies by using the HIDGamepadListener: * WebCoreSupport/WebPlatformStrategies.mm: (WebPlatformStrategies::startMonitoringGamepads): (WebPlatformStrategies::stopMonitoringGamepads): (WebPlatformStrategies::platformGamepads): 2014-06-25 Brady Eidson Add new platform gamepad abstractions https://bugs.webkit.org/show_bug.cgi?id=134325 Reviewed by Dean Jackson. * WebCoreSupport/WebPlatformStrategies.h: * WebCoreSupport/WebPlatformStrategies.mm: (WebPlatformStrategies::createGamepadStrategy): (WebPlatformStrategies::startMonitoringGamepads): (WebPlatformStrategies::stopMonitoringGamepads): (WebPlatformStrategies::platformGamepads): 2014-06-25 Gavin Barraclough Should _updateVisibilityState on view hide/unhide. https://bugs.webkit.org/show_bug.cgi?id=134314 rdar://17171803 Reviewed by Sam Weinig. * WebView/WebView.mm: (-[WebView viewDidHide]): (-[WebView viewDidUnhide]): 2014-06-25 Chris Fleizach Add an undo group for each dictated utterance in WebKit https://bugs.webkit.org/show_bug.cgi?id=134086 Reviewed by Enrica Casucci. * WebView/WebHTMLView.mm: (-[WebHTMLView validAttributesForMarkedText]): (-[WebHTMLView insertText:]): 2014-06-25 Dana Burkart Add support for 5-tuple versioning. Reviewed by David Farler. * Configurations/Version.xcconfig: 2014-06-25 Laszlo Gombos Remove build guard for progress element https://bugs.webkit.org/show_bug.cgi?id=134292 Reviewed by Benjamin Poulain. * Configurations/FeatureDefines.xcconfig: 2014-06-24 Benjamin Poulain WK1 WebFrameNetworkingContext cleanup: do not instanciate an empty NSString to create an empty WTF::String https://bugs.webkit.org/show_bug.cgi?id=134222 Reviewed by Andreas Kling. * WebCoreSupport/WebFrameNetworkingContext.mm: (WebFrameNetworkingContext::sourceApplicationIdentifier): 2014-06-24 Joseph Pecoraro [iOS]: WK2 Inspector Node Highlighting https://bugs.webkit.org/show_bug.cgi?id=134257 Reviewed by Timothy Hatcher. * WebInspector/WebNodeHighlightView.mm: (-[WebNodeHighlightView layoutSublayers:]): 2014-06-24 Brady Eidson Enable GAMEPAD in the Mac build, but disabled at runtime. https://bugs.webkit.org/show_bug.cgi?id=134255 Reviewed by Dean Jackson. * Configurations/FeatureDefines.xcconfig: * WebView/WebPreferenceKeysPrivate.h: * WebView/WebPreferences.mm: (-[WebPreferences gamepadsEnabled]): (-[WebPreferences setGamepadsEnabled:]): * WebView/WebPreferencesPrivate.h: * WebView/WebView.mm: (-[WebView _preferencesChanged:]): 2014-06-24 Dan Bernstein Fixed the iOS build after r170358. * WebView/WebView.mm: (kit): 2014-06-23 Anders Carlsson Remove unused history visit code from WebHistoryItem https://bugs.webkit.org/show_bug.cgi?id=134201 Reviewed by Sam Weinig. * History/HistoryPropertyList.h: * History/HistoryPropertyList.mm: (HistoryPropertyListWriter::HistoryPropertyListWriter): (HistoryPropertyListWriter::writeHistoryItem): * History/WebHistory.mm: (-[WebHistoryPrivate visitedURL:withTitle:]): (-[WebHistoryPrivate addItem:discardDuplicate:]): (-[WebHistory _visitedURL:withTitle:method:wasFailure:]): (-[WebHistoryPrivate visitedURL:withTitle:increaseVisitCount:]): Deleted. (-[WebHistory _visitedURL:withTitle:method:wasFailure:increaseVisitCount:]): Deleted. * History/WebHistoryInternal.h: * History/WebHistoryItem.mm: (-[WebHistoryItem copyWithZone:]): (-[WebHistoryItem initFromDictionaryRepresentation:]): (-[WebHistoryItem _visitedWithTitle:]): (-[WebHistoryItem setVisitCount:]): Deleted. (-[WebHistoryItem _mergeAutoCompleteHints:]): Deleted. (-[WebHistoryItem _visitedWithTitle:increaseVisitCount:]): Deleted. (-[WebHistoryItem _recordInitialVisit]): Deleted. (timeToDay): Deleted. (-[WebHistoryItem _padDailyCountsForNewVisit:]): Deleted. (-[WebHistoryItem _collapseDailyVisitsToWeekly]): Deleted. (-[WebHistoryItem _recordVisitAtTime:increaseVisitCount:]): Deleted. (-[WebHistoryItem _setLastVisitedTimeInterval:]): Deleted. * History/WebHistoryItemInternal.h: * History/WebHistoryItemPrivate.h: * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::updateGlobalHistory): 2014-06-24 Eva Balazsfalvi REGRESSION(r170235): Remove incorrect ifdef guard https://bugs.webkit.org/show_bug.cgi?id=134246 Reviewed by Csaba Osztrogonác. * WebView/WebView.mm: (-[WebView _visibilityState]): 2014-06-23 Anders Carlsson Fix build. * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): 2014-06-21 Dan Bernstein Tried to fix the iOS build after r170235. * WebView/WebView.mm: 2014-06-21 Brady Eidson Gamepad API - Deprecate the existing implementation https://bugs.webkit.org/show_bug.cgi?id=134108 Reviewed by Timothy Hatcher. -Add new "GAMEPAD_DEPRECATED" build flag, moving the existing implementation to use it -Move some implementation files into a "deprecated" subdirectory. * Configurations/FeatureDefines.xcconfig: 2014-06-21 Commit Queue Unreviewed, rolling out r170244. https://bugs.webkit.org/show_bug.cgi?id=134157 GTK/EFL bindings generator works differently, making this patch not work there. Will fix entire patch after a rollout. (Requested by bradee-oh on #webkit). Reverted changeset: "Gamepad API - Deprecate the existing implementation" https://bugs.webkit.org/show_bug.cgi?id=134108 http://trac.webkit.org/changeset/170244 2014-06-21 Brady Eidson Gamepad API - Deprecate the existing implementation https://bugs.webkit.org/show_bug.cgi?id=134108 Reviewed by Timothy Hatcher. -Add new "GAMEPAD_DEPRECATED" build flag, moving the existing implementation to use it -Add the "Deprecated" suffix to some implementation files * Configurations/FeatureDefines.xcconfig: 2014-06-21 Eva Balazsfalvi Removing PAGE_VISIBILITY_API compile guard. https://bugs.webkit.org/show_bug.cgi?id=133844 Reviewed by Gavin Barraclough. * Configurations/FeatureDefines.xcconfig: * WebView/WebView.mm: (-[WebView _preferencesChanged:]): (-[WebView _visibilityState]): 2014-06-18 Anders Carlsson Make FrameLoadType a strongly typed enum https://bugs.webkit.org/show_bug.cgi?id=134047 Reviewed by Andreas Kling. * WebView/WebFrame.mm: (toWebFrameLoadType): (-[WebFrame _loadType]): * WebView/WebView.mm: (-[WebView _loadBackForwardListFromOtherView:]): (-[WebView goToBackForwardItem:]): 2014-06-18 Daniel Bates REGRESSION (r167856): Unable to log into HSBC app https://bugs.webkit.org/show_bug.cgi?id=133991 Reviewed by David Kilzer. Only enable the setting allowNavigationToInvalidURL for iOS app linked against WebKit/UIKit before iOS 8. * Misc/WebKitVersionChecks.h: Added macro constant WEBKIT_FIRST_VERSION_WITH_NAVIGATION_URL_VALIDATION. * WebView/WebView.mm: (-[WebView _preferencesChanged:]): Enable or disable the setting allowNavigationToInvalidURL as appropriate. 2014-06-18 Anders Carlsson Adopt modern C++11 loops and fix WebArchive creation functions https://bugs.webkit.org/show_bug.cgi?id=134032 Reviewed by Andreas Kling. * WebView/WebArchive.mm: (-[WebArchive initWithMainResource:subresources:subframeArchives:]): * WebView/WebDataSource.mm: (-[WebDataSource subresources]): 2014-06-15 Anders Carlsson Add an autorelease() member function to RetainPtr https://bugs.webkit.org/show_bug.cgi?id=133929 Reviewed by Dan Bernstein. * WebView/WebDataSource.mm: (-[WebDataSource data]): * WebView/WebHTMLView.mm: (-[WebHTMLView _selectionDraggingImage]): (-[WebHTMLView selectionImageForcingBlackText:selectionImageForcingBlackText:]): * WebView/WebResource.mm: (-[WebResource data]): 2014-06-11 Jeremy Jones WebFrameNetworkContext should not have a sourceApplicationIdentifier in WK1. https://bugs.webkit.org/show_bug.cgi?id=133772 Reviewed by Jer Noble. Return empty string from sourceApplicationIdentifier for WK1. * WebCoreSupport/WebFrameNetworkingContext.mm: (WebFrameNetworkingContext::sourceApplicationIdentifier): 2014-06-10 Timothy Horton Factor repeated CFRunLoopObserver code out https://bugs.webkit.org/show_bug.cgi?id=133690 Reviewed by Simon Fraser. * WebView/WebViewData.h: 2014-06-05 Pratik Solanki Remove unsused method _setAcceleratedImageDecoding https://bugs.webkit.org/show_bug.cgi?id=133554 Reviewed by Jon Honeycutt. * WebView/WebView.mm: (+[WebView _setAcceleratedImageDecoding:]): Deleted. * WebView/WebViewPrivate.h: 2014-06-05 Benjamin Poulain [iOS][WK2] Add device orientation https://bugs.webkit.org/show_bug.cgi?id=133530 Reviewed by Tim Horton. * WebView/WebFrame.mm: (-[WebFrame deviceOrientationChanged]): (-[WebFrame sendOrientationChangeEvent:]): * WebView/WebFramePrivate.h: 2014-05-31 Anders Carlsson Change DeferrableOneShotTimer to use std::function instead of being a class template https://bugs.webkit.org/show_bug.cgi?id=133423 Reviewed by Antti Koivisto. * WebView/WebView.mm: (+[WebView _setCacheModel:]): 2014-05-27 Jon Lee Update ENABLE(MEDIA_SOURCE) on Mac https://bugs.webkit.org/show_bug.cgi?id=133141 Reviewed by Darin Adler. * Configurations/FeatureDefines.xcconfig: 2014-05-27 Tibor Meszaros Remove BLOB guards https://bugs.webkit.org/show_bug.cgi?id=132863 Reviewed by Csaba Osztrogonác. * Configurations/FeatureDefines.xcconfig: * WebView/WebView.mm: (+[WebView _canHandleRequest:forMainFrame:]): 2014-05-24 Chris Fleizach AX: fix coordinate mapping for iOS accessibility https://bugs.webkit.org/show_bug.cgi?id=133188 Reviewed by Sam Weinig. * WebCoreSupport/WebChromeClient.h: * WebCoreSupport/WebChromeClient.mm: (WebChromeClient::accessibilityScreenToRootView): (WebChromeClient::rootViewToAccessibilityScreen): 2014-05-23 Jeremy Jones Hide fullscreen immediately when switching tabs. https://bugs.webkit.org/show_bug.cgi?id=133239 Reviewed by Eric Carlson. Renamed a function to better describe it's new functionality. * WebView/WebView.mm: (-[WebView viewDidMoveToWindow]): now calls: requestHideAndExitFullscreen 2014-05-20 Dean Jackson [Mac] Allow popup menus to override default appearance https://bugs.webkit.org/show_bug.cgi?id=133129 Reviewed by Tim Horton. Replace the call to wkPopupMenuWithSize with wkPopupMenu, now with extra parameters to indicate the control size and whether or not to draw the arrows at the end. * WebCoreSupport/PopupMenuMac.mm: (PopupMenuMac::show): 2014-05-20 Eric Carlson [Mac] do not deactivate an audio session that has running I/O https://bugs.webkit.org/show_bug.cgi?id=133127 Reviewed by Jer Noble. * WebView/WebView.mm: (-[WebView _commonInitializationWithFrameName:groupName:]): Settings::setShouldManageAudioSession renamed to setShouldManageAudioSessionCategory, deal with it. 2014-05-19 Brady Eidson Use different AppKit API for image control menus. and https://bugs.webkit.org/show_bug.cgi?id=133087 Reviewed by Tim Horton. For image control menus, use popUpMenuPositioningItem: instead of popUpContextMenu: * WebCoreSupport/WebContextMenuClient.h: * WebCoreSupport/WebContextMenuClient.mm: (WebContextMenuClient::contextMenuForEvent): (WebContextMenuClient::showContextMenu): 2014-05-19 Andy Estes Set WebKitSuppressesIncrementalRenderingKey to NO by default on both Mac and iOS https://bugs.webkit.org/show_bug.cgi?id=133073 Reviewed by Simon Fraser. * WebView/WebPreferences.mm: (+[WebPreferences initialize]): 2014-05-18 Anders Carlsson Bring back two NSString category methods on iOS https://bugs.webkit.org/show_bug.cgi?id=133055 Reviewed by Adele Peterson. * Misc/WebNSURLExtras.h: * Misc/WebNSURLExtras.mm: (-[NSString _webkit_unescapedQueryValue]): (-[NSString _webkit_queryKeysAndValues]): 2014-05-18 Rik Cabanier support for navigator.hardwareConcurrency https://bugs.webkit.org/show_bug.cgi?id=132588 Reviewed by Filip Pizlo. * Configurations/FeatureDefines.xcconfig: 2014-05-17 Zalan Bujtas Subpixel rendering: Add subpixelCSSOMElementMetricsEnabled to WK1 WebPreferences. https://bugs.webkit.org/show_bug.cgi?id=133029 Reviewed by Simon Fraser. To match the WK2 preferences API. * WebView/WebPreferenceKeysPrivate.h: * WebView/WebPreferences.mm: (+[WebPreferences initialize]): (-[WebPreferences subpixelCSSOMElementMetricsEnabled]): (-[WebPreferences setSubpixelCSSOMElementMetricsEnabled:]): * WebView/WebPreferencesPrivate.h: * WebView/WebView.mm: (-[WebView _preferencesChanged:]): 2014-05-16 Simon Fraser Remove "region-based columns" prefs https://bugs.webkit.org/show_bug.cgi?id=133006 Reviewed by Dave Hyatt. Remove "region-based columns" prefs and related code, since this is only way to render columns now. * WebView/WebPreferenceKeysPrivate.h: * WebView/WebPreferences.mm: (+[WebPreferences initialize]): (-[WebPreferences setRegionBasedColumnsEnabled:]): Deleted. (-[WebPreferences regionBasedColumnsEnabled]): Deleted. * WebView/WebPreferencesPrivate.h: * WebView/WebView.mm: (-[WebView _preferencesChanged:]): 2014-05-15 Brady Eidson Crash in [WebSharingServicePickerController clear] and https://bugs.webkit.org/show_bug.cgi?id=132968 Reviewed by Tim Horton. * Misc/WebSharingServicePickerController.mm: (-[WebSharingServicePickerController clear]): Add a RetainPtr protector so this object isn’t dealloc’ed partway through. 2014-05-15 Simon Fraser Initialize the WebKitRegionBasedColumnsEnabled pref on iOS WK1 https://bugs.webkit.org/show_bug.cgi?id=132969 Reviewed by Dan Bernstein. Move this outside the #if !PLATFORM(IOS) block. * WebView/WebPreferences.mm: (+[WebPreferences initialize]): 2014-05-15 Simon Fraser Clean up -[WebView _preferencesChanged] https://bugs.webkit.org/show_bug.cgi?id=132967 Reviewed by Sam Weinig. -[WebView _preferencesChanged] was a horrible mess of #ifdefs. Clean this up by moving all the #if PLATFORM() code together, and moving all the feature-define related settings to the end. No behavior changes, checked by diffing the resulting Settings with and without the patch, on OS X and iOS. * WebView/WebView.mm: (-[WebView _preferencesChanged:]): 2014-05-15 Alex Christensen Add pointer lock to features without enabling it. https://bugs.webkit.org/show_bug.cgi?id=132961 Reviewed by Sam Weinig. * Configurations/FeatureDefines.xcconfig: Added ENABLE_POINTER_LOCK to list of features. * WebView/WebPDFView.mm: (-[WebPDFView PDFViewWillClickOnLink:withURL:]): Added extra parameters needed when pointer lock is enabled. 2014-05-14 Brady Eidson Implement NSSharingServiceDelegate method "transitionImageForShareItem" and https://bugs.webkit.org/show_bug.cgi?id=132911 Reviewed by Tim Horton. * Misc/WebSharingServicePickerController.mm: (-[WebSharingServicePickerController sharingService:transitionImageForShareItem:contentRect:]): * WebCoreSupport/WebContextMenuClient.h: * WebCoreSupport/WebContextMenuClient.mm: (WebContextMenuClient::renderedImageForControlledImage): Paint the entire content rect for the controlled image into an ImageBuffer, then return the resulting NSImage. This only paints the image itself and not any overlapping content by setting the selection and appropriate painting mode. 2014-05-14 Brady Eidson sourceFrameOnScreenForShareItem: can be off by a pixel and https://bugs.webkit.org/show_bug.cgi?id=132911 Reviewed by Simon Fraser. In a land of LayoutUnits and sub-pixel rendering, converting between IntRects and FloatRects can be error prone. So we now try to minimize such conversions. * Misc/WebSharingServicePickerController.mm: (-[WebSharingServicePickerController sharingService:sourceFrameOnScreenForShareItem:]): * WebCoreSupport/WebContextMenuClient.h: * WebCoreSupport/WebContextMenuClient.mm: (WebContextMenuClient::clientFloatRectForNode): Split this into a separate utility method as it will be shared with other code very soon. Instead of using absoluteBoundingBoxRect() which does lossy float->int conversions, try to keep things in terms of FloatRects as much as possible. (WebContextMenuClient::screenRectForHitTestNode): Call clientFloatRectForNode to get the FloatRect, then perform the lossy rounding conversion to an IntRect only once. 2014-05-14 Tibor Meszaros Remove CSS_STICKY_POSITION guards https://bugs.webkit.org/show_bug.cgi?id=132676 Reviewed by Simon Fraser. * Configurations/FeatureDefines.xcconfig: 2014-05-14 Antti Koivisto GIF animations don't restart after scrolling with iOS WebKit1 https://bugs.webkit.org/show_bug.cgi?id=132900 Reviewed by Andreas Kling. * WebView/WebView.mm: (-[WebView _didFinishScrollingOrZooming]): Check if the animations need to be restarted after scrolling finishes. 2014-05-09 Joseph Pecoraro Web Inspector: Allow Remote Inspector to entitlement check UIProcess through WebProcess https://bugs.webkit.org/show_bug.cgi?id=132409 Reviewed by Timothy Hatcher. Simplify the legacy iOS UIWebViewController case by passing on the host process pid and audit_token. * WebView/WebView.mm: (-[WebView _setHostApplicationProcessIdentifier:auditToken:]): (-[WebView setHostApplicationBundleId:name:]): Deleted. (-[WebView hostApplicationBundleId]): Deleted. (-[WebView hostApplicationName]): Deleted. * WebView/WebViewData.h: * WebView/WebViewData.mm: (-[WebViewPrivate dealloc]): * WebView/WebViewPrivate.h: 2014-05-09 Benjamin Poulain [iOS] Switch geolocation to an explicit authorization query model https://bugs.webkit.org/show_bug.cgi?id=132717 Reviewed by Sam Weinig. Since there is no warmup code, WebGeolocationPolicyListener no longer need to know about the provider, which is awesome :) * WebCoreSupport/WebGeolocationClient.mm: (-[WebGeolocationPolicyListener initWithGeolocation:forWebView:]): (-[WebGeolocationPolicyListener deny]): (-[WebGeolocationProviderInitializationListener initializationAllowedWebView:]): (-[WebGeolocationProviderInitializationListener initializationDeniedWebView:]): (-[WebGeolocationPolicyListener initWithGeolocation:forWebView:provider:]): Deleted. (-[WebGeolocationProviderInitializationListener initializationAllowedWebView:provider:]): Deleted. (-[WebGeolocationProviderInitializationListener initializationDeniedWebView:provider:]): Deleted. * WebView/WebViewPrivate.h: 2014-05-08 Jer Noble [Mac, iOS] Add source application accounting to AVURLAsset. https://bugs.webkit.org/show_bug.cgi?id=132637 Reviewed by Eric Carlson. Add accessor for sourceApplicationIdentifier. * WebCoreSupport/WebFrameNetworkingContext.h: * WebCoreSupport/WebFrameNetworkingContext.mm: (WebFrameNetworkingContext::sourceApplicationIdentifier): 2014-05-08 Anders Carlsson Use a different install name for WebKitLegacy.framework for staged framework builds https://bugs.webkit.org/show_bug.cgi?id=132711 Reviewed by Dan Bernstein. * Configurations/WebKitLegacy.xcconfig: 2014-05-08 Brady Eidson Wrap a new class definition with __has_include() and https://bugs.webkit.org/show_bug.cgi?id=132694 Reviewed by Tim Horton. * Misc/WebSharingServicePickerController.mm: 2014-05-07 Pratik Solanki Use system defaults for hardware jpeg decoding https://bugs.webkit.org/show_bug.cgi?id=132661 Reviewed by Tim Horton. Remove code that explicitly disabled hardware image decoding. Let the system decide what to do. * WebView/WebView.mm: (+[WebView _setAcceleratedImageDecoding:]): (+[WebView _acceleratedImageDecoding]): Deleted. * WebView/WebViewPrivate.h: 2014-05-07 Brent Fulgham [Mac, iOS] REGRESSION: WK2 YouTube support https://bugs.webkit.org/show_bug.cgi?id=132568 Reviewed by Darin Adler. * Misc/WebNSURLExtras.h: * Misc/WebNSURLExtras.mm: Remove code that has been converted to C++ and added to YouTubePluginReplacement.cpp. (-[NSURL _webkit_youTubeURL]): (-[NSString _webkit_queryKeysAndValues]): (createYouTubeURL): Deleted. (-[NSString _webkit_unescapedQueryValue]): Deleted. 2014-05-07 Jeremy Jones HTMLMediaElement should exitFullscreen when view is removed from the window. https://bugs.webkit.org/show_bug.cgi?id=132506 Reviewed by Tim Horton. * WebView/WebView.mm: (-[WebView viewDidMoveToWindow]): Request WebVideoFullscreenController to exitFullscreen when view is removed from the window. 2014-05-07 Brady Eidson Image menu is offset by the amount the view is scrolled and https://bugs.webkit.org/show_bug.cgi?id=132663 Reviewed by Tim Horton. * WebCoreSupport/WebContextMenuClient.mm: (WebContextMenuClient::showContextMenu): Use FrameView::contentsToWindow instead of contentsToRoot, and skip the [NSView convertPoint:toView:] step. 2014-05-07 Simon Fraser WebKit1 is flashy when compositing layers come and go https://bugs.webkit.org/show_bug.cgi?id=132655 Reviewed by Sam Weinig. In r166117 I removed code to flush compositing layers in FrameView::paintContents(), which caused problems when painting iframes. However, this removed a flush that WebKit1 relied on to flush compositing layers when painting, which caused flashing when compositing layers come and go, and broke WebView snapshotting in some cases. Fix by adding back compositing layer flushing, but this time in WebKit1's -viewWillDraw code path. This allows removal of some flushing in DumpRenderTree. * WebView/WebHTMLView.mm: (-[WebHTMLView viewWillDraw]): * WebView/WebView.mm: (-[WebView _flushCompositingChanges]): * WebView/WebViewInternal.h: * WebView/WebViewPrivate.h: 2014-05-07 Manuel Rego Casasnovas [CSS Grid Layout] Remove runtime feature https://bugs.webkit.org/show_bug.cgi?id=132382 Reviewed by Benjamin Poulain. Remove cssGridLayoutEnabled setting usage. * WebKit.order: * WebView/WebPreferenceKeysPrivate.h: * WebView/WebPreferences.mm: (+[WebPreferences initialize]): (-[WebPreferences cssGridLayoutEnabled]): Deleted. (-[WebPreferences setCSSGridLayoutEnabled:]): Deleted. * WebView/WebPreferencesPrivate.h: * WebView/WebView.mm: (-[WebView _preferencesChanged:]): 2014-05-06 Dean Jackson [Mac] Allow focus rings to redraw themselves if necessary https://bugs.webkit.org/show_bug.cgi?id=132593 Reviewed by Simon Fraser. * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): Add DrawFocusRingAtTime and DrawCellFocusRingWithFrameAtTime. 2014-05-06 Brady Eidson Don't select an image that is about to have its menu shown. and https://bugs.webkit.org/show_bug.cgi?id=132579 Reviewed by Tim Horton. * Misc/WebSharingServicePickerController.mm: (-[WebSharingServicePickerController didShareImageData:confirmDataIsValidTIFFData:]): Call the new replaceNodeFromPasteboard API instead of readSelectionFromPasteboard. 2014-05-06 Anders Carlsson Move the WebKitLegacy header check to the right file https://bugs.webkit.org/show_bug.cgi?id=132620 Reviewed by Dan Bernstein. * WebKitLegacy/MigrateHeadersFromWebKitLegacy.make: * WebKitLegacy/WebKit.h: 2014-05-06 Anders Carlsson Put WebKitPluginHost.app in WebKitLegacy.framework https://bugs.webkit.org/show_bug.cgi?id=132592 Reviewed by Dan Bernstein. * Plugins/Hosted/NetscapePluginHostManager.mm: (WebKit::NetscapePluginHostManager::spawnPluginHost): 2014-05-06 Darin Adler [iOS] Fix two more AdoptCF I missed in my last patch. * WebView/WebHTMLView.mm: (imageFromRect): Use adoptCF instead of AdoptCF. 2014-05-05 Andreas Kling Unreviewed, rolling out r168334. Broke builds. Reverted changeset: "Put WebKitPluginHost.app in WebKitLegacy.framework" https://bugs.webkit.org/show_bug.cgi?id=132592 http://trac.webkit.org/changeset/168334 2014-05-05 Anders Carlsson Put WebKitPluginHost.app in WebKitLegacy.framework https://bugs.webkit.org/show_bug.cgi?id=132592 Reviewed by Dan Bernstein. * Plugins/Hosted/NetscapePluginHostManager.mm: (WebKit::NetscapePluginHostManager::spawnPluginHost): 2014-05-02 Brady Eidson Implement new delegate method -sharingService:sourceFrameOnScreenForShareItem:. and https://bugs.webkit.org/show_bug.cgi?id=132484 Reviewed by Tim Horton. * Misc/WebSharingServicePickerController.mm: (-[WebSharingServicePickerController sharingService:sourceFrameOnScreenForShareItem:]): * WebCoreSupport/WebContextMenuClient.h: * WebCoreSupport/WebContextMenuClient.mm: (WebContextMenuClient::screenRectForHitTestNode): 2014-05-02 Brady Eidson Crash inside [WebSharingServicePickerController clear] and https://bugs.webkit.org/show_bug.cgi?id=132477 Reviewed by Tim Horton. * Misc/WebSharingServicePickerController.h: * Misc/WebSharingServicePickerController.mm: (-[WebSharingServicePickerController clear]): clear can be called twice, so null check _menuClient. * WebCoreSupport/WebContextMenuClient.h: * WebCoreSupport/WebContextMenuClient.mm: (WebContextMenuClient::~WebContextMenuClient): For a sanity check, call clear on the picker here. 2014-05-01 Tim Horton More 32-bit build fixes. * Misc/WebSharingServicePickerController.mm: (-[WebSharingServicePickerController sharingService:didShareItems:]): 2014-05-01 Tim Horton Temporarily "fix" the 32-bit build. * Misc/WebSharingServicePickerController.mm: This will fail miserably at runtime, but we shouldn't ever get here in a 32-bit process. 2014-05-01 Brady Eidson Update service picker API usage. and https://bugs.webkit.org/show_bug.cgi?id=132452 Reviewed by Tim Horton. * Misc/WebSharingServicePickerController.h: * Misc/WebSharingServicePickerController.mm: (-[WebSharingServicePickerController didShareImageData:confirmDataIsValidTIFFData:]): Factor out a common "didShare" handler that optionally validates whether the data represents an image. (-[WebSharingServicePickerController sharingService:didShareItems:]): Update API usage, including marshalling on off-main thread call back to the main thread. * WebCoreSupport/WebContextMenuClient.mm: (WebContextMenuClient::contextMenuForEvent): Update API usage. 2014-05-01 Anders Carlsson Support OS-version-specific install paths for WebKit.framework https://bugs.webkit.org/show_bug.cgi?id=132448 Reviewed by Dan Bernstein. * WebKitLegacy/WebKit.m: Add version specific install names. 2014-04-30 Alexey Proskuryakov Roll out fix for https://bugs.webkit.org/show_bug.cgi?id=131637: Clean up unnecessary methods in the BackForwardClient interface It broke a regression test and an API test. * History/WebBackForwardList.mm: (-[WebBackForwardList initWithBackForwardList:]): (-[WebBackForwardList init]): (-[WebBackForwardList dealloc]): (-[WebBackForwardList finalize]): (-[WebBackForwardList setPageCacheSize:]): (-[WebBackForwardList pageCacheSize]): * History/WebBackForwardListInternal.h: * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::canCachePage): * WebView/WebFrameView.mm: (-[WebFrameView keyDown:keyDown:]): * WebView/WebView.mm: (-[WebView _loadBackForwardListFromOtherView:]): (-[WebView initWithCoder:]): (-[WebView encodeWithCoder:]): (-[WebView backForwardList]): (-[WebView setMaintainsBackForwardList:]): 2014-04-30 Simon Fraser Remove ENABLE_PLUGIN_PROXY_FOR_VIDEO https://bugs.webkit.org/show_bug.cgi?id=132396 Reviewed by Eric Carlson. Remove ENABLE_PLUGIN_PROXY_FOR_VIDEO and related code. * Configurations/FeatureDefines.xcconfig: * Plugins/WebPluginContainerPrivate.h: * Plugins/WebPluginController.h: * Plugins/WebPluginController.mm: (-[WebPluginController dealloc]): (-[WebPluginController plugInsAreRunning]): (-[WebPluginController stopAllPlugins]): (-[WebPluginController stopPluginsForPageCache]): (-[WebPluginController restorePluginsFromCache]): (-[WebPluginController addPlugin:]): (-[WebPluginController destroyPlugin:]): (-[WebPluginController destroyAllPlugins]): (-[NSView isMediaPlugInProxyView]): Deleted. (-[NSView setIsMediaPlugInProxyView:]): Deleted. (-[WebPluginController mediaPlugInProxyViewCreated:]): Deleted. (+[WebPluginController pluginViewHidden:]): Deleted. (mediaProxyClient): Deleted. (-[WebPluginController _webPluginContainerSetMediaPlayerProxy:forElement:]): Deleted. (-[WebPluginController _webPluginContainerPostMediaPlayerNotification:forElement:]): Deleted. * WebCoreSupport/WebFrameLoaderClient.h: * WebCoreSupport/WebFrameLoaderClient.mm: (pluginView): * WebView/WebView.mm: (-[WebView _preferencesChanged:]): (-[WebView _videoProxyPluginForMIMEType:]): Deleted. * WebView/WebViewInternal.h: 2014-04-30 Anders Carlsson Move the legacy WebKit API into WebKitLegacy.framework and move it inside WebKit.framework https://bugs.webkit.org/show_bug.cgi?id=132399 Reviewed by Dan Bernstein. * Carbon/CarbonUtils.h: * Carbon/HIViewAdapter.h: * Carbon/HIWebView.h: Import WebKitLegacy headers instead of WebKit headers. * Configurations/WebKit.xcconfig: Move the definitions needed for building WebKitLegacy.framework to WebKitLegacy.xcconfig and add the relevant definitions needed for re-exporting WebKitLegacy.framework. * Configurations/WebKitLegacy.xcconfig: Add definitions needed for building the "old" WebKit API as WebKitLegacy.framework. * DOM/WebDOMOperations.h: * DOM/WebDOMOperations.mm: * DOM/WebDOMOperationsInternal.h: * DOM/WebDOMOperationsPrivate.h: * DefaultDelegates/WebDefaultContextMenuDelegate.h: * DefaultDelegates/WebDefaultContextMenuDelegate.mm: * DefaultDelegates/WebDefaultEditingDelegate.m: * History/WebBackForwardListInternal.h: * History/WebBackForwardListPrivate.h: * History/WebHistoryItemPrivate.h: * History/WebHistoryPrivate.h: * History/WebURLsWithTitles.m: Import WebKitLegacy headers instead of WebKit headers. * MigrateHeaders.make: Update header paths now that all WebKitLegacy headers are private. Remove migration of WebKit2 headers, that is done by MigrateHeadersFromWebKitLegacy.make now. * Misc/WebCoreStatistics.h: * Misc/WebDownload.h: * Misc/WebDownload.mm: * Misc/WebDownloadInternal.h: * Misc/WebElementDictionary.mm: * Misc/WebIconDatabasePrivate.h: * Misc/WebKit.h: * Misc/WebKitErrors.m: * Misc/WebKitErrorsPrivate.h: * Misc/WebKitNSStringExtras.mm: * Misc/WebLocalizableStrings.mm: * Misc/WebNSDataExtras.m: * Misc/WebNSDictionaryExtras.m: * Misc/WebNSEventExtras.m: * Misc/WebNSFileManagerExtras.mm: * Misc/WebNSImageExtras.m: * Misc/WebNSPasteboardExtras.mm: * Misc/WebNSViewExtras.h: * Misc/WebNSViewExtras.m: * Panels/WebAuthenticationPanel.m: * Panels/WebPanelAuthenticationHandler.m: * Plugins/Hosted/HostedNetscapePluginStream.h: * Plugins/Hosted/NetscapePluginInstanceProxy.h: * Plugins/Hosted/WebKitPluginAgent.defs: * Plugins/Hosted/WebKitPluginAgentReply.defs: * Plugins/Hosted/WebKitPluginClient.defs: * Plugins/Hosted/WebKitPluginHost.defs: * Plugins/Hosted/WebKitPluginHostTypes.defs: * Plugins/WebBaseNetscapePluginView.mm: * Plugins/WebBasePluginPackage.h: * Plugins/WebBasePluginPackage.mm: * Plugins/WebNetscapeContainerCheckPrivate.h: * Plugins/WebNetscapePluginEventHandlerCocoa.h: * Plugins/WebNetscapePluginStream.h: * Plugins/WebNetscapePluginView.h: * Plugins/WebNetscapePluginView.mm: * Plugins/WebPlugin.h: * Plugins/WebPluginController.h: * Plugins/WebPluginDatabase.h: * Plugins/WebPluginPackage.h: * Plugins/WebPluginPackage.mm: * Plugins/WebPluginViewFactory.h: * Plugins/WebPluginViewFactoryPrivate.h: * Plugins/npapi.mm: * Storage/WebDatabaseManagerPrivate.h: * WebCoreSupport/WebContextMenuClient.mm: * WebCoreSupport/WebFrameLoaderClient.mm: * WebCoreSupport/WebFrameNetworkingContext.mm: * WebCoreSupport/WebGeolocationClient.mm: * WebCoreSupport/WebInspectorClient.mm: * WebCoreSupport/WebJavaScriptTextInputPanel.m: * WebCoreSupport/WebKeyGenerator.mm: * WebInspector/WebInspectorPrivate.h: * WebInspector/WebNodeHighlight.h: * WebInspector/WebNodeHighlightView.h: Import WebKitLegacy headers instead of WebKit headers. * WebKitLegacy/MigrateHeadersFromWebKitLegacy.make: Added. New makefile that handles copying WebKitLegacy headers to the WebKit framework, rewriting WebKitLegacy imports to WebKit imports. (On iOS the WebKit headers just forward to the relevant WebKitLegacy headers). On OS X, this also handles copying WebKit2 headers to the WebKit framework, rewriting WebKit2 imports to WebKit imports and getting rid of C SPI imports. * WebKitLegacy/MigrateHeadersToLegacy.make: Removed. This is no longer needed. * WebKitLegacy/WebKit.h: Added. New umbrella header that imports the modern API if available, as well as the legacy API (using WebKit/WebKitLegacy.h). * WebKitLegacy/WebKit.m: This is an empty file so we'll have something to link. * WebKitLegacy/WebKitPrivate.h: New SPI header that imports the private headers of the modern API. * WebView/WebDataSource.h: * WebView/WebDataSource.mm: * WebView/WebDataSourcePrivate.h: * WebView/WebDelegateImplementationCaching.h: * WebView/WebDocument.h: * WebView/WebDocumentInternal.h: * WebView/WebDocumentPrivate.h: * WebView/WebEditingDelegate.h: * WebView/WebEditingDelegatePrivate.h: * WebView/WebFrameLoadDelegate.h: * WebView/WebFrameLoadDelegatePrivate.h: * WebView/WebFramePrivate.h: * WebView/WebFrameView.h: * WebView/WebFrameViewInternal.h: * WebView/WebFrameViewPrivate.h: * WebView/WebHTMLRepresentation.h: * WebView/WebHTMLRepresentation.mm: * WebView/WebHTMLRepresentationPrivate.h: * WebView/WebHTMLView.h: * WebView/WebHTMLView.mm: * WebView/WebHTMLViewPrivate.h: * WebView/WebPDFView.h: * WebView/WebPolicyDelegatePrivate.h: * WebView/WebPreferencesPrivate.h: * WebView/WebResourcePrivate.h: * WebView/WebUIDelegate.h: * WebView/WebUIDelegatePrivate.h: * WebView/WebView.h: * WebView/WebView.mm: * WebView/WebViewPrivate.h: Import WebKitLegacy headers instead of WebKit headers. * migrate-headers.sh: Derived sources are put in DerivedSources/WebKitLegacy now. 2014-04-30 David Hyatt [New Multicolumn] Enable new multi-column mode https://bugs.webkit.org/show_bug.cgi?id=131825 Reviewed by Simon Fraser. * WebView/WebPreferences.mm: (+[WebPreferences initialize]): 2014-04-30 Brian J. Burg Clean up unnecessary methods in the BackForwardClient interface https://bugs.webkit.org/show_bug.cgi?id=131637 Reviewed by Andreas Kling. BackForwardClient instances now have ownership lifetime semantics, so WebBackForwardList now explicitly deletes its inner BackForwardList. Convert uses of WebCore::BackForwardList through backForward().client() to accept references instead of pointers. Use BackForwardController methods rather than directly operating with the BackForwardClient where possible. Remove page cache-related methods that are not used anywhere and that call BackForwardClient::page(), which is removed by this change. * History/WebBackForwardList.mm: (-[WebBackForwardList initWithBackForwardList:]): (-[WebBackForwardList init]): (-[WebBackForwardList dealloc]): (-[WebBackForwardList finalize]): (-[WebBackForwardList setPageCacheSize]): Deleted. (-[WebBackForwardList pageCacheSize]): Deleted. (-[WebBackForwardList itemAtIndex:]): Deleted. * History/WebBackForwardListInternal.h: * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::canCachePage): * WebView/WebFrameView.mm: (-[WebFrameView keyDown:keyDown:]): * WebView/WebView.mm: (-[WebView _loadBackForwardListFromOtherView:]): (-[WebView initWithCoder:]): (-[WebView encodeWithCoder:]): (-[WebView backForwardList]): (-[WebView setMaintainsBackForwardList:]): 2014-04-29 Sam Weinig [iOS] -[WebHTMLView selectionImageForcingBlackText:] returns blank image on iOS https://bugs.webkit.org/show_bug.cgi?id=132359 Reviewed by Darin Adler. * WebView/WebHTMLView.mm: (imageFromRect): (selectionImage): (-[WebHTMLView selectionImageForcingBlackText:selectionImageForcingBlackText:]): Bring back the old FrameSnapshottingMac code for drawing the selection image as drag code for this is still unimplemented on iOS. * WebView/WebView.mm: (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]): Set the page scale for "simple HTML documents" (this is already done for the all other documents), to ensure that the snapshot is the correct size. 2014-04-30 Manuel Rego Casasnovas [CSS Grid Layout] Enable runtime feature by default https://bugs.webkit.org/show_bug.cgi?id=132189 Reviewed by Benjamin Poulain. * WebView/WebPreferences.mm: (+[WebPreferences initialize]): Remove unneeded changes that enable/disable the runtime feature depending on the compilation flag. And set it to true by default. 2014-04-29 Filip Pizlo Use LLVM as a backend for the fourth-tier DFG JIT (a.k.a. the FTL JIT) https://bugs.webkit.org/show_bug.cgi?id=112840 Rubber stamped by Geoffrey Garen. * Configurations/FeatureDefines.xcconfig: 2014-04-29 Brady Eidson Change Image Controls replacement to use selection and paste and https://bugs.webkit.org/show_bug.cgi?id=131992 Reviewed by Tim Horton. * Misc/WebSharingServicePickerController.mm: (-[WebSharingServicePickerController sharingService:didShareItems:]): Write the replacement data to a special pasteboard, then replace the current selection from that pasteboard. 2014-04-27 Sam Weinig [iOS WebKit2] Add support for text autosizing https://bugs.webkit.org/show_bug.cgi?id=132237 Reviewed by Tim Horton. * WebView/WebFrame.mm: (-[WebFrame _setTextAutosizingWidth:]): Forward setting of the text autosizing width to the Page. 2014-04-25 Dean Jackson Allow a platform-specific size enumeration to be passed into popup-menu display https://bugs.webkit.org/show_bug.cgi?id=132195 Reviewed by Brent Fulgham. With some in-person review comments from Sam Weinig. Platforms like OS X use a set of predefined sizes for built-in controls used for popover color well implementation and https://bugs.webkit.org/show_bug.cgi?id=119356 Reviewed by Benjamin Poulain. * Configurations/FeatureDefines.xcconfig: Added and enabled INPUT_TYPE_COLOR_POPOVER. 2013-07-31 Tim Horton Remove didFinishLoad order quirk https://bugs.webkit.org/show_bug.cgi?id=119354 Reviewed by Alexey Proskuryakov. * Misc/WebKitVersionChecks.h: * WebView/WebView.mm: (-[WebView _preferencesChanged:]): Don't set the now-removed preference. 2013-07-31 Kwang Yul Seo Use emptyString instead of String("") https://bugs.webkit.org/show_bug.cgi?id=119335 Reviewed by Darin Adler. Use emptyString() instead of String("") because it is better style and faster. This is a followup to r116908, removing all occurrences of String("") from WebKit. * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::userAgent): 2013-07-31 Ruth Fong Mac UI behaviour and https://bugs.webkit.org/show_bug.cgi?id=61276 Reviewed by Brady Eidson. * Configurations/FeatureDefines.xcconfig: Enabled INPUT_TYPE_COLOR. * WebCoreSupport/WebChromeClient.h: * WebCoreSupport/WebChromeClient.mm: (WebChromeClient::createColorPicker): Added stub implementation. 2013-07-26 Dean Jackson Allow new transitions to run even when controller is suspended https://bugs.webkit.org/show_bug.cgi?id=119171 Reviewed by Simon Fraser. Expose a new SPI on WebView that triggers the (buggy) old behaviour for animations, such that any newly created animations will start even when the document is supposedly suspended. It turns out that client content was unknowingly relying on this behaviour - e.g. suspending a view, loading a bunch of new content, bringing the view on screen and then unsuspending. In this situation, we were not running CSS transitions, because the page was suspended. However, JS was still triggering them, and content was expecting a transitionEnd event. * WebView/WebView.mm: (-[WebView allowsNewCSSAnimationsWhileSuspended]): Calls into AnimationController. (-[WebView setAllowsNewCSSAnimationsWhileSuspended:]): Ditto. * WebView/WebViewPrivate.h: New methods listed above. 2013-07-26 Anders Carlsson Add another method that we need to set aside subviews for https://bugs.webkit.org/show_bug.cgi?id=119157 Reviewed by Beth Dakin. * WebView/WebHTMLView.mm: (-[WebHTMLView _recursive:displayRectIgnoringOpacity:inContext:topView:]): (-[WebHTMLView _recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:topView:shouldChangeFontReferenceColor:]): 2013-07-25 Andreas Kling ChromeClient::focusedNodeChanged() should be focusedElementChanged(). Reviewed by Anders Carlsson. * WebCoreSupport/WebChromeClient.h: * WebCoreSupport/WebChromeClient.mm: (WebChromeClient::focusedElementChanged): 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-07-17 Commit Queue Unreviewed, rolling out r152701, r152703, r152739, r152754, and r152756. http://trac.webkit.org/changeset/152701 http://trac.webkit.org/changeset/152703 http://trac.webkit.org/changeset/152739 http://trac.webkit.org/changeset/152754 http://trac.webkit.org/changeset/152756 https://bugs.webkit.org/show_bug.cgi?id=118821 this was a buggy fix and we're going to try something different (Requested by thorton on #webkit). * WebCoreSupport/WebChromeClient.h: * WebCoreSupport/WebChromeClient.mm: (WebChromeClient::shouldUnavailablePluginMessageBeButton): 2013-07-17 Kangil Han Use toHTMLMediaElement https://bugs.webkit.org/show_bug.cgi?id=118727 Reviewed by Ryosuke Niwa. To avoid direct use of static_cast, this patch uses toHTMLMediaElement for code cleanup. * WebView/WebView.mm: (-[WebView _enterFullscreenForNode:WebCore::]): 2013-07-16 Simon Fraser Protect against the LayerFlushController being deleted inside its flushLayers() callback https://bugs.webkit.org/show_bug.cgi?id=118741 Reviewed by Tim Horton. It's possible (especially on iOS) for the LayerFlushController to be destroyed inside its callback, via -[WebView _close]. Protect against this by making it refcounted, and holding a ref across the callback. Due to the odd relationship in which LayerFlushController owns its LayerFlushScheduler by value, we achieve this by allowing subclasses of LayerFlushScheduler to override runLoopObserverCallback(). WebViewLayerFlushScheduler uses the override to protect the owner of the LayerFlushScheduler, which is the LayerFlushController, when the callback is firing. * WebView/WebView.mm: (-[WebView _close]): * WebView/WebViewData.h: (WebViewLayerFlushScheduler::~WebViewLayerFlushScheduler): (LayerFlushController::create): * WebView/WebViewData.mm: (LayerFlushController::invalidate): (WebViewLayerFlushScheduler::WebViewLayerFlushScheduler): 2013-07-16 Jessie Berlin Fix some NSDictionary misuse pointed out by the clang static analyzer https://bugs.webkit.org/show_bug.cgi?id=118736 Reviewed by Anders Carlsson. * Plugins/Hosted/NetscapePluginHostManager.mm: (WebKit::NetscapePluginHostManager::spawnPluginHost): Explicitly cast the CFStringRef to an NSString *. * WebCoreSupport/WebEditorClient.mm: (WebEditorClient::documentFragmentFromAttributedString): Do not put a key with a nil value pair into the NSDictionary. 2013-07-15 Tim Horton Update blocked/missing plug-in UI https://bugs.webkit.org/show_bug.cgi?id=118347 Reviewed by Sam Weinig. Patch by Antoine Quint, Anders Carlsson, Sam Weinig, and myself. * WebCoreSupport/WebChromeClient.h: * WebCoreSupport/WebChromeClient.mm: (WebChromeClient::shouldUnavailablePluginMessageIncludeButton): Rename from shouldUnavailablePluginMessageBeButton to shouldUnavailablePluginMessageIncludeButton for accuracy. 2013-07-14 Jon Lee [WK2] Calling Notification.requestPermission() without a callback crashes https://bugs.webkit.org/show_bug.cgi?id=118654 Reviewed by Alexey Proskuryakov. * WebCoreSupport/WebNotificationClient.mm: (-[WebNotificationPolicyListener initWithCallback:]): The callback can be NULL, so remove the ASSERT. (-[WebNotificationPolicyListener allow]): Check for the callback before asking it to handle the event. (-[WebNotificationPolicyListener deny]): Ditto. 2013-07-12 Jessie Berlin Remove some dead stores pointed out by the clang static analyzer. https://bugs.webkit.org/show_bug.cgi?id=118608 Reviewed by Anders Carlsson. * Plugins/Hosted/NetscapePluginHostManager.mm: (WebKit::NetscapePluginHostManager::instantiatePlugin): kr is never read after this point, so there is no reason to assign to it. * Plugins/WebBasePluginPackage.mm: (-[WebBasePluginPackage getPluginInfoFromPLists]): The extensions array is only used in the while loop. Move the declaration to the first place it is used in the while loop. Since it is always reassigned at that location, and since it is never read after the subsequent for loop, the assignment to an array containing the empty string is never used. Remove it. Similarly, the value of the description is always overwritten before used to assign to mimeClassInfo.desc or to pluginInfo.desc, so the code to assign it to the empty string is never used. Remove it. * WebView/WebTextCompletionController.mm: (-[WebTextCompletionController _placePopupWindow:]): maxWidth is never read (and never was since it was added in r7311) after it is used on the line above to set windowFrame.size.width. 2013-07-11 Dan Bernstein [mac] No API for getting the page visibility state of a WebView https://bugs.webkit.org/show_bug.cgi?id=118578 Reviewed by Simon Fraser. * WebView/WebView.mm: (kit): Added. Converts from WebCore::PageVisibilityState to WebPageVisibilityState. (-[WebView _visibilityState]): Added. * WebView/WebViewPrivate.h: Declared -_visibilityState. 2013-07-11 Timothy Hatcher Revert r152267 and soft link WebInspectorUI.framework again. https://bugs.webkit.org/show_bug.cgi?id=118544 Reviewed by David Kilzer. * Configurations/WebKit.xcconfig: * WebCoreSupport/WebInspectorClient.mm: (useWebKitWebInspector): 2013-07-10 Jessie Berlin Remove some dead code from WebNSURLExtras _web_hostString https://bugs.webkit.org/show_bug.cgi?id=118519 Reviewed by Anders Carlsson. * Misc/WebNSURLExtras.mm: (-[NSURL _web_hostString]): NSString initWithData:encoding: does not throw an exception when passing nil for the data, so just delete the code that wasn't being run. 2013-07-09 Jeremy Noble Reviewed by Simon Fraser. Remember the scroll position and restore after exiting full-screen mode. https://bugs.webkit.org/show_bug.cgi?id=61956 Call into the main FrameView to save the scroll position before swapping the WebView into the full-screen window, and restore the scroll position after swapping the WebView back into the browser window. * WebView/WebFullScreenController.h: * WebView/WebFullScreenController.mm: (-[WebFullScreenController windowDidEnterFullscreen:]): Save the scroll position. (-[WebFullScreenController exitFullscreen]): Restore the scroll position. 2013-07-04 Yongjun Zhang Add a method to get unreachable URL from WebFrame. https://bugs.webkit.org/show_bug.cgi?id=118399 Normally we could use [[WebFrame dataSource] unreachableURL] to get the failed URL. However, if the frame has not loaded (FrameLoader::frameHasLoaded() is false), we will get a nil dataSource and we won't be able to get unreachableURL. We can add a method to always return the unreachableURL regardless if the frame has loaded or not. Reviewed by Dan Bernstein. * WebView/WebFrame.mm: (-[WebFrame _unreachableURL]): * WebView/WebFramePrivate.h: 2013-07-03 Zalan Bujtas H&R Block 2010 Help window can not be reopened. https://bugs.webkit.org/show_bug.cgi?id=118342 Reviewed by Antti Koivisto. http://trac.webkit.org/changeset/118916 changed the window.focus() behaviour so that only the opener can (re)focus() a particular window. H&R Block app relies on the relaxed window.focus() rules. * WebView/WebView.mm: (shouldRestrictWindowFocus): (-[WebView _preferencesChanged:]): 2013-07-01 Timothy Hatcher Link to WebInspectorUI.framework at build time instead of soft linking. https://bugs.webkit.org/show_bug.cgi?id=118261 Reviewed by Joseph Pecoraro. * Configurations/WebKit.xcconfig: * WebCoreSupport/WebInspectorClient.mm: (useWebKitWebInspector): 2013-07-01 Jochen Eisinger Remove support for consumable user gestures https://bugs.webkit.org/show_bug.cgi?id=118247 Reviewed by Geoffrey Garen. * Plugins/Hosted/NetscapePluginInstanceProxy.mm: (WebKit::NetscapePluginInstanceProxy::evaluate): * Plugins/WebNetscapePluginView.mm: (-[WebNetscapePluginView sendEvent:isDrawRect:]): 2013-06-27 Jer Noble Audio in apps which embed WebViews is corrupted. https://bugs.webkit.org/show_bug.cgi?id=118163 Reviewed by Maciej Stachowiak. Expose the WebCore lowPowerVideoAudioBufferSizeEnabled setting to WebKit clients. * WebView/WebPreferenceKeysPrivate.h: * WebView/WebPreferences.mm: (+[WebPreferences initialize]): (-[WebPreferences lowPowerVideoAudioBufferSizeEnabled]): (-[WebPreferences setLowPowerVideoAudioBufferSizeEnabled:]): * WebView/WebPreferencesPrivate.h: * WebView/WebView.mm: (-[WebView _preferencesChanged:]): 2013-07-01 Kangil Han Adopt toHTMLTextAreaElement for code cleanup https://bugs.webkit.org/show_bug.cgi?id=118226 Reviewed by Andreas Kling. To enhance readability, this patch adopts toHTMLTextAreaElement. This also helps out to reduce duplicated use of static_cast. * WebCoreSupport/WebEditorClient.mm: (WebEditorClient::textDidChangeInTextArea): 2013-06-27 Kangil Han Adopt is/toHTMLInputElement for code cleanup https://bugs.webkit.org/show_bug.cgi?id=118130 Reviewed by Antti Koivisto. To enhance readability, this patch adopts is/toHTMLInputElement. This also helps out to reduce duplicated use of static_cast. * DOM/WebDOMOperations.mm: (-[DOMHTMLInputElement _setAutofilled:]): * WebCoreSupport/WebChromeClient.mm: (WebChromeClient::focusedNodeChanged): * WebCoreSupport/WebEditorClient.mm: (WebEditorClient::textFieldDidBeginEditing): (WebEditorClient::textFieldDidEndEditing): (WebEditorClient::textDidChangeInTextField): (WebEditorClient::doTextFieldCommandFromEvent): (WebEditorClient::textWillBeDeletedInTextField): * WebView/WebHTMLRepresentation.mm: (inputElementFromDOMElement): 2013-06-26 Kangil Han Adopt is/toHTMLAudioElement for code cleanup https://bugs.webkit.org/show_bug.cgi?id=117985 Reviewed by Jer Noble. To enhance readibility, this patch adopts is/toHTMLAudioElement. This also helps out to reduce duplicated use of static_cast. * Plugins/WebPluginController.mm: 2013-06-24 Simon Fraser Move displayID stuff from Widget to Chrome https://bugs.webkit.org/show_bug.cgi?id=117944 Reviewed by Anders Carlsson. In r151877 I polluted Widget with displayID-related stuff. This would be better on HostWindow, so move it there. This is a net code reduction, and eliminates PlatformScreenMac.h, and the NSScreen category. * WebView/WebView.mm: (-[WebView doWindowDidChangeScreen]): Go via chrome(). 2013-06-21 Christophe Dumez REGRESSION (r150663): Using webkitAudioContext in Inspector makes it undefined everywhere https://bugs.webkit.org/show_bug.cgi?id=117825 Reviewed by Kentaro Hara. Use Settings to enable Web Audio instead of RuntimeEnabledFeatures. * WebView/WebView.mm: (-[WebView _preferencesChanged:]): 2013-06-20 Simon Fraser FrameView needs to initialize paintsEntireContents on creation https://bugs.webkit.org/show_bug.cgi?id=117844 Reviewed by Anders Carlsson. In WebKit1, if the WebView is layer-backed, WebHTMLView gets a layer. In this mode, FrameView::paintsEntireContents() is true. However, we would only call setPaintsEntireContents(true) on the FrameView when the view's layer-backed status changes. FrameView also needs to fetch this state when it is initialized, because we may be creating a new FrameView for an already layer-backed WebHTMLView. * WebCoreSupport/WebChromeClient.h: * WebCoreSupport/WebChromeClient.mm: (WebChromeClient::shouldPaintEntireContents): 2013-06-19 Benjamin Poulain Use the PlatformEvent timestamp when creating a DOM Event https://bugs.webkit.org/show_bug.cgi?id=117179 Reviewed by Darin Adler. * WebView/WebPDFView.mm: (-[WebPDFView PDFViewWillClickOnLink:withURL:]): 2013-06-18 Roger Fong Unreviewed. Build fix for Mac. * WebCoreSupport/WebFrameNetworkingContext.h: (WebFrameNetworkingContext::create): (WebFrameNetworkingContext::WebFrameNetworkingContext): 2013-06-18 Roger Fong Re-implement WebFrameNetworkingContext. . Reviewed by Alexey Proskuryakov. * WebCoreSupport/WebFrameNetworkingContext.h: Added. (WebFrameNetworkingContext::create): (WebFrameNetworkingContext::WebFrameNetworkingContext): (WebFrameNetworkingContext::userAgent): * WebCoreSupport/WebFrameNetworkingContext.mm: Added. (WebFrameNetworkingContext::ensurePrivateBrowsingSession): (WebFrameNetworkingContext::destroyPrivateBrowsingSession): (WebFrameNetworkingContext::needsSiteSpecificQuirks): (WebFrameNetworkingContext::localFileContentSniffingEnabled): (WebFrameNetworkingContext::scheduledRunLoopPairs): (WebFrameNetworkingContext::sourceApplicationAuditData): (WebFrameNetworkingContext::blockedError): (WebFrameNetworkingContext::storageSession): 2013-06-18 Alexey Proskuryakov Remove files with an incorrect license. Rubber-stamped by Maciej Stachowiak. This will break the build, stay tuned for a fix coming soon. * WebCoreSupport/WebFrameNetworkingContext.h: Removed. * WebCoreSupport/WebFrameNetworkingContext.mm: Removed. 2013-06-17 Michael Brüning [Qt] Remove Qt specific QTKIT flagged code. https://bugs.webkit.org/show_bug.cgi?id=117635 Reviewed by Simon Hausmann. Due to disabling QTKIT for Qt in r151546, the code the flags that are not taken into account anymore and the code that has been rendered unreachable by this are removed. * WebView/WebView.mm: (-[WebView _preferencesChanged:]): 2013-06-17 Grzegorz Czajkowski Unreviewed, rolling out r151632. http://trac.webkit.org/changeset/151632 https://bugs.webkit.org/show_bug.cgi?id=117585 Debug build error ASSERT(WTF_USE_GRAMMAR_CHECKING) for non MAC platforms * WebCoreSupport/WebContextMenuClient.mm: (fixMenusReceivedFromOldClients): 2013-06-14 Grzegorz Czajkowski Context menu grammar checking items are available when GRAMMAR_CHECKING macro is off https://bugs.webkit.org/show_bug.cgi?id=117585 Reviewed by Anders Carlsson. Add GRAMMAR_CHECKING guard to the context menu grammar items. * WebCoreSupport/WebContextMenuClient.mm: (fixMenusReceivedFromOldClients): 2013-06-13 Jer Noble Add support for AVFoundation-backed HTMLMediaElements in the WebVideoFullScreenController. https://bugs.webkit.org/show_bug.cgi?id=117597 Reviewed by Eric Carlson. Allow AVFoundation to be enabled even when the FullScreen API is disabled. * WebView/WebView.mm: (-[WebView _preferencesChanged:]): 2013-06-12 Anders Carlsson Remove the notion of inactive plug-ins https://bugs.webkit.org/show_bug.cgi?id=117570 Reviewed by Tim Horton. Remove code that deals with inactive plug-ins. * WebCoreSupport/WebChromeClient.mm: (WebChromeClient::shouldUnavailablePluginMessageBeButton): (WebChromeClient::unavailablePluginButtonClicked): * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::createPlugin): 2013-06-12 Zan Dobersek Remove memoryInfoEnabled, quantizedMemoryInfoEnabled settings https://bugs.webkit.org/show_bug.cgi?id=117512 Reviewed by Darin Adler. * WebKit.order: Remove the memoryInfoEnabled entry. * WebView/WebPreferenceKeysPrivate.h: Remove WebKitMemoryInfoEnabledPreferenceKey. * WebView/WebPreferences.mm: Remove memoryInfoEnabled, setMemoryInfoEnabled methods. (+[WebPreferences initialize]): Don't set the default value for the WebKitMemoryInfoEnabledPreferenceKey, the preference is being removed. * WebView/WebPreferencesPrivate.h: Remove memoryInfoEnabled, setMemoryInfoEnabled method declarations. * WebView/WebView.mm: (-[WebView _preferencesChanged:]): Remove the call to Settings::setMemoryInfoEnabled, the setting is being removed. 2013-06-06 Timothy Hatcher Update the framework bundle identifier for the Web Inspector. Reviewed by Mark Rowe. * WebCoreSupport/WebInspectorClient.mm: (useWebKitWebInspector): (WebInspectorFrontendClient::localizedStringsURL): (-[WebInspectorWindowController inspectorPagePath]): 2013-06-05 Bear Travis [CSS Exclusions][CSS Shapes] Split CSS Exclusions & Shapes compile & runtime flags https://bugs.webkit.org/show_bug.cgi?id=117172 Reviewed by Alexandru Chiculita. Adding the CSS_SHAPES compile flag. * Configurations/FeatureDefines.xcconfig: 2013-06-01 Andreas Kling Remove unnused WebDOMNodeOperationsInternal category. Reviewed by Ryosuke Niwa. _subresourceURLs had no clients. * DOM/WebDOMOperations.mm: 2013-06-01 Andreas Kling Move Node::hasID() and hasClass() to Element. Reviewed by Ryosuke Niwa. * WebView/WebRenderLayer.mm: (+[WebRenderLayer nameForLayer:]): 2013-05-31 Stephanie Lewis Update low memory handler to use new memory pressure notifications on new OS versions. Reviewed by Mark Rowe. * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): 2013-05-29 Jeffrey Pfau [Mac] Enable cache partitioning and the public suffix list on 10.8 Rubber-stamped by David Kilzer. * Configurations/FeatureDefines.xcconfig: 2013-05-29 Joseph Pecoraro Web Inspector: get rid of obsolete InspectorFrontendHost.hiddenPanels() https://bugs.webkit.org/show_bug.cgi?id=60152 Reviewed by Andreas Kling. * WebCoreSupport/WebInspectorClient.mm: 2013-05-28 Joseph Pecoraro Drag to move DOM nodes does not work https://bugs.webkit.org/show_bug.cgi?id=116865 Do not block drag events on the WebKit 1 Web Inspector WebView. Reviewed by Timothy Hatcher. * WebCoreSupport/WebInspectorClient.mm: 2013-05-28 Andreas Kling Document::setFocusedNode() should be setFocusedElement(). Reviewed by Antti Koivisto. * WebView/WebHTMLView.mm: (-[WebHTMLView clearFocus]): (-[WebHTMLView becomeFirstResponder]): 2013-05-25 Andreas Kling Remove Document::getFocusableNodes(). Reviewed by Joseph Pecoraro. Remove the private _focusableNodes API on DOMDocument, it has no clients. * DOM/WebDOMOperations.mm: * DOM/WebDOMOperationsPrivate.h: 2013-05-25 Simon Fraser Unprefix Page Visibility API https://bugs.webkit.org/show_bug.cgi?id=102340 Reviewed by Tim Horton. Renaming of the "preview" state to "unloaded". * WebView/WebView.mm: * WebView/WebViewPrivate.h: 2013-05-25 Dan Bernstein -webView:didPerformClientRedirectFromURL:toURL:inFrame: should be given the redirecting URL as the “from” URL https://bugs.webkit.org/show_bug.cgi?id=116733 Reviewed by Adele Peterson. By the time the history controller calls updateGlobalHistoryRedirectLinks(), the document loader already reflects the destination URL. In order to be able to provide the immediate source URL to the delegate, we make WebFrame track a URL and provisional URL, updating them in response to FrameLoader callbacks in exactly the same way WebFrameProxy maintains its m_url and m_provisionalURL member variables. * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad): Update provisionalURL. (WebFrameLoaderClient::dispatchDidChangeLocationWithinPage): Update url. (WebFrameLoaderClient::dispatchDidPushStateWithinPage): Ditto. (WebFrameLoaderClient::dispatchDidReplaceStateWithinPage): Ditto. (WebFrameLoaderClient::dispatchDidPopStateWithinPage): Ditto. (WebFrameLoaderClient::dispatchDidStartProvisionalLoad): Update provisionalURL. (WebFrameLoaderClient::dispatchDidCommitLoad): Update URL and provisionalURL. (WebFrameLoaderClient::dispatchDidFailProvisionalLoad): Clear provisionalURL. (WebFrameLoaderClient::dispatchDidFailLoad): Added an assertion. (WebFrameLoaderClient::dispatchDidFinishLoad): Ditto. (WebFrameLoaderClient::updateGlobalHistoryRedirectLinks): Pass the last committed URL as the source, rather than clientRedirectSourceForHistory(). * WebView/WebFrameInternal.h: Added url and provisionalURL ivars to WebFramePrivate. 2013-05-24 Anders Carlsson Remove using namespace std from Mac WebKit1 https://bugs.webkit.org/show_bug.cgi?id=116747 Reviewed by Sam Weinig. Use explicit std:: qualifiers instead. * History/BinaryPropertyList.cpp: (IntegerArray::deletedValueSize): (BinaryPropertyListPlan::invalidObjectReference): (bytesNeeded): * History/WebHistory.mm: (-[WebHistoryPrivate orderedLastVisitedDays]): (WebHistoryWriter::WebHistoryWriter): * History/WebHistoryItem.mm: (-[WebHistoryItem initFromDictionaryRepresentation:]): * Plugins/Hosted/NetscapePluginHostManager.mm: (WebKit::NetscapePluginHostManager::instantiatePlugin): * Plugins/Hosted/NetscapePluginHostProxy.mm: * Plugins/Hosted/NetscapePluginInstanceProxy.mm: (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::idForObject): (WebKit::NetscapePluginInstanceProxy::wheelEvent): (WebKit::NetscapePluginInstanceProxy::print): (WebKit::NetscapePluginInstanceProxy::snapshot): (WebKit::NetscapePluginInstanceProxy::loadURL): (WebKit::NetscapePluginInstanceProxy::createBindingsInstance): * Plugins/Hosted/ProxyInstance.mm: (WebKit::ProxyInstance::invoke): (WebKit::ProxyInstance::supportsInvokeDefaultMethod): (WebKit::ProxyInstance::supportsConstruct): (WebKit::ProxyInstance::getPropertyNames): (WebKit::ProxyInstance::methodNamed): (WebKit::ProxyInstance::fieldNamed): (WebKit::ProxyInstance::fieldValue): (WebKit::ProxyInstance::setFieldValue): * Plugins/WebBasePluginPackage.mm: (-[WebBasePluginPackage supportsExtension:]): (-[WebBasePluginPackage MIMETypeForExtension:]): * Plugins/WebNetscapePluginStream.mm: (WebNetscapePluginStream::deliverData): * Plugins/WebNetscapePluginView.mm: (PluginTimer::start): (-[WebNetscapePluginView _postURL:target:len:buf:file:notifyData:sendNotification:allowHeaders:]): * WebCoreSupport/WebFrameLoaderClient.mm: * WebView/WebFrame.mm: * WebView/WebHTMLView.mm: (-[WebHTMLView _adjustedBottomOfPageWithTop:bottom:limit:]): * WebView/WebTextCompletionController.mm: (-[WebTextCompletionController _placePopupWindow:]): 2013-05-24 Anders Carlsson Move history property list writer to WebKit https://bugs.webkit.org/show_bug.cgi?id=116746 Reviewed by Tim Horton. Move WebCore history files to WebKit since they're only used by WebKit now. * History/BinaryPropertyList.cpp: Renamed from Source/WebCore/platform/cf/BinaryPropertyList.cpp. * History/BinaryPropertyList.h: Renamed from Source/WebCore/platform/cf/BinaryPropertyList.h. * History/HistoryPropertyList.cpp: Renamed from Source/WebCore/history/cf/HistoryPropertyList.cpp. * History/HistoryPropertyList.h: Renamed from Source/WebCore/history/cf/HistoryPropertyList.h. * History/WebHistory.mm: 2013-05-24 Christophe Dumez Remove custom code for webkitAudioContext global constructor getter https://bugs.webkit.org/show_bug.cgi?id=116530 Reviewed by Geoffrey Garen. Use RuntimeEnabledFeatures instead of Settings to toggle Web Audio support. * WebView/WebView.mm: (-[WebView _preferencesChanged:]): 2013-05-23 Anders Carlsson Crash in convertMainResourceLoadToDownload when downloading file by option-return https://bugs.webkit.org/show_bug.cgi?id=116451 Reviewed by Andreas Kling. If the main resource loader is null, create a new download instead since there's no existing loader to convert. * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::convertMainResourceLoadToDownload): 2013-05-22 Simon Fraser Fix issues with focus rings on search fields https://bugs.webkit.org/show_bug.cgi?id=116591 Reviewed by Darin Adler. In WebKit1, focus rings didn't render correctly on some OSes until some other control drew a focus ring, which changes internal AppKit state on the focused view. Fix by overriding an internal AppKit method to always disable AppKit's "automatic" focus ring drawing. * WebView/WebHTMLView.mm: (-[WebHTMLView _automaticFocusRingDisabled]): 2013-05-20 David Kilzer Synchronize FeatureDefines.xcconfig * Configurations/FeatureDefines.xcconfig: Add a newline to the end of the file. 2013-05-19 Anders Carlsson Remove link prerendering code https://bugs.webkit.org/show_bug.cgi?id=116415 Reviewed by Darin Adler. This code was only used by Chromium and is dead now. * Configurations/FeatureDefines.xcconfig: 2013-05-19 Anders Carlsson Remove ChromeClient::webView() https://bugs.webkit.org/show_bug.cgi?id=116054 Reviewed by Darin Adler. This blatantly horrible layer violation was only used to know if a ChromeClient is an empty client or not. We already have a (slightly less horrible) way to do that. * WebCoreSupport/WebChromeClient.h: (WebChromeClient): 2013-05-17 Anders Carlsson Accessing null function pointers is bad. * WebCoreSupport/WebFrameLoaderClient.mm: 2013-05-17 Anders Carlsson Make kit(Frame*) more robust https://bugs.webkit.org/show_bug.cgi?id=116324 Reviewed by Darin Adler. Check that the frame loader's client isn't the EmptyFrameLoaderClient (or a subclass thereof) before casting to WebFrameLoaderClient. * WebView/WebFrame.mm: (kit): 2013-05-17 Anders Carlsson Move the policy function to WebFramePolicyListener https://bugs.webkit.org/show_bug.cgi?id=116323 Reviewed by Darin Adler. There's no need for the WebFrameLoaaderClient to hold on to the policy function, so move it to WebFramePolicyListener. This gets rid of another WebFrameLoaderClient cast. * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::setUpPolicyListener): Pass the policy function when creating the WebFramePolicyListener object. 2013-05-17 Anders Carlsson WebFramePolicyListener should keep its Frame in a RefPtr https://bugs.webkit.org/show_bug.cgi?id=116322 Reviewed by Darin Adler. * WebCoreSupport/WebFrameLoaderClient.mm: (-[WebFramePolicyListener initWithWebCoreFrame:]): No need to ref the frame, the RefPtr does that for us. (-[WebFramePolicyListener invalidate]): Just set the frame to null. (-[WebFramePolicyListener dealloc]): Remove call to deref, that's done automatically now. (-[WebFramePolicyListener finalize]): Remove this method. (We could have kept it just for the assertion but I didn't think that was necessary). (-[WebFramePolicyListener receivedPolicyDecision:): Use release() to transfer ownership. 2013-05-17 Anders Carlsson Reduce number of WebFrameLoaderClient static casts in WebKit https://bugs.webkit.org/show_bug.cgi?id=116320 Reviewed by Antti Koivisto. We already have a function to return a WebFrame from a WebCore::Frame, use it. * DOM/WebDOMOperations.mm: (WebFrameFilter::shouldIncludeSubframe): * WebView/WebDataSource.mm: (-[WebDataSource webFrame]): 2013-05-16 Commit Queue Unreviewed, rolling out r150034. http://trac.webkit.org/changeset/150034 https://bugs.webkit.org/show_bug.cgi?id=116257 This work around doesn't work due to another bug NSUndoManager has (Requested by rniwa on #webkit). * WebCoreSupport/WebEditorClient.mm: (WebEditorClient::registerUndoOrRedoStep): 2013-05-16 Tim Horton PDFPlugins don't load when plugins are disabled, but they should https://bugs.webkit.org/show_bug.cgi?id=75790 Reviewed by Anders Carlsson. * Plugins/WebBasePluginPackage.mm: (-[WebBasePluginPackage getPluginInfoFromPLists]): * Plugins/WebNetscapePluginPackage.mm: (-[WebNetscapePluginPackage getPluginInfoFromResources]): Nothing loaded via WebBasePluginPackage or WebNetscapePluginPackage is an application plugin. * WebView/WebFrame.mm: (-[WebFrame _canProvideDocumentSource]): Previously, this caller depended on pluginData() returning null if plug-ins were disabled. Since that is no longer the case, we have to check if we can use plug-ins, and otherwise ignore non-application-plug-ins. 2013-05-16 Andreas Kling Page::chrome() should return a reference. Reviewed by Anders Carlsson. 2013-05-16 Dan Bernstein -webView:updateHistoryTitle:forURL: does not pass a frame to the delegate https://bugs.webkit.org/show_bug.cgi?id=116243 Reviewed by Anders Carlsson. Added a WebFrame parameter to the delegate method. * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::setTitle): Pass the frame to the delegate. Maintain compatibility with clients that implement the old delegate method that doesn’t take a frame. * WebView/WebDelegateImplementationCaching.h: (WebHistoryDelegateImplementationCache): Added a field to cache the implementation of the old delegate method. * WebView/WebHistoryDelegate.h: Changed the signature of the delegate method. * WebView/WebView.mm: (-[WebView _cacheHistoryDelegateImplementations]): Cache the implementation of the new delegate method, but also check for the old one. 2013-05-16 Simon Fraser Re-land r150168 with some OS version guards. * WebView/WebFrameView.mm: (-[WebFrameView drawRect:]): (-[WebFrameView wantsUpdateLayer]): (-[WebFrameView updateLayer]): 2013-05-16 Commit Queue Unreviewed, rolling out r150168. http://trac.webkit.org/changeset/150168 https://bugs.webkit.org/show_bug.cgi?id=116214 broke the world on Mountain Lion (Requested by thorton on #webkit). * WebView/WebFrameView.mm: (-[WebFrameView drawRect:]): 2013-05-15 Simon Fraser Avoid backing store for the WebFrameView's layer when the WebView is layer-backed https://bugs.webkit.org/show_bug.cgi?id=116172 Reviewed by Tim Horton. When the WebView is layer-backed, AppKit will create a layer with backing store for the WebFrameView because it implements drawRect:. However, this method only paints when there is no documentView, so this layer’s backing store is wasteful. We can avoid allocation of this backing store by implementing -wantsUpdateLayer and -updateLayer, and setting the view’s backgroundColor. * WebView/WebFrameView.mm: (-[WebFrameView wantsUpdateLayer]): (-[WebFrameView updateLayer]): 2013-05-13 Anders Carlsson Frame::editor() should return a reference https://bugs.webkit.org/show_bug.cgi?id=116037 Reviewed by Darin Adler. * WebView/WebFrame.mm: (-[WebFrame _selectedString]): (-[WebFrame _firstRectForDOMRange:]): (-[WebFrame _markDOMRange]): (-[WebFrame _insertParagraphSeparatorInQuotedContent]): (-[WebFrame _setTypingStyle:withUndoAction:]): (-[WebFrame _replaceSelectionWithFragment:selectReplacement:smartReplace:matchStyle:]): * WebView/WebHTMLRepresentation.mm: (-[WebHTMLRepresentation finishedLoadingWithDataSource:]): * WebView/WebHTMLView.mm: (-[WebHTMLView _pasteWithPasteboard:allowPlainText:]): (-[WebHTMLView _shouldDeleteRange:]): (-[WebHTMLView _canEdit]): (-[WebHTMLView _canEditRichly]): (-[WebHTMLView _insertOrderedList]): (-[WebHTMLView _insertUnorderedList]): (-[WebHTMLView _canIncreaseSelectionListLevel]): (-[WebHTMLView _canDecreaseSelectionListLevel]): (-[WebHTMLView _increaseSelectionListLevel]): (-[WebHTMLView _increaseSelectionListLevelOrdered]): (-[WebHTMLView _increaseSelectionListLevelUnordered]): (-[WebHTMLView _decreaseSelectionListLevel]): (-[WebHTMLView Editor::coreCommandBySelector:]): (-[WebHTMLView Editor::coreCommandByName:]): (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]): (-[WebHTMLView becomeFirstResponder]): (-[WebHTMLView _selectionStartFontAttributesAsRTF]): (-[WebHTMLView _applyStyleToSelection:withUndoAction:]): (-[WebHTMLView _changeCSSColorUsingSelector:inRange:]): (-[WebHTMLView checkSpelling:]): (-[WebHTMLView showGuessPanel:]): (-[WebHTMLView toggleBaseWritingDirection:]): (-[WebHTMLView changeBaseWritingDirection:]): (-[WebHTMLView _changeBaseWritingDirectionTo:]): (-[WebHTMLView _updateFontPanel]): (-[WebHTMLView markedRange]): (-[WebHTMLView hasMarkedText]): (-[WebHTMLView unmarkText]): (-[WebHTMLView setMarkedText:selectedRange:]): (-[WebHTMLView doCommandBySelector:]): (-[WebHTMLView insertText:]): (-[WebHTMLView _updateSelectionForInputManager]): (-[WebHTMLView countMatchesForText:inDOMRange:options:limit:markMatches:]): (-[WebHTMLView setMarkedTextMatchesAreHighlighted:]): (-[WebHTMLView markedTextMatchesAreHighlighted]): (-[WebHTMLView _findString:options:]): * WebView/WebView.mm: (-[WebView _executeCoreCommandByName:value:]): (-[WebView editableDOMRangeForPoint:]): (-[WebView setEditable:]): (-[WebView deleteSelection]): (-[WebView applyStyle:]): (-[WebView typingAttributes]): (-[WebView _simplifyMarkup:endNode:]): (-[WebView handleAcceptedAlternativeText:]): 2013-05-15 Darin Adler [Mac] Remove the ClipboardMac class and header file https://bugs.webkit.org/show_bug.cgi?id=116165 Reviewed by Anders Carlsson. * WebCoreSupport/WebDragClient.mm: Import Clipboard.h instead of ClipboardMac.h. 2013-05-15 Darin Adler [Mac] Thin out the ClipboardMac class and header file to prepare for deleting them https://bugs.webkit.org/show_bug.cgi?id=116159 Reviewed by Andreas Kling. * WebCoreSupport/WebDragClient.mm: (WebDragClient::willPerformDragSourceAction): Changed to get the pasteboard name without going through the ClipboardMac class. (WebDragClient::startDrag): Ditto. 2013-05-14 Beth Dakin Printing in 1Password app is broken with screen fonts disabled https://bugs.webkit.org/show_bug.cgi?id=116133 -and corresponding- Reviewed by Anders Carlsson. Return YES from [WebPreferences screenFontSubstitutionEnabled] for versions of the 1Password app that were linked on or before MountainLion. * WebView/WebPreferences.mm: (needsScreenFontsEnabledQuirk): (-[WebPreferences screenFontSubstitutionEnabled]): 2013-05-13 Dan Bernstein Make -[WebNavigationData url] the destination of the navigation https://bugs.webkit.org/show_bug.cgi?id=114904 Reviewed by Dave Kilzer. * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::updateGlobalHistory): Initialize the WebNavigationData with the current URL, not the original request URL. 2013-05-13 Anders Carlsson Remove ChromeClient::willPopupMenu https://bugs.webkit.org/show_bug.cgi?id=116063 Reviewed by Andreas Kling. ChromeClient::willPopupMenu is only called in one place from WebKit, so just move the function to the call site. * WebCoreSupport/PopupMenuMac.mm: (PopupMenuMac::show): * WebCoreSupport/WebChromeClient.h: * WebCoreSupport/WebChromeClient.mm: 2013-05-12 Timothy Hatcher Add support for updating the Web Inspector toolbar height. https://bugs.webkit.org/show_bug.cgi?id=115996 Reviewed by Joseph Pecoraro and Benjamin Poulain. * WebCoreSupport/WebInspectorClient.h: * WebCoreSupport/WebInspectorClient.mm: (WebInspectorFrontendClient::setToolbarHeight): 2013-05-13 Ryosuke Niwa Sometimes NSUndoManager can get into an inconsistent state https://bugs.webkit.org/show_bug.cgi?id=116050 Reviewed by Enrica Casucci. Always group undo items to work around a bug in NSUndoManager that manifests when we call removeAllActionsWithTarget. * WebCoreSupport/WebEditorClient.mm: (WebEditorClient::registerUndoOrRedoStep): 2013-05-13 Zalan Bujtas WebProcess consuming very high CPU on linkedin.com https://bugs.webkit.org/show_bug.cgi?id=115601 Reviewed by Andreas Kling. Disable WEB_TIMING_MINIMAL. Turn off window.performance and performance.now(). Some JS frameworks expect additional Web Timing APIs, when performance.now() is available. * Configurations/FeatureDefines.xcconfig: 2013-05-13 Darin Adler [Mac] Layer-backed WebViews draw their background color even when setDrawsBackground:NO was called https://bugs.webkit.org/show_bug.cgi?id=116014 Reviewed by Dan Bernstein. * WebView/WebFrame.mm: (-[WebFrame _updateBackgroundAndUpdatesWhileOffscreen]): Remove calls to setBackgroundColor: and setDrawsBackground: on the document view. These were added to support a hypothetical document view that wanted to draw its background like WebHTMLView does, but this was never communicated as a document view protocol, formal or informal, and it's unlikely that it was ever used. The bug was caused because there is an -[NSView setDrawsBackground:] method, probably an internal one, and we were calling it unintentionally on a WebHTMLView. 2013-05-12 Anders Carlsson Stop including UnusedParam.h https://bugs.webkit.org/show_bug.cgi?id=116003 Reviewed by Sam Weinig. UnusedParam.h is empty now so there's no need to include it anymore. * Plugins/WebNetscapePluginEventHandlerCocoa.mm: * WebView/WebDashboardRegion.mm: * WebView/WebFullScreenController.mm: 2013-05-12 Andreas Kling Unload event listeners should prevent Safari from insta-killing the web process on last tab close. Reviewed by Anders Carlsson. * WebCoreSupport/WebChromeClient.h: * WebCoreSupport/WebChromeClient.mm: (WebChromeClient::enableSuddenTermination): (WebChromeClient::disableSuddenTermination): 2013-05-10 Brian J. Burg Web Inspector: Implement WK2 version of WebInspectorFrontendClient::save https://bugs.webkit.org/show_bug.cgi?id=115564 Reviewed by Benjamin Poulain. Clean up save() and append() implementations. * WebCoreSupport/WebInspectorClient.h: * WebCoreSupport/WebInspectorClient.mm: (WebInspectorFrontendClient::save): (WebInspectorFrontendClient::append): 2013-05-10 Laszlo Gombos Remove Mac OS X Leopard (10.5) support https://bugs.webkit.org/show_bug.cgi?id=107964 Reviewed by Ryosuke Niwa. Removed the code for 10.5 and removed if-def for 10.6. * DefaultDelegates/WebDefaultContextMenuDelegate.mm: * Misc/WebKitErrors.m: (-[NSError _initWithPluginErrorCode:contentURL:pluginPageURL:pluginName:MIMEType:]): * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): * WebView/WebClipView.mm: (-[WebClipView _immediateScrollToPoint:]): * WebView/WebFrameView.mm: (-[WebFrameView initWithFrame:]): * WebView/WebView.mm: 2013-05-07 Mark Rowe WebKit and others fail to build headers due to build root dependency Reviewed by Sam Weinig. * Configurations/WebKit.xcconfig: Look for WebCore's headers within the SDK if we're building against one. 2013-05-07 Mikhail Pozdnyakov HashTraits >::PeekType should be raw pointer for better performance https://bugs.webkit.org/show_bug.cgi?id=115646 Reviewed by Darin Adler. * Plugins/Hosted/NetscapePluginHostProxy.mm: (WebKit::NetscapePluginHostProxy::pluginInstance): * Plugins/Hosted/NetscapePluginInstanceProxy.mm: (WebKit::NetscapePluginInstanceProxy::cancelStreamLoad): Updated accordingly to new HashMap<.., RefPtr>::get() semantics. 2013-05-04 Dean Jackson Animations and Transitions should not start when globally suspended https://bugs.webkit.org/show_bug.cgi?id=114915 Reviewed by Sam Weinig. The WebView private API cssAnimationsSuspended did not necessarily reflect the reality of the Frame's AnimationController value because it was caching rather than asking directly. While the WebCore part of this patch ensured loading the Document wouldn't resume all animations, it is still better to ask directly. * WebView/WebView.mm: (-[WebView cssAnimationsSuspended]): Call into AnimationController. (-[WebView setCSSAnimationsSuspended:]): Ditto. * WebView/WebViewData.h: Remove cssAnimationsSuspended boolean. * WebView/WebViewData.mm: Ditto. (-[WebViewPrivate init]): 2013-05-04 Sam Weinig Move PopupMenuMac and SearchPopupMenuMac to Source/WebKit/mac matching where they are in WebKit2. Reviewed by Anders Carlsson. * WebCoreSupport/PopupMenuMac.h: Copied from WebCore/platform/mac/PopupMenuMac.h. * WebCoreSupport/PopupMenuMac.mm: Copied from WebCore/platform/mac/PopupMenuMac.mm. * WebCoreSupport/SearchPopupMenuMac.h: Copied from WebCore/platform/mac/SearchPopupMenuMac.h. * WebCoreSupport/SearchPopupMenuMac.mm: Copied from WebCore/platform/mac/SearchPopupMenuMac.mm. * WebCoreSupport/WebChromeClient.mm: 2013-05-04 Anders Carlsson Get rid of -[NSMutableDictionary _webkit_setObject:forUncopiedKey:] https://bugs.webkit.org/show_bug.cgi?id=115592 Reviewed by Beth Dakin. Using CFDictionarySetValue to set a key without having to copy it is not supported. Use NSMapTable with strong pointers instead. * Misc/WebNSDictionaryExtras.h: * Misc/WebNSDictionaryExtras.m: * Panels/WebPanelAuthenticationHandler.h: (NSURLAuthenticationChallenge): * Panels/WebPanelAuthenticationHandler.m: (-[WebPanelAuthenticationHandler init]): (-[WebPanelAuthenticationHandler enqueueChallenge:forWindow:]): (-[WebPanelAuthenticationHandler tryNextChallengeForWindow:]): (-[WebPanelAuthenticationHandler startAuthentication:window:]): (-[WebPanelAuthenticationHandler cancelAuthentication:]): * Plugins/WebNetscapePluginView.h: * Plugins/WebNetscapePluginView.mm: (-[WebNetscapePluginView destroyPlugin]): (-[WebNetscapePluginView initWithFrame:pluginPackage:URL:baseURL:MIMEType:attributeKeys:attributeValues:loadManually:element:WebCore::]): (-[WebNetscapePluginView webFrame:didFinishLoadWithReason:]): (-[WebNetscapePluginView loadPluginRequest:]): 2011-05-01 Ryosuke Niwa [Mac] WebKit doesn't enable or disable autocorrections when system preferences are changed https://bugs.webkit.org/show_bug.cgi?id=115463 Reviewed by Darin Adler. Observe the default notification center for changes to autocorrection preferences. Note system preferences may also update WebAutomatic* defaults. * WebView/WebView.mm: (+[WebView initialize]): (+[WebView _shouldAutomaticTextReplacementBeEnabled]): (+[WebView _didChangeAutomaticTextReplacementEnabled:]): (+[WebView _shouldAutomaticSpellingCorrectionBeEnabled]): (+[WebView _didChangeAutomaticSpellingCorrectionEnabled:]): (+[WebView _shouldAutomaticQuoteSubstitutionBeEnabled]): (+[WebView _shouldAutomaticDashSubstitutionBeEnabled]): (+[WebView _didChangeAutomaticQuoteSubstitutionEnabled:]): (+[WebView _didChangeAutomaticDashSubstitutionEnabled:]): 2013-05-01 Benjamin Poulain Fix the function names of r149453 Unreviewed. I forgot to follow one of Darin's review comment. This patch fixes the function names to follow CF naming conventions. * WebView/WebHTMLRepresentation.mm: (newArrayWithStrings): (newArrayByConcatenatingArrays): (+[WebHTMLRepresentation supportedMIMETypes]): (+[WebHTMLRepresentation supportedNonImageMIMETypes]): (+[WebHTMLRepresentation supportedImageMIMETypes]): (+[WebHTMLRepresentation unsupportedTextMIMETypes]): 2013-05-01 Benjamin Poulain Simplify WebHTMLRepresentation supportedMIMETypes methods https://bugs.webkit.org/show_bug.cgi?id=115314 Reviewed by Darin Adler. The initialization was surprisingly complex because of DEFINE_STATIC_LOCAL. First, a new pointer was allocated on the heap with fast malloc (for RetainPtr). Then a new NSMutableArray was allocated but immediately put on the autorelease pool. Finally, that array was retained by the RetainPtr. This patch changes the code to only leak the NSMutableArray memory. There is no fastMalloc, nor any use of the autorelease pool. * WebView/WebHTMLRepresentation.mm: (createArrayWithStrings): (createArrayByConcatenatingArrays): (+[WebHTMLRepresentation supportedMIMETypes]): (+[WebHTMLRepresentation supportedNonImageMIMETypes]): (+[WebHTMLRepresentation supportedImageMIMETypes]): (+[WebHTMLRepresentation unsupportedTextMIMETypes]): 2013-04-30 Darin Adler [Mac] Remove adoptNS/retain pairs, since the two cancel each other out https://bugs.webkit.org/show_bug.cgi?id=115426 Reviewed by Anders Carlsson. * Plugins/WebNetscapePluginStream.mm: (WebNetscapePluginStream::deliverDataToFile): Remove adoptNS and release. 2013-04-30 Geoffrey Garen Objective-C JavaScriptCore API should publicly support bridging to C https://bugs.webkit.org/show_bug.cgi?id=115447 Reviewed by Mark Hahnenberg. * WebView/WebFrame.mm: (-[WebFrame _javaScriptContextForScriptWorld:]): * WebView/WebScriptWorld.mm: (+[WebScriptWorld scriptWorldForJavaScriptContext:]): 2013-04-30 Anders Carlsson More StorageTracker cleanup https://bugs.webkit.org/show_bug.cgi?id=115429 Reviewed by Andreas Kling. Call PageGroup::syncLocalStorage directly. * Storage/WebStorageManager.mm: (-[WebStorageManager syncLocalStorage]): 2013-04-30 Zalan Bujtas Animations fail to start on http://www.google.com/insidesearch/howsearchworks/thestory/ https://bugs.webkit.org/show_bug.cgi?id=111244 Reviewed by David Kilzer. Enable performance.now() as a minimal subset of Web Timing API. It returns DOMHighResTimeStamp, a monotonically increasing value representing the number of milliseconds from the start of the navigation of the current document. JS libraries use this API to check against the requestAnimationFrame() timestamp. * Configurations/FeatureDefines.xcconfig: 2013-04-29 Chris Fleizach WEB SPEECH: need to identify the default voice per language https://bugs.webkit.org/show_bug.cgi?id=115366 Reviewed by Tim Horton. * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): 2013-04-28 Dean Jackson [Mac] Disable canvas backing store scaling (HIGH_DPI_CANVAS) https://bugs.webkit.org/show_bug.cgi?id=115310 Reviewed by Simon Fraser. Remove ENABLE_HIGH_DPI_CANVAS_macosx. * Configurations/FeatureDefines.xcconfig: 2013-04-27 Darin Adler Move from constructor and member function adoptCF/NS to free function adoptCF/NS. https://bugs.webkit.org/show_bug.cgi?id=115307 Reviewed by Geoffrey Garen. This change was done by a global replace followed by compiling and inspecting for cases that needed to be tweaked by hand. * DefaultDelegates/WebDefaultContextMenuDelegate.mm: (-[WebDefaultUIDelegate menuItemWithTag:target:representedObject:]): * Misc/WebNSFileManagerExtras.mm: (-[NSFileManager _webkit_startupVolumeName]): * Plugins/Hosted/HostedNetscapePluginStream.mm: (WebKit::HostedNetscapePluginStream::HostedNetscapePluginStream): * Plugins/Hosted/NetscapePluginHostManager.mm: (WebKit::NetscapePluginHostManager::spawnPluginHost): (WebKit::NetscapePluginHostManager::instantiatePlugin): * Plugins/Hosted/NetscapePluginHostProxy.mm: (WebKit::NetscapePluginHostProxy::NetscapePluginHostProxy): (WebKit::NetscapePluginHostProxy::beginModal): (WKPCBooleanAndDataReply): * Plugins/Hosted/NetscapePluginInstanceProxy.mm: (WebKit::NetscapePluginInstanceProxy::print): (WebKit::NetscapePluginInstanceProxy::snapshot): (WebKit::NetscapePluginInstanceProxy::status): (WebKit::NetscapePluginInstanceProxy::loadURL): (WebKit::NetscapePluginInstanceProxy::evaluateJavaScript): (WebKit::NetscapePluginInstanceProxy::enumerate): (WebKit::NetscapePluginInstanceProxy::marshalValue): (WebKit::NetscapePluginInstanceProxy::marshalValues): (WebKit::NetscapePluginInstanceProxy::demarshalValue): (WebKit::NetscapePluginInstanceProxy::demarshalValues): * Plugins/Hosted/WebHostedNetscapePluginView.mm: (-[WebHostedNetscapePluginView setAttributeKeys:andValues:]): (-[WebHostedNetscapePluginView createPlugin]): * Plugins/WebBaseNetscapePluginView.mm: (-[WebBaseNetscapePluginView initWithFrame:pluginPackage:URL:baseURL:MIMEType:attributeKeys:attributeValues:loadManually:element:WebCore::]): (-[WebBaseNetscapePluginView cacheSnapshot]): (WebKit::getAuthenticationInfo): * Plugins/WebBasePluginPackage.mm: (-[WebBasePluginPackage initWithPath:]): * Plugins/WebNetscapePluginEventHandlerCarbon.mm: (WebNetscapePluginEventHandlerCarbon::startTimers): * Plugins/WebNetscapePluginEventHandlerCocoa.mm: (WebNetscapePluginEventHandlerCocoa::syntheticKeyDownWithCommandModifier): (WebNetscapePluginEventHandlerCocoa::handleTSMEvent): * Plugins/WebNetscapePluginPackage.mm: (-[WebNetscapePluginPackage _initWithPath:]): * Plugins/WebNetscapePluginStream.mm: (WebNetscapePluginStream::WebNetscapePluginStream): (WebNetscapePluginStream::deliverData): (WebNetscapePluginStream::deliverDataToFile): (WebNetscapePluginStream::didReceiveData): * Plugins/WebNetscapePluginView.mm: (-[WebNetscapePluginView createPlugin]): (-[WebNetscapePluginView initWithFrame:pluginPackage:URL:baseURL:MIMEType:attributeKeys:attributeValues:loadManually:element:WebCore::]): (-[WebNetscapePluginView evaluateJavaScriptPluginRequest:]): * Storage/WebDatabaseManagerClient.mm: (WebDatabaseManagerClient::dispatchDidModifyOrigin): (WebDatabaseManagerClient::dispatchDidModifyDatabase): * Storage/WebStorageTrackerClient.mm: (WebStorageTrackerClient::dispatchDidModifyOrigin): * WebCoreSupport/CorrectionPanel.mm: (CorrectionPanel::handleAcceptedReplacement): * WebCoreSupport/WebApplicationCache.mm: (+[WebApplicationCache originsWithCache]): * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::didRunInsecureContent): * WebCoreSupport/WebInspectorClient.mm: (WebInspectorClient::WebInspectorClient): (WebInspectorClient::openInspectorFrontend): * WebView/WebFullScreenController.mm: (-[WebFullScreenController enterFullScreen:]): * WebView/WebPDFDocumentExtras.mm: (allScriptsInPDFDocument): * WebView/WebPreferences.mm: (-[WebPreferences initWithIdentifier:]): (-[WebPreferences initWithCoder:]): * WebView/WebScriptDebugger.mm: (WebScriptDebugger::initGlobalCallFrame): (WebScriptDebugger::callEvent): * WebView/WebView.mm: (-[WebView previousValidKeyView]): Use adoptNS and adoptCF free functions. 2013-04-25 Roger Fong Disable sub-pixel layout on mac. https://bugs.webkit.org/show_bug.cgi?id=114999. Reviewed by Simon Fraser. * Configurations/FeatureDefines.xcconfig: 2013-04-26 Simon Fraser Layer-backed WebViews don't repaint content outside the visible area https://bugs.webkit.org/show_bug.cgi?id=115275 Reviewed by Beth Dakin. When a client of WebView makes the WebView be layer-backed, then AppKit propagaes the layer-backing down to the WebHTMLView (but no further). In this situation, we had a bug where content that was not in the visible content rect would not get repainted, because WebCore clips repaints to the visible rect. Fix by calling ScrollView::setPaintsEntireContents(bool) from -[WebHTMLView setLayer:], saying that we need to paint the entire contents if we have a layer. * WebView/WebHTMLView.mm: (-[WebHTMLView setLayer:]): 2013-04-25 Chris Fleizach WEB SPEECH: language support does not work as expected https://bugs.webkit.org/show_bug.cgi?id=115119 Reviewed by Alexey Proskuryakov. * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): 2013-04-25 Simon Fraser Build fix for smart compliers. Reviewed by Tim Horton. [NSDictionary dictionaryWithObjectsAndKeys:] returns an NSDictionary, not a NSMutableDictionary. * WebCoreSupport/WebEditorClient.mm: (WebEditorClient::updateSpellingUIWithGrammarString): 2013-04-25 Joseph Pecoraro Web Inspector: ConsoleMessage should include line and column number where possible https://bugs.webkit.org/show_bug.cgi?id=114929 Reviewed by Timothy Hatcher. * WebCoreSupport/WebChromeClient.h: * WebCoreSupport/WebChromeClient.mm: (WebChromeClient::addMessageToConsole): 2013-04-24 Jessie Berlin Assertion failure (crash in release) attempting to delete database storage in WK1 without creating a WebView first https://bugs.webkit.org/show_bug.cgi?id=115065 Reviewed by Brady Eidson. Make sure the WebPlatformStrategies is initialized before using the WebDatabaseManager. * Storage/WebDatabaseManager.mm: (-[WebDatabaseManager init]): Move the logic from WebKitInitializeDatabasesIfNecessary here, and add a call to WebPlatformStrategies::initializeIfNecessary. * Storage/WebDatabaseManagerInternal.h: Removed. * WebCoreSupport/WebPlatformStrategies.h: (WebPlatformStrategies): Change "initialize" to "initalizeIfNecessary". * WebCoreSupport/WebPlatformStrategies.mm: (WebPlatformStrategies::initializeIfNecessary): Only call setPlatformStrategies once. * WebView/WebView.mm: (-[WebView _commonInitializationWithFrameName:groupName:]): Updated for the name change from initialize to initializeIfNecessary. Instead of calling WebKitInitializeDatabasesIfNecessary, call [WebDatabaseManager sharedWebDatabaseManager]. (+[WebView _setLoadResourcesSerially:]): Updated for the name change from initialize to initializeIfNecessary. 2013-04-23 Antoine Quint Initial advance of text runs should be taken into account https://bugs.webkit.org/show_bug.cgi?id=114949 Reviewed by Darin Adler. Adding support for new method CTRunGetInitialAdvance in WebKitSystemInterface. * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): 2013-04-22 Benjamin Poulain Remove the memory instrumentation code https://bugs.webkit.org/show_bug.cgi?id=114931 Reviewed by Andreas Kling. * WebView/WebRenderLayer.mm: 2013-04-18 Andy Estes REGRESSION (r116645): Versions app's UI is munged in HiDPI due to background-size being reset to 'auto' when background short-hand is also specified https://bugs.webkit.org/show_bug.cgi?id=114833 Reviewed by David Kilzer. The Versions app specifies both a background-size and a background shorthand CSS property, and its UI is broken after r116645 which resets background-size to 'auto' if the background shorthand property is specified. This patch enables the useLegacyBackgroundSizeShorthandBehavior setting added in r147034 to restore the expected behavior if the embedder is Versions.app and it was linked against a version of WebKit that had the legacy behavior. * Misc/WebKitVersionChecks.h: * WebView/WebView.mm: (shouldUseLegacyBackgroundSizeShorthandBehavior): (-[WebView _commonInitializationWithFrameName:groupName:]): 2013-04-18 Sam Weinig Network Process crashing trying to read in IDNScriptWhiteList.txt https://bugs.webkit.org/show_bug.cgi?id=114827 Reviewed by Anders Carlsson. Move IDNScriptWhiteList.txt from WebKit to WebCore, so that the NetworkProcess does not have to link against WebKit. It was a layering violation for WebCore to be trying to access WebKit resources anyway. * Resources/IDNScriptWhiteList.txt: Removed. 2013-04-17 Geoffrey Garen Renamed JSGlobalData to VM https://bugs.webkit.org/show_bug.cgi?id=114777 Reviewed by Phil Pizlo. * 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/NetscapePluginHostProxy.mm: (identifierFromIdentifierRep): * Plugins/Hosted/NetscapePluginInstanceProxy.h: (LocalObjectMap): * Plugins/Hosted/NetscapePluginInstanceProxy.mm: (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::idForObject): (WebKit::NetscapePluginInstanceProxy::getWindowNPObject): (WebKit::NetscapePluginInstanceProxy::getPluginElementNPObject): (WebKit::NetscapePluginInstanceProxy::evaluate): (WebKit::NetscapePluginInstanceProxy::addValueToArray): * Plugins/Hosted/ProxyInstance.mm: (WebKit::ProxyRuntimeMethod::create): (WebKit::ProxyRuntimeMethod::createStructure): (WebKit::ProxyRuntimeMethod::finishCreation): (WebKit::ProxyInstance::getPropertyNames): * Plugins/Hosted/ProxyRuntimeObject.h: (WebKit::ProxyRuntimeObject::create): (WebKit::ProxyRuntimeObject::createStructure): * 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:]): * WebKit.order: * WebView/WebScriptDebugDelegate.mm: (-[WebScriptCallFrame scopeChain]): (-[WebScriptCallFrame evaluateWebScript:]): * WebView/WebScriptDebugger.mm: (WebScriptDebugger::WebScriptDebugger): 2013-04-16 Beth Dakin Re-name Page::layoutMilestones() to Page::requestedLayoutMilestones() https://bugs.webkit.org/show_bug.cgi?id=114713 Reviewed by Simon Fraser. * WebView/WebView.mm: (-[WebView _layoutMilestones]): 2013-04-15 Sam Weinig Remove more #includes from Frame.h https://bugs.webkit.org/show_bug.cgi?id=114642 Reviewed by Anders Carlsson. * WebView/WebFrame.mm: * WebView/WebHTMLRepresentation.mm: * WebView/WebView.mm: 2013-04-16 Alexey Proskuryakov Remove unused AlternativeTextClient::dismissDictationAlternativeUI https://bugs.webkit.org/show_bug.cgi?id=114598 Reviewed by Ryosuke Niwa. * WebCoreSupport/WebAlternativeTextClient.h: * WebCoreSupport/WebAlternativeTextClient.mm: * WebView/WebView.mm: * WebView/WebViewInternal.h: 2013-04-15 Ryosuke Niwa REGRESSION(r146025): WebKit applications can't apply underline or strike through https://bugs.webkit.org/show_bug.cgi?id=114662 Reviewed by Enrica Casucci. Use -webkit- prefixes to apply underline. There should be no further compatibility issues since -khtml- was used only internally to pass the information down to WebCore. Unfortunately, we can't test this code like any other font panel bug. In the long run, we need to add some abstraction layer around font panel to make this testable or else we'll keep regressing this feature. * WebView/WebHTMLView.mm: (-[WebHTMLView _styleFromFontAttributes:]): (-[WebHTMLView _styleForAttributeChange:]): 2013-04-15 Anders Carlsson plugins/get-url-beforeunload-destroys-plugin.html crashes in WebKit1 https://bugs.webkit.org/show_bug.cgi?id=114653 Reviewed by Sam Weinig. Protect the NetscapePluginInstanceProxy since it can otherwise go away. * Plugins/Hosted/NetscapePluginInstanceProxy.mm: (WebKit::NetscapePluginInstanceProxy::performRequest): 2013-04-14 Sam Weinig Move Mac specific snapshotting code into its own file https://bugs.webkit.org/show_bug.cgi?id=114597 Reviewed by Andreas Kling. * WebView/WebHTMLView.mm: (-[WebHTMLView _selectionDraggingImage]): (-[WebHTMLView selectionImageForcingBlackText:]): 2013-04-14 Andreas Kling Move CSSOM classes to using MutableStylePropertySet over StylePropertySet. Reviewed by Anders Carlsson. * WebCoreSupport/WebEditorClient.mm: (WebEditorClient::shouldApplyStyle): * WebView/WebFrame.mm: (-[WebFrame _typingStyle]): 2013-04-10 Sam Weinig Make Frame's ScriptController an OwnPtr and remove the #include https://bugs.webkit.org/show_bug.cgi?id=114105 Reviewed by Dean Jackson. * Plugins/Hosted/HostedNetscapePluginStream.mm: * Plugins/WebNetscapePluginStream.mm: * Plugins/WebPluginContainerCheck.mm: * WebCoreSupport/WebGeolocationClient.mm: * WebCoreSupport/WebInspectorClient.mm: * WebView/WebFrame.mm: 2013-04-13 Anders Carlsson Add form delegate method that's invoked right before sending a submit event to a form element https://bugs.webkit.org/show_bug.cgi?id=114575 Reviewed by Dan Bernstein. * MigrateHeaders.make: Copy DOMHTMLFormElementInternal.h over to WebKit. * WebCoreSupport/WebFrameLoaderClient.mm: (makeFormFieldValuesDictionary): New helper function that returns the values of a form in dictionary form. (WebFrameLoaderClient::dispatchWillSendSubmitEvent): Call the right delegate method. (WebFrameLoaderClient::dispatchWillSubmitForm): Use the helper function. * WebView/WebDelegateImplementationCaching.h: * WebView/WebDelegateImplementationCaching.mm: (CallFormDelegate): Add another overload. * WebView/WebFormDelegate.h: * WebView/WebFormDelegate.m: (-[WebFormDelegate willSendSubmitEventToForm:inFrame:withValues:]): Add a default implementation. 2013-04-10 Benjamin Poulain Mass remove all the empty directories Rubberstamped by Ryosuke Niwa. * ForwardingHeaders/wtf/unicode/icu: Removed. 2013-04-08 Anders Carlsson Remove unneeded headers from FrameLoader.h https://bugs.webkit.org/show_bug.cgi?id=114223 Reviewed by Geoffrey Garen. Include HistoryController.h from WebCore. * WebCoreSupport/WebFrameLoaderClient.mm: * WebView/WebView.mm: 2013-04-09 Geoffrey Garen Removed bitrotted TimeoutChecker code https://bugs.webkit.org/show_bug.cgi?id=114336 Reviewed by Alexey Proskuryakov. This mechanism hasn't worked for a while. MarkL is working on a new version of this feature with a distinct implementation. * Plugins/Hosted/NetscapePluginInstanceProxy.mm: (WebKit::NetscapePluginInstanceProxy::evaluate): 2013-04-08 Benjamin Poulain Remove HTML Notification https://bugs.webkit.org/show_bug.cgi?id=114231 Reviewed by Ryosuke Niwa. * Configurations/FeatureDefines.xcconfig: 2013-04-05 Anders Carlsson Stop building Objective-C bindings for the SVG DOM https://bugs.webkit.org/show_bug.cgi?id=114076 Reviewed by Geoffrey Garen. The DOM SVG Objective-C bindings have never been exposed as API, and not building them cuts WebCore build by 10%. * Configurations/FeatureDefines.xcconfig: * MigrateHeaders.make: 2013-04-05 Timothy Hatcher Allow the Web Inspector to use WebSQL. This fixes an exception on load in the Safari Web Inspector. https://webkit.org/b/114040 rdar://problem/13581422 Reviewed by Anders Carlsson. * WebCoreSupport/WebInspectorClient.mm: (-[WebInspectorWindowController webView:frame:exceededDatabaseQuotaForSecurityOrigin:database:]): Added. 2013-04-02 Timothy Hatcher Provide a user default that can be used to disable docking of the Web Inspector. The user default is "WebKit Web Inspector Setting - inspectorAttachDisabled". https://webkit.org/b/113779 rdar://problem/13446021 Reviewed by Joseph Pecoraro. * WebCoreSupport/WebInspectorClient.h: (WebInspectorClient::inspectorAttachDisabled): Added. (WebInspectorClient::setInspectorAttachDisabled): Added. * WebCoreSupport/WebInspectorClient.mm: (WebInspectorClient::didResizeMainFrame): (-[WebInspectorWindowController window]): (-[WebInspectorWindowController showWindow:]): Check inspectorAttachDisabled() in places where we attach or update the dock button. 2013-04-02 Alexey Proskuryakov [Mac] Remove WKCreateNSURLConnectionDelegateProxy https://bugs.webkit.org/show_bug.cgi?id=113810 Reviewed by Anders Carlsson. * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): 2013-04-02 Alexey Proskuryakov [WK2] Crashes in NetworkProcess when canceling loads https://bugs.webkit.org/show_bug.cgi?id=113803 Reviewed by Darin Adler. * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::convertMainResourceLoadToDownload): Just pass nil instead of proxy. 2013-04-01 Ryosuke Niwa WebKit/mac shouldn't have code for Mac 10.5 and earlier https://bugs.webkit.org/show_bug.cgi?id=113746 Reviewed by Darin Adler. Deleted the code for 10.5 and removed if-defs for 10.6. * Plugins/Hosted/WebHostedNetscapePluginView.mm: (-[WebHostedNetscapePluginView createPlugin]): * Plugins/WebBaseNetscapePluginView.mm: (-[WebBaseNetscapePluginView initWithFrame:pluginPackage:URL:baseURL:MIMEType:attributeKeys:attributeValues:loadManually:element:WebCore::]): * Plugins/WebNetscapePluginView.mm: (-[WebNetscapePluginView createPlugin]): (-[WebNetscapePluginView getVariable:forURL:value:length:]): (-[WebNetscapePluginView _workaroundSilverlightFullscreenBug:]): * WebCoreSupport/WebChromeClient.mm: (WebChromeClient::selectItemWritingDirectionIsNatural): (WebChromeClient::selectItemAlignmentFollowsMenuWritingDirection): * WebCoreSupport/WebEditorClient.mm: (core): (WebEditorClient::checkTextOfParagraph): (WebEditorClient::requestCheckingOfString): * WebView/WebDynamicScrollBarsView.mm: (-[WebDynamicScrollBarsView reflectScrolledClipView:]): * WebView/WebFullScreenController.mm: (-[WebFullScreenController _updateMenuAndDockForFullScreen]): * WebView/WebHTMLView.mm: (-[WebHTMLView _documentFragmentFromPasteboard:inContext:allowPlainText:]): (-[WebHTMLView _frameOrBoundsChanged]): (+[WebHTMLView _insertablePasteboardTypes]): (-[WebHTMLView _documentFragmentFromPasteboard:forType:inContext:subresources:]): (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]): (writingDirectionKeyBindingsEnabled): (-[WebHTMLView _lookUpInDictionaryFromMenu:]): (-[WebHTMLView attachRootLayer:]): * WebView/WebHTMLViewInternal.h: * WebView/WebPDFDocumentExtras.mm: * WebView/WebPreferences.mm: (+[WebPreferences initialize]): * WebView/WebResourceInternal.h: * WebView/WebScriptDebugDelegate.h: * WebView/WebView.mm: (-[WebView _commonInitializationWithFrameName:groupName:]): (-[WebView _preferencesChanged:]): (+[WebView initialize]): (clientNeedsWebViewInitThreadWorkaround): (-[WebView validateUserInterfaceItemWithoutDelegate:]): (-[WebView setGrammarCheckingEnabled:]): (-[WebView isAutomaticQuoteSubstitutionEnabled]): (-[WebView isAutomaticLinkDetectionEnabled]): (-[WebView isAutomaticDashSubstitutionEnabled]): (-[WebView isAutomaticTextReplacementEnabled]): (-[WebView isAutomaticSpellingCorrectionEnabled]): (-[WebView _searchWithSpotlightFromMenu:]): (WebInstallMemoryPressureHandler): * WebView/WebViewPrivate.h: 2013-04-01 Tim Horton WebCache should do the normal initialization dance https://bugs.webkit.org/show_bug.cgi?id=113722 Reviewed by Anders Carlsson. In case a WebKit1 client uses WebCache before creating a WebView (or any of the other initialization-ready classes), we should do the initialization work in WebCache as well. * Misc/WebCache.mm: (+[WebCache initialize]): 2013-03-26 Timothy Hatcher Add support for dock-to-right of the Web Inspector in the Mac port. Unfortunately this requires Safari changes, so it is disabled in the nightly builds. https://webkit.org/b/113341 rdar://problem/10368152 Reviewed by Joseph Pecoraro. * Resources/Dock.pdf: Updated. * WebCoreSupport/WebInspectorClient.h: (WebInspectorFrontendClient): * WebCoreSupport/WebInspectorClient.mm: (WebInspectorFrontendClient::frontendLoaded): (WebInspectorFrontendClient::attachWindow): (WebInspectorFrontendClient::setAttachedWindowWidth): (-[WebInspectorWindowController attachWindow:]): (-[WebInspectorWindowController attach]): (-[WebInspectorWindowController detach]): * WebInspector/WebInspectorFrontend.mm: (-[WebInspectorFrontend attach]): 2013-03-26 Tim Horton Unreviewed attempted cr-mac build fix. * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): 2013-03-26 Hayato Ito Allow ShadowContents in HitTests by default. https://bugs.webkit.org/show_bug.cgi?id=113171 Reviewed by Dimitri Glazkov. * WebView/WebFrame.mm: (-[WebFrame elementAtPoint:]): * WebView/WebHTMLView.mm: (-[WebHTMLView elementAtPoint:allowShadowContent:]): 2013-03-26 Tim Horton [ca] Tell CA to clean up unused resources if a given WebProcess won't be drawing https://bugs.webkit.org/show_bug.cgi?id=107539 Reviewed by Simon Fraser. Update WebSystemInterface. * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): 2013-03-26 Sergio Villar Senin Implement overtype mode for editable content https://bugs.webkit.org/show_bug.cgi?id=112126 Reviewed by Ryosuke Niwa. Added the OverWrite editing command to the WebCore editing commands lists. * WebView/WebHTMLView.mm: * WebView/WebView.h: * WebView/WebView.mm: 2013-03-25 Kent Tamura Rename ENABLE_INPUT_TYPE_DATETIME https://bugs.webkit.org/show_bug.cgi?id=113254 Reviewed by Kentaro Hara. Rename ENABLE_INPUT_TYPE_DATETIME to ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE. Actually I'd like to remove the code, but we shouldn't remove it yet because we shipped products with it on some platforms. * Configurations/FeatureDefines.xcconfig: 2013-03-21 Kiran Muppala Add runtime setting for hidden page DOM timer throttling and CSS animation suspension https://bugs.webkit.org/show_bug.cgi?id=112308 Reviewed by Gavin Barraclough. Add private preference for enabling/disabling hidden page DOM timer throttling and CSS animation suspension. The preference should be disabled by default to avoid compatibility issues. * WebView/WebPreferenceKeysPrivate.h: * WebView/WebPreferences.mm: (+[WebPreferences initialize]): (-[WebPreferences hiddenPageDOMTimerThrottlingEnabled]): (-[WebPreferences setHiddenPageDOMTimerThrottlingEnabled:]): (-[WebPreferences hiddenPageCSSAnimationSuspensionEnabled]): (-[WebPreferences setHiddenPageCSSAnimationSuspensionEnabled:]): * WebView/WebPreferencesPrivate.h: * WebView/WebView.mm: (-[WebView _preferencesChanged:]): 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 ==