2010-09-20 Andy Estes Reviewed by Adam Barth. REGRESSION (HTML5 Parser): Pages broken due to parsing changes https://bugs.webkit.org/show_bug.cgi?id=40961 Implement WebKitUsePreHTML5ParserQuirks preference. * WebView/WebPreferenceKeysPrivate.h: * WebView/WebPreferences.mm: (+[WebPreferences initialize]): Default WebKitUsePreHTML5ParserQuirks to false. (-[WebPreferences usePreHTML5ParserQuirks]): (-[WebPreferences setUsePreHTML5ParserQuirks:]): * WebView/WebPreferencesPrivate.h: * WebView/WebView.mm: (-[WebView _preferencesChangedNotification:]): Update WebCore::Settings with the value of WebKitUsePreHTML5ParserQuirks when a preference changes. 2010-09-20 Enrica Casucci Reviewed by Sam Weinig. Pasteboard doesn't work in WebKit2. https://bugs.webkit.org/show_bug.cgi?id=42317 Some changes to fix style inconsistencies. Added OBJC 2.0 style enumeration. * WebCoreSupport/WebEditorClient.h: * WebCoreSupport/WebEditorClient.mm: (WebEditorClient::userVisibleString): (createExcludedElementsForAttributedStringConversion): (WebEditorClient::documentFragmentFromAttributedString): Changed parameter to be a Vector of RefPtr. (WebEditorClient::setInsertionPasteboard): (WebEditorClient::pasteboardTypesForSelection): 2010-09-17 David Hyatt Reviewed by Simon Fraser. https://bugs.webkit.org/show_bug.cgi?id=45993, convert printing to the new pagination model. Make printing store the page height in the RenderView and push that into the layout state to use the new pagination model. The old pagination model is retained because it is still used for embedded WebViews. * WebView/WebHTMLView.mm: (-[WebHTMLView _adjustedBottomOfPageWithTop:bottom:limit:]): 2010-09-17 Darin Adler Reviewed by Sam Weinig. REGRESSION (r60104): Zoom level is unexpectedly reset on page reload https://bugs.webkit.org/show_bug.cgi?id=42863 * WebView/WebView.mm: (-[WebView _setZoomMultiplier:isTextOnly:]): Call functions on Frame instead of FrameView. 2010-09-17 Matthew Delaney Reviewed by Simon Fraser. Reduce minimum DOMTimer interval https://bugs.webkit.org/show_bug.cgi?id=45362 * WebView/WebView.mm: Added in a call to set the mimimum allowed DOMTimer to 4ms. 2010-09-17 Chris Marrin Reviewed by Simon Fraser. Add WebKitAccelerated2dCanvasEnabled flag to WebKit for Mac https://bugs.webkit.org/show_bug.cgi?id=45911 * WebView/WebPreferenceKeysPrivate.h: * WebView/WebPreferences.mm: (+[WebPreferences initialize]): (-[WebPreferences accelerated2dCanvasEnabled]): (-[WebPreferences setAccelerated2dCanvasEnabled:]): * WebView/WebPreferencesPrivate.h: * WebView/WebView.mm: (-[WebView _preferencesChangedNotification:]): 2010-09-17 Jia Pu Reviewed by Dan Bernstein. WebKit should use system wide spell checking preference when application specific one isn't set. https://bugs.webkit.org/show_bug.cgi?id=45789 * WebView/WebView.mm: (+[WebView initialize]): Use system wide autocorrection and text substitution preferences when the application level preferences are not set. 2010-09-16 John Sullivan Reviewed by Darin Adler. https://bugs.webkit.org/show_bug.cgi?id=45938 _web_makePluginViewsPerformSelector:: mutates subviews array while iterating it * WebView/WebHTMLView.mm: (-[WebHTMLView _web_makePluginSubviewsPerformSelector:withObject:]): Converted from -[NSArray _web_makePluginViewsPerformSelector:withObject:]. The old method was only ever called on the result of -[WebHTMLView subviews]. By moving that knowledge into this helper method, it can't be used incorrectly. Now it makes a copy of [WebHTMLView subviews] before enumerating it, to ensure that the selector can't mutate the array being enumerated. (-[WebHTMLView viewWillMoveToHostWindow:]): Updated for _web_makePluginSubviewsPerformSelector:: signature change. (-[WebHTMLView viewDidMoveToHostWindow]): Ditto. 2010-09-16 Darin Adler Reviewed by Andreas Kling. Reduce use of HTMLInputElement::inputType so we can remove it later https://bugs.webkit.org/show_bug.cgi?id=45903 * WebView/WebHTMLRepresentation.mm: (-[WebHTMLRepresentation elementDoesAutoComplete:]): Use isPasswordField. (-[WebHTMLRepresentation elementIsPassword:]): Use isPasswordField. 2010-09-16 Patrick Gansterer Reviewed by Darin Adler. Always use a valid string when setting WebKitUserStyleSheetLocationPreferenceKey. https://bugs.webkit.org/show_bug.cgi?id=41510 This prevents usage of nil value, which would cause an uncaught exception. * WebView/WebPreferences.mm: (-[WebPreferences setUserStyleSheetLocation:]): 2010-09-16 Dan Bernstein Reverted the previous change because r67628 has been reverted. * WebCoreSupport/WebPlatformStrategies.h: * WebCoreSupport/WebPlatformStrategies.mm: 2010-09-16 Dan Bernstein Build fix after r67628. Added context menu item localizable strings for the items added in r67628, following equivalent menu items in Mac OS X when possible. However, this set of menu items does not make much sense for Mac OS X, and this should be addressed separately. * WebCoreSupport/WebPlatformStrategies.h: * WebCoreSupport/WebPlatformStrategies.mm: (WebPlatformStrategies::contextMenuItemTagOpenMediaInNewWindow): (WebPlatformStrategies::contextMenuItemTagCopyMediaLinkToClipboard): (WebPlatformStrategies::contextMenuItemTagToggleMediaControls): (WebPlatformStrategies::contextMenuItemTagToggleMediaLoop): (WebPlatformStrategies::contextMenuItemTagEnterVideoFullscreen): (WebPlatformStrategies::contextMenuItemTagMediaPlay): (WebPlatformStrategies::contextMenuItemTagMediaPause): (WebPlatformStrategies::contextMenuItemTagMediaMute): (WebPlatformStrategies::contextMenuItemTagMediaUnMute): 2010-09-16 Eric Uhrhane Reviewed by Jian Li. Unify FILE_SYSTEM and FILE_WRITER enables under the name FILE_SYSTEM. https://bugs.webkit.org/show_bug.cgi?id=45798 * Configurations/FeatureDefines.xcconfig: 2010-09-15 Simon Fraser Reviewed by Adam Roben. https://bugs.webkit.org/show_bug.cgi?id=44715 maps.google.com flips upside down when zooming map using trackpad in WebKit2 on Mac Move geometry flipping to platform-specific code. * WebView/WebHTMLView.mm: (-[WebHTMLView attachRootLayer:]): 2010-09-14 Jia Pu Reviewed by Dan Bernstein. Only intercept ESC key press when autocorrection UI is visible. https://bugs.webkit.org/show_bug.cgi?id=45071 * WebCoreSupport/WebEditorClient.h: Added declaration of isShowingCorrectionPanel(), which provides an inteface to query whether autocorrection panel is shown. * WebCoreSupport/WebEditorClient.mm: (WebEditorClient::WebEditorClient): Defined a constant, InvalidCorrectionPanelTag, for invalid correction panel tag. Replaced -1 with this constant. (WebEditorClient::dismissCorrectionPanel): Ditto (WebEditorClient::isShowingCorrectionPanel): Query whether autocorrection panel is shown. 2010-09-14 Mark Rowe Reviewed by John Sullivan. Part of . Make it possible to override the version number used in linked-in-or-after checks. * Misc/WebKitVersionChecks.h: Remove two unused functions from the header and add a method to set the overriden version. * Misc/WebKitVersionChecks.m: (WebKitLinkedOnOrAfter): (setWebKitLinkTimeVersion): Set the overridden version. (WebKitLinkTimeVersion): Return the overridden version if set, otherwise do the old thing. * WebView/WebPreferences.mm: (+[WebPreferences setWebKitLinkTimeVersion:]): Call through to set the overridden version. * WebView/WebPreferencesPrivate.h: 2010-09-14 Eric Seidel Unreviewed, reverting changes r67451 and r67451. Broke lots of builders. Only intercept ESC key press when autocorrection UI is visible. https://bugs.webkit.org/show_bug.cgi?id=45071 * WebCoreSupport/WebEditorClient.h: * WebCoreSupport/WebEditorClient.mm: (WebEditorClient::WebEditorClient): (WebEditorClient::dismissCorrectionPanel): 2010-09-14 Jia Pu Reviewed by Dan Bernstein. Only intercept ESC key press when autocorrection UI is visible. https://bugs.webkit.org/show_bug.cgi?id=45071 * WebCoreSupport/WebEditorClient.h: Added declaration of isShowingCorrectionPanel(), which provides an inteface to query whether autocorrection panel is shown. * WebCoreSupport/WebEditorClient.mm: (WebEditorClient::WebEditorClient): Defined a constant, InvalidCorrectionPanelTag, for invalid correction panel tag. Replaced -1 with this constant. (WebEditorClient::dismissCorrectionPanel): Ditto (WebEditorClient::isShowingCorrectionPanel): Query whether autocorrection panel is shown. 2010-09-13 Darin Adler Reviewed by Adam Barth. Preparation for eliminating deprecatedParseURL https://bugs.webkit.org/show_bug.cgi?id=45695 * DOM/WebDOMOperations.mm: (-[DOMDocument webFrame]): Get rid of unneeded local variable. (-[DOMDocument URLWithAttributeString:]): Remove unhelpful comment. 2010-09-13 Enrica Casucci Reviewed by Sam Weinig. Paste should be implemented in WebCore like Copy and Cut for Mac also. https://bugs.webkit.org/show_bug.cgi?id=45494 On the Mac platform, the implementation of the paste operation is all done at the WebKit level. In order to support it on WebKit2 it is necessary to refactor the code and move this functionality at the level of WebCore like we already have on Windows. The original code relies on some in AppKit functions that call back into WebKit causing problems in WebKit2. All this functionality has been moved at the level of the editor client where it can be dealt with appropriately. * WebCoreSupport/WebEditorClient.h: * WebCoreSupport/WebEditorClient.mm: (excludedElementsForAttributedStringConversion): (WebEditorClient::documentFragmentFromAttributedString): Added. (WebEditorClient::setInsertionPasteboard): * WebCoreSupport/WebFrameLoaderClient.h: * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::canShowMIMETypeAsHTML): Re-implemented at the level of the editor client. * WebView/WebHTMLView.mm: Removed paste method. 2010-09-13 John Sullivan Reviewed by Adam Roben. https://bugs.webkit.org/show_bug.cgi?id=45677 [WebView canMarkAllTextMatches] can crash if called after [WebView close] * WebView/WebView.mm: (-[WebView canMarkAllTextMatches]): Return NO immediately if the webview has already been closed. This was an overlooked case from the fix for 45175. 2010-09-10 MORITA Hajime Reviewed by Tony Chang. [Chromium] Implement textInputController.hasSpellingMarker() for Chromium https://bugs.webkit.org/show_bug.cgi?id=45441 Moved the actual logic of hasSpellingMarker into WebCore to share it with other ports. * WebView/WebFrame.mm: (-[WebFrame hasSpellingMarker:length:]): 2010-09-11 Adam Barth Reviewed by Sam Weinig. Make SecurityOrigin::canDisplay an instance function https://bugs.webkit.org/show_bug.cgi?id=45219 * Plugins/Hosted/NetscapePluginInstanceProxy.mm: (WebKit::NetscapePluginInstanceProxy::loadRequest): * Plugins/WebNetscapePluginStream.mm: (WebNetscapePluginStream::WebNetscapePluginStream): * Plugins/WebNetscapePluginView.mm: (-[WebNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]): * Plugins/WebPluginContainerCheck.mm: (-[WebPluginContainerCheck _isForbiddenFileLoad]): * WebView/WebFrame.mm: (-[WebFrame _allowsFollowingLink:]): 2010-09-10 Sam Weinig Reviewed by Darin Adler. Remove unnecessary constraint in WebCore of choosing either text zoom or full page zoom. Precursor to https://bugs.webkit.org/show_bug.cgi?id=45522 * WebView/WebView.mm: (-[WebView _preferencesChangedNotification:]): (-[WebView _setZoomMultiplier:isTextOnly:]): (-[WebView _realZoomMultiplierIsTextOnly]): * WebView/WebViewData.h: * WebView/WebViewData.mm: (-[WebViewPrivate init]): Move tracking of text only zoom here from WebCore. 2010-09-10 Stephanie Lewis Reviewed by Alexey Proskuryakov. Refactor JavaScriptCore memory statistics so that WebKit doesn't need to know about the JIT and other implementation details of JavaScriptCore. Necessary to fix PPC build. https://bugs.webkit.org/show_bug.cgi?id=45528 * Misc/WebCoreStatistics.mm: (+[WebCoreStatistics memoryStatistics]): 2010-09-10 Darin Adler Reviewed by Sam Weinig. Move some Dashboard stuff from WebCore to WebKit along with a bit more FrameMac cleanup https://bugs.webkit.org/show_bug.cgi?id=45582 * MigrateHeaders.make: Removed WebDashboardRegion.h from the set of header to copy. * WebCoreSupport/WebChromeClient.mm: (WebChromeClient::dashboardRegionsChanged): Changed this to call -[WebView _dashboardRegions] so we don't have two copies of that code. * WebView/WebDashboardRegion.h: Copied from WebCore/page/mac/WebDashboardRegion.h. * WebView/WebDashboardRegion.mm: Copied from WebCore/page/mac/WebDashboardRegion.m. * WebView/WebView.mm: (-[WebView _dashboardRegions]): Moved the code from Frame::dashboardRegions here. 2010-09-10 Adam Barth Reviewed by Darin Fisher. Move code from WebKit-layer to DocumentLoader https://bugs.webkit.org/show_bug.cgi?id=45569 This code is the most confused, but now should be a bit cleaner. There's still a magical fake-setting for creating renderers that needs to be cleaned up, but we can do that in a separate patch. * WebView/WebFrame.mm: (-[WebFrame _commitData:]): * WebView/WebFrameInternal.h: * WebView/WebHTMLRepresentation.mm: (-[WebHTMLRepresentation receivedData:withDataSource:]): (-[WebHTMLRepresentation finishedLoadingWithDataSource:]): 2010-09-09 Darin Adler Reviewed by Adam Barth. Move functions from Frame to SelectionController as planned https://bugs.webkit.org/show_bug.cgi?id=45508 * WebView/WebFrame.mm: (-[WebFrame _selectionGranularity]): (-[WebFrame _insertParagraphSeparatorInQuotedContent]): (-[WebFrame _typingStyle]): (-[WebFrame _replaceSelectionWithFragment:selectReplacement:smartReplace:matchStyle:]): * WebView/WebHTMLRepresentation.mm: (-[WebHTMLRepresentation currentForm]): * WebView/WebHTMLView.mm: (-[WebHTMLView jumpToSelection:]): (-[WebHTMLView centerSelectionInVisibleArea:]): (-[WebHTMLView _canSmartCopyOrDelete]): (-[WebHTMLView _lookUpInDictionaryFromMenu:]): (-[WebHTMLView selectionRect]): (-[WebHTMLView selectionTextRects]): (-[WebHTMLView selectionImageRect]): * WebView/WebView.mm: (-[WebView setEditable:]): Call functions on selection(). 2010-09-10 Adam Barth Reviewed by Eric Seidel. Main resource bytes shouldn't bounce through FrameLoader https://bugs.webkit.org/show_bug.cgi?id=45496 Now return the bytes to the DocumentLoader. Previously, we were checking the document for null. However, Frame can never have a null document, so this check is no longer needed. * WebView/WebFrame.mm: (-[WebFrame _addData:]): 2010-09-09 John Therrell Reviewed by Alexey Proskuryakov. Added statistics sampling and reporting for JavaScriptCore's RegisterFile and ExecutableAllocator classes https://bugs.webkit.org/show_bug.cgi?id=45134 Added ability to enable new JavaScriptCore statistics sampling and reporting for RegisterFile and ExecutableAllocator classes. Added reporting of JavaScriptCore's stack committed memory and JIT code committed memory statistics to WebCoreStatistics memoryStatistics. * Misc/WebCoreStatistics.mm: (+[WebCoreStatistics memoryStatistics]): Added statistics reporting for JSC RegisterFile and ExecutableAllocator. 2010-09-09 Jer Noble Reviewed by Mark Rowe. Use of ENABLE macro in WebUIDelegatePrivate.h breaks use from outside WebKit * WebView/WebUIDelegatePrivate.h: Use ENABLE_FULLSCREEN_API instead of ENABLE(FULLSCREEN_API) 2010-09-08 Darin Adler Reviewed by Adam Barth. Move functions from Frame to Editor as planned https://bugs.webkit.org/show_bug.cgi?id=45218 * WebView/WebFrame.mm: (-[WebFrame _selectedString]): (-[WebFrame _firstRectForDOMRange:]): (-[WebFrame _markDOMRange]): (-[WebFrame _setTypingStyle:withUndoAction:]): * WebView/WebHTMLRepresentation.mm: (-[WebHTMLRepresentation finishedLoadingWithDataSource:]): * WebView/WebHTMLView.mm: (-[WebHTMLView _selectionStartFontAttributesAsRTF]): (-[WebHTMLView toggleBaseWritingDirection:]): (-[WebHTMLView searchFor:direction:caseSensitive:wrap:startInSelection:]): (-[WebHTMLView countMatchesForText:caseSensitive:limit:markMatches:]): (-[WebHTMLView setMarkedTextMatchesAreHighlighted:]): (-[WebHTMLView markedTextMatchesAreHighlighted]): * WebView/WebView.mm: (-[WebView setEditable:]): Changed call sites to use editor(). 2010-09-08 MORITA Hajime Reviewed by Tony Chang. spelling underline gets lost on backspace https://bugs.webkit.org/show_bug.cgi?id=41423 Switched to use a anchorNode of the selection instead of a focused node for finer control of node selection in spellingNode(): With the focused node, we cannot select other nodes but the first child of that node. In some case, we need to inspect these. The API is only for LayoutTests, and the change is compatible for existing test cases. * WebView/WebFrame.mm: (spellingNode): 2010-09-08 Adam Barth Rubber-stamped by Eric Seidel. Rename DocLoader to CachedResourceLoader because that's what it does. * WebView/WebFrame.mm: 2010-09-07 Anders Carlsson Reviewed by Oliver Hunt. Fix clang++ build. * Misc/WebLocalizableStrings.h: Fix a struct/tag mismatch. * WebView/WebDeviceOrientationProviderMock.mm: (-[WebDeviceOrientationProviderMock init]): Remove stray semicolon. * WebView/WebViewData.h: Remove unused class forward declaration. 2010-09-07 Anders Carlsson Reviewed by Darin Adler. -Wcast-align warning emitted when building with clang Remove the -Wcast-align-warning since it isn't really useful, and clang is more aggressive about warning than gcc. * Configurations/Base.xcconfig: 2010-09-06 Adam Barth Reviewed by Darin Adler. Rename SecurityOrigin::canLoad to canDisplay https://bugs.webkit.org/show_bug.cgi?id=45214 Propagate name change. * Plugins/Hosted/NetscapePluginInstanceProxy.mm: (WebKit::NetscapePluginInstanceProxy::loadRequest): * Plugins/WebNetscapePluginStream.mm: (WebNetscapePluginStream::WebNetscapePluginStream): * Plugins/WebNetscapePluginView.mm: (-[WebNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]): * Plugins/WebPluginContainerCheck.mm: (-[WebPluginContainerCheck _isForbiddenFileLoad]): * WebView/WebFrame.mm: (-[WebFrame _allowsFollowingLink:]): 2010-09-03 Jesus Sanchez-Palencia Reviewed by Darin Adler. Add NetworkingContext to avoid layer violations https://bugs.webkit.org/show_bug.cgi?id=42292 Add Mac's specific implementation of FrameNetworkingContext. * WebCoreSupport/WebFrameLoaderClient.h: * WebCoreSupport/WebFrameLoaderClient.mm: * WebCoreSupport/WebFrameNetworkingContext.mm: (WebFrameNetworkingContext::needsSiteSpecificQuirks): (WebFrameNetworkingContext::localFileContentSniffingEnabled): (WebFrameNetworkingContext::scheduledRunLoopPairs): (WebFrameNetworkingContext::blockedError): 2010-09-03 John Sullivan Reviewed by Dan Bernstein. https://bugs.webkit.org/show_bug.cgi?id=45175 [WebView unmarkAllTextMatches] will crash if the webview is already closed Made this and related methods robust against being called when the WebView is closed. * WebView/WebView.mm: (-[WebView markAllMatchesForText:caseSensitive:highlight:limit:]): Bail out if the WebView is closed. (-[WebView countMatchesForText:caseSensitive:highlight:limit:markMatches:]): Ditto. (-[WebView unmarkAllTextMatches]): Ditto. (-[WebView rectsForTextMatches]): Ditto. 2010-09-03 Hironori Bono Reviewed by Kent Tamura. Adds textInputController.hasSpellingMarker() to avoid using pixel tests for spellchecking tests and implements it for Mac. https://bugs.webkit.org/show_bug.cgi?id=41832 * WebView/WebFrame.mm: Implemented [WebFrame hasSpellingMarker:length:]. (spellingNode): (-[WebFrame hasSpellingMarker:length:]): * WebView/WebFramePrivate.h: Added [WebFrame hasSpellingMarker:length:] so TextInputController can use it. 2010-09-02 Yury Semikhatsky Reviewed by Pavel Feldman. REGRESSION: Crash occurs at objc_msgSend when closing a window that is displaying the web inspector https://bugs.webkit.org/show_bug.cgi?id=44230 * WebCoreSupport/WebInspectorClient.h: * WebCoreSupport/WebInspectorClient.mm: (WebInspectorFrontendClient::closeWindow): (WebInspectorFrontendClient::disconnectFromBackend): (-[WebInspectorWindowController windowShouldClose:]): (-[WebInspectorWindowController destroyInspectorView:]): 2010-09-02 Steve Block Reviewed by Adam Barth. Hook up LayoutTestController.setMockDeviceOrientation() on Mac. https://bugs.webkit.org/show_bug.cgi?id=43181 This patch hooks up the mock device orientation client on Mac for use in DumpRenderTree. The patch adds a new WebDeviceOrientationClient for Mac. This client acts as a proxy to either a real or mock device orientation provider, both of which implement a new WebDeviceOrientationProvider interface. The provider is created by the embedder and passed to the WebView, from where WebDeviceOrientationClient can access it. The mock provider, WebDeviceOrientationProviderMock, is a wrapper around the existing WebCore mock. * WebCoreSupport/WebDeviceOrientationClient.h: Added. * WebCoreSupport/WebDeviceOrientationClient.mm: Added. (WebDeviceOrientationClient::WebDeviceOrientationClient): (WebDeviceOrientationClient::setController): (WebDeviceOrientationClient::startUpdating): (WebDeviceOrientationClient::stopUpdating): (WebDeviceOrientationClient::lastOrientation): * WebKit.exp: * WebView/WebDeviceOrientation.h: Added. * WebView/WebDeviceOrientation.mm: Added. (-[WebDeviceOrientation initWithCoreDeviceOrientation:WebCore::]): (core): (-[WebDeviceOrientation initWithCanProvideAlpha:alpha:canProvideBeta:beta:canProvideGamma:gamma:]): (-[WebDeviceOrientation dealloc]): * WebView/WebDeviceOrientationInternal.h: Added. * WebView/WebDeviceOrientationProvider.h: Added. * WebView/WebDeviceOrientationProviderMock.h: Added. * WebView/WebDeviceOrientationProviderMock.mm: Added. (-[WebDeviceOrientationProviderMockInternal setOrientation:]): (-[WebDeviceOrientationProviderMockInternal setController:]): (-[WebDeviceOrientationProviderMockInternal startUpdating]): (-[WebDeviceOrientationProviderMockInternal stopUpdating]): (-[WebDeviceOrientationProviderMockInternal lastOrientation]): (-[WebDeviceOrientationProviderMock init]): (-[WebDeviceOrientationProviderMock dealloc]): (-[WebDeviceOrientationProviderMock setOrientation:]): (-[WebDeviceOrientationProviderMock setController:]): (-[WebDeviceOrientationProviderMock startUpdating]): (-[WebDeviceOrientationProviderMock stopUpdating]): (-[WebDeviceOrientationProviderMock lastOrientation]): * WebView/WebDeviceOrientationProviderMockInternal.h: Added. * WebView/WebView.mm: (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]): (-[WebView _setDeviceOrientationProvider:]): (-[WebView _deviceOrientationProvider]): * WebView/WebViewData.h: * WebView/WebViewPrivate.h: 2010-09-01 Jia Pu Reviewed by Dan Bernstein. Add support for autocorrection UI on Mac OS X. https://bugs.webkit.org/show_bug.cgi?id=44958 See detailed high level description in WebCore/ChangeLog. * WebCoreSupport/WebEditorClient.h: Added new member methods declared in EditorClient. Added m_correctionPanelTag to store the ID of current autocorrection UI object. * WebCoreSupport/WebEditorClient.mm: (WebEditorClient::WebEditorClient): Initialize m_correctionPanelTag. (WebEditorClient::~WebEditorClient): Make sure the autocorrection UI is dismissed before destroying the object. (WebEditorClient::respondToChangedSelection): Dismiss autocorrection UI whenever the selection changes. (WebEditorClient::showCorrectionPanel): Show autocorrection UI. (WebEditorClient::dismissCorrectionPanel): Dismiss autocorrection UI. 2010-09-01 Mark Rowe Reviewed by Adam Roben. WebKit needs to compile without access to QuickDraw private headers. * Carbon/HIViewAdapter.m: * Carbon/HIWebView.mm: * Misc/QuickDrawCompatibility.h: Added. * Plugins/WebNetscapePluginView.mm: 2010-08-31 Dave Hyatt Reviewed by Sam Weinig. https://bugs.webkit.org/show_bug.cgi?id=44863, disentangle style recalc from layout, so that the former can occur in more places without having to do the latter. Eliminate Mac-specific code for style re-application and recursive layout/style updating in favor of the cross-platform code that all the other ports use. * Carbon/HIWebView.mm: (Draw): * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::forceLayout): * WebView/WebHTMLView.mm: (-[WebHTMLView _propagateDirtyRectsToOpaqueAncestors]): (-[WebHTMLView viewWillDraw]): (-[WebHTMLView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]): (-[WebHTMLView _recursiveDisplayAllDirtyWithLockFocus:visRect:]): (-[WebHTMLView _recursive:displayRectIgnoringOpacity:inContext:topView:]): (-[WebHTMLView reapplyStyles]): (-[WebHTMLView layoutToMinimumPageWidth:height:maximumPageWidth:adjustingViewSize:]): (-[WebHTMLView setNeedsToApplyStyles:]): (-[WebHTMLView _setPrinting:minimumPageWidth:height:maximumPageWidth:adjustViewSize:paginateScreenContent:]): (-[WebHTMLView _layoutIfNeeded]): (-[WebHTMLView _web_updateLayoutAndStyleIfNeededRecursive]): * WebView/WebHTMLViewInternal.h: * WebView/WebView.mm: (-[WebView _viewWillDrawInternal]): 2010-08-31 Sam Weinig Reviewed by Darin Adler. Add ability to count text matches without marking https://bugs.webkit.org/show_bug.cgi?id=43996 Safari needs to be able to count text matches without triggering lots of repainting. Rename markAllMatchesForText: to countMatchesForText: and add a markMatches: parameter. For backwards compatibility markAllMatchesForText: calls countMatchesForText: and passes YES for markMatches:. * WebView/WebDocumentInternal.h: * WebView/WebHTMLView.mm: (-[WebHTMLView markAllMatchesForText:caseSensitive:limit:]): (-[WebHTMLView countMatchesForText:caseSensitive:limit:markMatches:]): * WebView/WebPDFView.mm: (-[WebPDFView markAllMatchesForText:caseSensitive:limit:]): (-[WebPDFView countMatchesForText:caseSensitive:limit:markMatches:]): * WebView/WebView.mm: (-[WebView markAllMatchesForText:caseSensitive:highlight:limit:]): (-[WebView countMatchesForText:caseSensitive:highlight:limit:markMatches:]): * WebView/WebViewPrivate.h: 2010-08-31 Darin Adler Reviewed by Anders Carlsson. * WebInspector/WebInspectorFrontend.mm: (-[WebInspectorFrontend initWithFrontendClient:]): Remove a stray semicolon. 2010-08-30 Mark Rowe Reviewed by Darin Adler. WebKit build fails. Temporarily add some extra includes in order to get things building again until is addressed. * Carbon/HIViewAdapter.m: * Carbon/HIWebView.mm: * Plugins/WebNetscapePluginView.mm: 2010-08-30 Andy Estes Reviewed by Darin Adler. REGRESSION (r66156): Sites using AppleConnect for authentication fail to log in. https://bugs.webkit.org/show_bug.cgi?id=44865 After http://trac.webkit.org/changeset/66156, sites using the AppleConnect plug-in for authentication fail to log in. This is due to a bug in AppleConnect that r66156 exposed, but since this will have a significant impact on users of WebKit nightly builds, a plugin-specific hack should be added while the underlying issue is being addressed. * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::createPlugin): Convert plug-in parameter names to lowercase if the plugin is of type 'application/x-snkp'. 2010-08-27 Jer Noble Reviewed by Eric Carlson. text/plain non-video files cause