2010-10-20 Simon Fraser Reviewed by Dan Bernstein. Composited elements drawn twice when WebView is layer-backed https://bugs.webkit.org/show_bug.cgi?id=48024 When drawing content in a layer-backed WebView, WebFrame's test for drawing to a bitmap succeeded, causing us to paint flattened compositing layers into the view. They would also be rendered by the normal compositing path, resulting in double rendering. Fix this by detecting when the WebHTMLView is being drawn into a layer, and avoiding flattening in that case. * WebView/WebFrame.mm: (-[WebFrame _showFlattenedCompositingLayers:]): (-[WebFrame _drawRect:contentsOnly:]): * WebView/WebHTMLView.mm: (-[WebHTMLView drawLayer:inContext:]): (-[WebHTMLView _web_isDrawingIntoLayer]): * WebView/WebHTMLViewInternal.h: 2010-10-20 Dumitru Daniliuc Reviewed by David Levin. Repost the DatabaseTracker notifications to the main thread, if needed. https://bugs.webkit.org/show_bug.cgi?id=40655 * Storage/WebDatabaseTrackerClient.mm: (DidModifyOriginData::dispatchToMainThread): (DidModifyOriginData::DidModifyOriginData): (DidModifyOriginData::dispatchDidModifyOriginOnMainThread): (WebDatabaseTrackerClient::dispatchDidModifyOrigin): (WebDatabaseTrackerClient::dispatchDidModifyDatabase): 2010-10-20 Simon Fraser Reviewed by Darin Adler. REGRESSION(r67568-r67643): Some HTML/CSS renders upside down and backwards on Leopard https://bugs.webkit.org/show_bug.cgi?id=47369 r46947 added code that limits the size of the layer-backed view on Leopard when the page height exceeds 4096px (later adjusted to 2048px in r48401). Later, r67576 altered the geometry flipping behavior to push the geometry flipping down into WebKit. However, the code that adjusts the hosting layer's sublayer transform to account for layer-backed view size-limiting was not fixed at the same time. This change corrects that. * WebView/WebHTMLView.mm: (-[WebHTMLView _updateLayerHostingViewPosition]): 2010-10-19 Simon Fraser Reviewed by Dan Bernstein. Compositing layers aren't always displayed correctly in layer-backed WebViews AppKit has some special code to prevent it meddling with view's layers under layer-backed WebViews. When a layer-backed WebView became composited, this caused our layer to remain zero-sized. Fix this by manually setting the geometry for our layer, if the WebHTMLView has a layer. This does not seem to be a problem if the WebView becomes layer-backed, or stops being layer-backed after the WebView starts using compositing. * WebView/WebHTMLView.mm: (-[WebHTMLView attachRootLayer:]): 2010-10-20 Dirk Schulze Reviewed by Nikolas Zimmermann. Merge ColorSpace and ImageColorSpace enums https://bugs.webkit.org/show_bug.cgi?id=47922 Renamed ColorSpace enum entries DeviceColorSpace and sRGBColorSpace to ColorSpaceDeviceRGB and ColorSpaceSRGB to follow webkit style rules. * Misc/WebKitNSStringExtras.mm: (-[NSString _web_drawAtPoint:font:textColor:allowingFontSmoothing:]): 2010-10-19 Alexey Proskuryakov Reviewed by Anders Carlsson. https://bugs.webkit.org/show_bug.cgi?id=47933 navigator.language doesn't work in WebKit2 * Misc/WebNSUserDefaultsExtras.mm: Moved code for computing default language to WebCore. We need to keep _webkit_preferredLanguageCode for Safari. * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): Initialize wkCopyCFLocalizationPreferredName. * WebCoreSupport/WebViewFactory.mm: Removed defaultLanguage. WebCore was the only caller. 2010-10-18 Alexey Proskuryakov Reviewed by David Kilzer. https://bugs.webkit.org/show_bug.cgi?id=47864 Convert WebNSUserDefaultsExtras.m to .mm Also, fixed some issues in the process: - removed locking, which was only necessary when this code was in Foundation; - fixed notification center observer to actually work (previously, it picked up changes when application preferences changed, not when system language did); - removed unused NSString category; - updated style. * Misc/WebNSUserDefaultsExtras.m: Removed. * Misc/WebNSUserDefaultsExtras.mm: Copied from WebKit/mac/Misc/WebNSUserDefaultsExtras.m. (createHTTPStyleLanguageCode): (+[NSUserDefaults _webkit_defaultsDidChange]): (addLanguageChangeObserver): (+[NSUserDefaults _webkit_preferredLanguageCode]): 2010-10-18 Stuart Morgan Reviewed by Eric Seidel. Switch to using the new Carbon NPAPI event declarations, and remove the old ones. https://bugs.webkit.org/show_bug.cgi?id=40784 * Plugins/WebNetscapePluginEventHandlerCarbon.mm: (WebNetscapePluginEventHandlerCarbon::mouseEntered): (WebNetscapePluginEventHandlerCarbon::mouseExited): (WebNetscapePluginEventHandlerCarbon::mouseMoved): (WebNetscapePluginEventHandlerCarbon::focusChanged): 2010-10-18 Pavel Podivilov Reviewed by Timothy Hatcher. Web Inspector: disable private browsing for inspector https://bugs.webkit.org/show_bug.cgi?id=47827 * WebCoreSupport/WebInspectorClient.mm: (-[WebInspectorWindowController init]): 2010-10-14 Ilya Tikhonovsky Reviewed by Pavel Feldman. Web Inspector: inspector settings/properties/states management should be extracted into separate class. We have a lot of flags/values in InspectorController. Some flags are persisting into profile. Others are part of inspector state for frontend. All these flags should keep their values after navigation. It'd be better to extract these flags/values into separate class which will care about theirs lifetime. https://bugs.webkit.org/show_bug.cgi?id=47275 * WebCoreSupport/WebInspectorClient.mm: (-[WebInspectorWindowController showWindow:]): (-[WebInspectorWindowController attach]): (-[WebInspectorWindowController detach]): 2010-10-13 Gavin Barraclough Reviewed by Oliver Hunt. https://bugs.webkit.org/show_bug.cgi?id=43987 Switch XMLHttpRequest, FileReader, and FileReaderSync to use a Stringbuilder to construct their internal result string. Remove ScriptString (this is now redundant). * WebCoreSupport/WebFrameLoaderClient.mm: 2010-10-12 Andy Estes Rubber-stamped by Darin Adler. Check in some cleanup from the previous commit. * WebView/WebView.mm: (leakMailQuirksUserScriptPath): Renamed to indicate that this function leaks an NSString. (-[WebView _injectMailQuirksScript]): Moved a static initialization from a separate class method into the only method that used it and removed the now-unnecessary class method. 2010-10-12 Eric Seidel Reviewed by Darin Adler. REGRESSION (new parser): Leopard/Tiger Mail / quirk is gone https://bugs.webkit.org/show_bug.cgi?id=45693 Re-implement this former WebCore parser quirk as a Mac-only userscript-based quirk. As far as I can tell from Darin's description this should satisfy Mail's needs. * Misc/MailQuirksUserScript.js: Added. * WebView/WebView.mm: (+[WebView _mailQuirksUserScript]): (-[WebView _injectMailQuirksScript]): (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]): 2010-10-12 Simon Fraser Reviewed by Sam Weinig. Add 'didDraw' callback for framerate tracking https://bugs.webkit.org/show_bug.cgi?id=47478 Add a callback at the end of -[WebHTMLView drawRect:] so a delegate can get notified when a draw happens. * WebView/WebHTMLView.mm: (-[WebHTMLView drawRect:]): * WebView/WebUIDelegatePrivate.h: 2010-10-11 Anders Carlsson Reviewed by Darin Adler. Remove WebIconFetcher from WebKit and IconFetcher from WebCore https://bugs.webkit.org/show_bug.cgi?id=47523 Remove all traces of the WebKit WebIconFetcher class. It's SPI that nobody uses. * Misc/WebIconFetcher.h: Removed. * Misc/WebIconFetcher.mm: Removed. * Misc/WebIconFetcherInternal.h: Removed. * WebView/WebFrame.mm: * WebView/WebFramePrivate.h: 2010-10-11 Jessie Berlin Reviewed by Darin Adler. Add Private API for creating a WebKit2 WebSerializedScriptValue from the internal representation of a WebKit1 WebSerializedJSValue. https://bugs.webkit.org/show_bug.cgi?id=47439 * WebView/WebSerializedJSValue.mm: (-[WebSerializedJSValue internalRepresentation]): * WebView/WebSerializedJSValuePrivate.h: 2010-10-07 Jessie Berlin Reviewed by Sam Weinig. Add Private API for creating a WebKit1 WebSerializedJSValue from the internal representation of a WebKit2 WebSerializedScriptValue. https://bugs.webkit.org/show_bug.cgi?id=47390 * WebView/WebSerializedJSValue.mm: (-[WebSerializedJSValue initWithInternalRepresentation:]): Set the WebSerializedJSValuePrivate's WebCore::SerializedScriptValue to be the passed in internal representation. * WebView/WebSerializedJSValuePrivate.h: Added. 2010-10-07 Antonio Gomes Reviewed by Simon Fraser. [Mac] [DRT] implement setSpatialNavigationEnabled https://bugs.webkit.org/show_bug.cgi?id=47291 Added the needed bits to make it possible to enabled spatial navigation for the Mac port. For now it is being only used by DRT. * WebView/WebPreferenceKeysPrivate.h: * WebView/WebPreferences.mm: (+[WebPreferences initialize]): (-[WebPreferences isSpatialNavigationEnabled]): (-[WebPreferences setSpatialNavigationEnabled:]): * WebView/WebPreferencesPrivate.h: * WebView/WebView.mm: (-[WebView _preferencesChangedNotification:]): 2010-10-07 Jer Noble Fix the Leopard 64-bit build. * Configurations/WebKit.xcconfig: Add CoreServices.framework/Frameworks to the framework search path. * WebView/WebVideoFullscreenController.mm: Explicitly import . 2010-10-06 Jer Noble Reviewed by Darin Adler. Screensaver starts while watching fullscreen playback. https://bugs.webkit.org/show_bug.cgi?id=47299 To disable the Screen Saver, we need to periodically call UpdateSystemActivity(). * WebView/WebVideoFullscreenController.h: Added _tickleTimer. * WebView/WebVideoFullscreenController.mm: (-[WebVideoFullscreenController dealloc]): Invalidate _tickleTimer. (-[WebVideoFullscreenController _enableTickleTimer]): Create _tickleTimer. (-[WebVideoFullscreenController _disableTickleTimer]): Invalidate _tickleTimer. (-[WebVideoFullscreenController _tickleTimerFired]): Call UpdateSystemActivity(). (-[WebVideoFullscreenController updatePowerAssertions]): Call _enableTickleTimer or _disableTickleTimer. 2010-10-05 Philippe Normand Reviewed by Martin Robinson. check for ENABLE(GLIB_SUPPORT) in WebView https://bugs.webkit.org/show_bug.cgi?id=46788 Use ENABLE(GLIB_SUPPORT) in WebView to guard the glib runloop observer. * WebView/WebView.mm: (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]): (-[WebView _close]): * WebView/WebViewData.h: * WebView/WebViewInternal.h: 2010-10-01 Anders Carlsson Fix Snow Leopard build. * Plugins/Hosted/NetscapePluginInstanceProxy.mm: (WebKit::NetscapePluginInstanceProxy::getProxy): 2010-10-01 Anders Carlsson Reviewed by Dan Bernstein. Add proxy server query function proxyServersForURL and change the Mac plug-in code to use it https://bugs.webkit.org/show_bug.cgi?id=47022 * Plugins/Hosted/NetscapePluginInstanceProxy.mm: (WebKit::NetscapePluginInstanceProxy::getProxy): * Plugins/WebBaseNetscapePluginView.h: * Plugins/WebBaseNetscapePluginView.mm: * Plugins/WebNetscapePluginView.mm: (-[WebNetscapePluginView getVariable:forURL:value:length:]): 2010-09-30 Darin Adler Reviewed by Sam Weinig. Remove remaining calls to deprecatedParseURL https://bugs.webkit.org/show_bug.cgi?id=26599 * DOM/WebDOMOperations.mm: (-[DOMDocument URLWithAttributeString:]): * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::createPlugin): Call stripLeadingAndTrailingHTMLSpaces instead of deprecatedParseURL. 2010-09-30 Anders Carlsson Reviewed by Darin Adler. -[DOMDocument _documentRange] throws an exception if there is no document element https://bugs.webkit.org/show_bug.cgi?id=46934 If there is no document element, just return an empty range. Otherwise we'll try to call Range::selectNode with a null Node which will throw a NOT_FOUND exception. * DOM/WebDOMOperations.mm: (-[DOMDocument _documentRange]): 2010-09-30 Chris Marrin Reviewed by Simon Fraser. Make 2D accelerated canvas rendering build on Mac https://bugs.webkit.org/show_bug.cgi?id=46007 Added ACCELERATED_2D_CANVAS to FeatureDefines * Configurations/FeatureDefines.xcconfig: 2010-09-30 Dan Bernstein Reviewed by John Sullivan. Add printing SPI allowing full control over shrink-to-fit https://bugs.webkit.org/show_bug.cgi?id=46877 * WebView/WebHTMLView.mm: (-[WebHTMLView _beginPrintModeWithMinimumPageWidth:height:maximumPageWidth:]): Added. * WebView/WebHTMLViewPrivate.h: 2010-09-28 Johnny Ding Reviewed by Adam Barth. https://bugs.webkit.org/show_bug.cgi?id=41292 Some windowed plugins did not handle events through EventHandler, so we never set right gesture state for those events. This change is to set right allowPopupsFromPlugin flag to current execution frame, so WeKit can always get right gesture state on Mac. From Mac Snow Leopard, the plugin is run under "WebKitPluginHost,app" process, that process passes the allowPopupsFromPlugin flag to WKPCEvaluate(in NetscapePluginHostProxy.mm), then flag is set in NetscapePluginInstanceProxy::evaluate. * Plugins/WebNetscapePluginView.mm: (-[WebNetscapePluginView sendEvent:isDrawRect:]): 2010-09-28 Jenn Braithwaite Reviewed by Dmitry Titov. Added oldPage param to FrameLoaderClient::didTransferChildFrameToNewDocument. https://bugs.webkit.org/show_bug.cgi?id=46663 * WebCoreSupport/WebFrameLoaderClient.h: * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::didTransferChildFrameToNewDocument): 2010-09-26 Antonio Gomes Reviewed by Kenneth Rohde Christiansen. DRT/Mac nodesFromRect support [Mac][DRT] Implement LayoutTestController::nodesFromRect https://bugs.webkit.org/show_bug.cgi?id=46580 Implement nodesFromRect as a private method to access non-exposed Document methods, similarly to computedStyleIncludingVisitedInfo. * WebView/WebView.mm: Added JSDocument.h and JSNodeList.h to the include list. These headers makes it possible to: 1) Get a Document off of a JSDocument; 2) Call toJS function, defined in JSNodeList.cpp|h so we can convert RefPtr gotten from Document::nodesFromRect to JS bindings. (-[WebView _nodesFromRect:forDocument:x:y:hPadding:vPadding:ignoreClipping:]): * WebView/WebViewPrivate.h: Added nodesFromRect method to access methods of the Document class not exposed to JavaScript. It works similarly to computedStyleIncludingVisitedInfo. 2010-09-24 Jia Pu Reviewed by Dan Bernstein. automaticSpellingCorrectionEnabled isn't updated. https://bugs.webkit.org/show_bug.cgi?id=46486 * WebView/WebView.mm: (+[WebView initialize]): Should update "automaticSpellingCorrectionEnabled" instead of "automaticTextReplacementEnabled". 2010-09-23 Alexey Proskuryakov Reviewed by Darin Adler. https://bugs.webkit.org/show_bug.cgi?id=46380 REGRESSION: Crash when downloading a file Downloading cannot be tested in DRT. * Misc/WebNSFileManagerExtras.m: (-[NSFileManager _webkit_setMetadataURL:referrer:atPath:]): Don't copy null strings. 2010-09-24 Ilya Tikhonovsky Reviewed by Yury Semikhatsky. Web Inspector: CRASH at node highlight on MAC Safari. 1) run-safari --debug 2) open inspector 3) open elements panel 4) hover mouse over elements panel items multiple times 5) CRASH Looks like it is a race condition. WebNodeHighlightView doesn't check the pointer to WebNodeHighligh object and it can be nil. https://bugs.webkit.org/show_bug.cgi?id=46261 * WebInspector/WebNodeHighlightView.mm: (-[WebNodeHighlightView drawRect:]): 2010-09-23 Andy Estes Reviewed by Darin Adler. REGRESSION (r61285): some Dashboard widgets are always invisible due to HTML parser changes. https://bugs.webkit.org/show_bug.cgi?id=46435 Enable pre-HTML5 parser quirks if Dashboard is in backward compatibility mode. * WebView/WebView.mm: (-[WebView _needsPreHTML5ParserQuirks]): Renamed from shouldUsePreHTML5ParserQuirks(). Return true if WebCore::Settings::usesDashboardCompatibilityMode() is true. (-[WebView _preferencesChangedNotification:]): (-[WebView _setDashboardBehavior:to:]): Enable pre-HTML5 parser quirks if Dashboard behavior is set to backward compatibility mode. 2010-09-23 Matthew Delaney Reviewed by Simon Fraser. Reduce minimum DOMTimer interval https://bugs.webkit.org/show_bug.cgi?id=45362 * WebView/WebView.mm: Updating set interval call to use Settings' static version inside one time init block. 2010-09-22 Andy Estes Reviewed by Darin Adler. REGRESSION (r61285): Microsoft Entourage 2008 does not invoke My Day window https://bugs.webkit.org/show_bug.cgi?id=46334 Microsoft My Day loads scripts using self-closing script tags, markup which is incompatible with the HTML5 parser. Enable parser quirks for this application. * WebView/WebView.mm: (shouldUsePreHTML5ParserQuirks): Return true if the application is Microsoft My Day and was linked against a version of WebKit prior to the introduction of the HTML5 parser. 2010-09-23 Nate Chapin Reviewed by Darin Fisher. Add hyperlink auditing settings (i.e., ). https://bugs.webkit.org/show_bug.cgi?id=30458 * WebView/WebPreferenceKeysPrivate.h: * WebView/WebPreferences.mm: (+[WebPreferences initialize]): (-[WebPreferences setMemoryInfoEnabled:]): (-[WebPreferences hyperlinkAuditingEnabled]): (-[WebPreferences setHyperlinkAuditingEnabled:]): * WebView/WebPreferencesPrivate.h: * WebView/WebView.mm: (-[WebView _preferencesChangedNotification:]): 2010-09-22 Alexey Proskuryakov Reviewed by Anders Carlsson. https://bugs.webkit.org/show_bug.cgi?id=43667 ASSERT failure in NetscapePluginInstanceProxy::disconnectStream Test: plugins/get-javascript-url.html * Plugins/Hosted/NetscapePluginInstanceProxy.mm: (WebKit::NetscapePluginInstanceProxy::evaluateJavaScript): Add the stream to m_streams, just like any other one. 2010-09-21 Darin Adler Reviewed by Anders Carlsson. Fix some Objective-C GC problems and use RetainPtr instead of HardRetain/Release https://bugs.webkit.org/show_bug.cgi?id=46220 * Misc/WebNSFileManagerExtras.m: (setMetaData): Use CFRelease instead of HardRelease. (-[NSFileManager _webkit_setMetadataURL:referrer:atPath:]): Use CFStringCreateCopy instead of -[NSObject copy] combined with HardRetainWithNSRelease. 2010-09-22 Balazs Kelemen Reviewed by Kenneth Rohde Christiansen. PluginStrategy should satisfy the needs of Qt https://bugs.webkit.org/show_bug.cgi?id=45857 No new functionality so no new tests. * WebCoreSupport/WebPlatformStrategies.h: * WebCoreSupport/WebPlatformStrategies.mm: (WebPlatformStrategies::getPluginInfo): 2010-09-22 Paul Knight Reviewed by Simon Fraser. -[WebView _scheduleCompositingLayerSync] should wake the run loop https://bugs.webkit.org/show_bug.cgi?id=46226 Call CFRunLoopWakeUp to make sure the run loop is not sleeping, which could delay layer painting. * WebView/WebView.mm: (-[WebView _scheduleCompositingLayerSync]): 2010-09-21 Andy Estes Reviewed by Darin Adler. REGRESSION (r61285): AIM 2.1.296: Code rendered as text in Welcome screen https://bugs.webkit.org/show_bug.cgi?id=46134 AIM clients linked against versions of WebKit prior to the introduction of the HTML5 parser contain markup incompatible with the new parser. Enable parser quirks in this case to remain compatible with these clients. * WebView/WebView.mm: (shouldUsePreHTML5ParserQuirks): Returns true if the embedding application is AIM and was linked against a version of WebKit prior to the introduction of the HTML5 parser, or if the WebKitPreHTML5ParserQuirks WebPreference is enabled. (-[WebView _preferencesChangedNotification:]): Call WebCore::Settings::setUsePreHTML5ParserQuirks(). 2010-09-21 Steve Block Reviewed by Jeremy Orlow. DeviceOrientationClient and DeviceMotionClient should have controllerDestroyed() methods https://bugs.webkit.org/show_bug.cgi?id=45891 Implements WebDeviceOrientationClient::deviceOrientationControllerDestroyed to delete the client. * WebCoreSupport/WebDeviceOrientationClient.h: * WebCoreSupport/WebDeviceOrientationClient.mm: (WebDeviceOrientationClient::deviceOrientationControllerDestroyed): 2010-09-20 Philippe Normand Reviewed by Eric Carlson. [GTK] enhanced context menu for media elements https://bugs.webkit.org/show_bug.cgi?id=45021 New localized strings for the media element context-menu. * WebCoreSupport/WebPlatformStrategies.h: * WebCoreSupport/WebPlatformStrategies.mm: (WebPlatformStrategies::contextMenuItemTagOpenVideoInNewWindow): (WebPlatformStrategies::contextMenuItemTagOpenAudioInNewWindow): (WebPlatformStrategies::contextMenuItemTagCopyVideoLinkToClipboard): (WebPlatformStrategies::contextMenuItemTagCopyAudioLinkToClipboard): (WebPlatformStrategies::contextMenuItemTagToggleMediaControls): (WebPlatformStrategies::contextMenuItemTagToggleMediaLoop): (WebPlatformStrategies::contextMenuItemTagEnterVideoFullscreen): (WebPlatformStrategies::contextMenuItemTagMediaPlay): (WebPlatformStrategies::contextMenuItemTagMediaPause): (WebPlatformStrategies::contextMenuItemTagMediaMute): 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 won't get a finger mouse pointer. * Plugins/WebHostedNetscapePluginView.mm: (-[WebNetscapePluginView handleMouseEntered:]): (-[WebNetscapePluginView handleMouseExited:]): Implement this behavior here, too. Also, out of process code didn't reset mouse pointer on mouse exit, which it needed to do. * WebView/WebHTMLView.mm: (needsCursorRectsSupportAtPoint): (setCursor): (resetCursorRects): Make sure that the same workaround we have for Web content also applies to Netscape plug-ins, as AppKit would reset the mouse pointer to arrow if given a chance. (+[WebHTMLViewPrivate initialize]): Renamed setCursorIMP on Leopard and higher to prevent confusion - the method we override is completely different. (-[WebHTMLView hitTest:]): Added a FIXME about a likely bug. 2010-02-19 Simon Fraser Reviewed by Dan Bernstein. Page contents missing from snapshot on Newsweek.com article Followup to avoid capturing compositing layers twice in snapshots. Add private methods to WebView to specify whether drawing the WebView into an image will include flattened compositing layers (the default behavior) or not. * WebView/WebFrame.mm: (-[WebFrame _drawRect:contentsOnly:]): Consult the WebView flag to see if we want flattening. * WebView/WebViewPrivate.h: New methods. * WebView/WebView.mm: Ditto. (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]): (-[WebView _setIncludesFlattenedCompositingLayersWhenDrawingToBitmap:]): (-[WebView _includesFlattenedCompositingLayersWhenDrawingToBitmap]): * WebView/WebViewData.h: New member variable. 2010-02-19 Alexey Proskuryakov Reviewed by Dan Bernstein. https://bugs.webkit.org/show_bug.cgi?id=35165 plugins/set-status.html fails on Windows bot * Plugins/Hosted/NetscapePluginInstanceProxy.mm: (WebKit::NetscapePluginInstanceProxy::status): * Plugins/WebNetscapePluginView.mm: (-[WebNetscapePluginView status:]): Match Windows port behavior (and also Firefox one, in a way) - pass null status messages as empty ones to chrome. 2010-02-18 Simon Fraser Reviewed by Dan Bernstein. Page contents missing from snapshot on Newsweek.com article Add logic to determine when painting via the software rendering path will give an equivalent result to the accelerated compositing presentation. This tests for the presence of 3D transforms. Also have -[WebFrame _drawRect:contentsOnly:] set the PaintBehaviorFlattenCompositingLayers paint behavior when painting into a bitmap context, so that snapshots contain composited layers. * WebView/WebFrame.mm: (-[WebFrame _drawRect:contentsOnly:]): Set the PaintBehaviorFlattenCompositingLayers flag when painting into a bitmap context. * WebView/WebView.mm: (-[WebView _isSoftwareRenderable]): Returns YES if all frames can be software-rendered. * WebView/WebViewPrivate.h: New _isSoftwareRenderable method. 2010-02-18 Alexey Proskuryakov Reviewed by Dan Bernstein. https://bugs.webkit.org/show_bug.cgi?id=35134 Crash when a plugin calls NPN_SetStatus(0) Test: plugins/set-status.html * Plugins/Hosted/NetscapePluginInstanceProxy.mm: (WebKit::NetscapePluginInstanceProxy::status): (WebKit::NetscapePluginInstanceProxy::loadURL): Added null checks for CFStringCreateWithCString arguments. 2010-02-17 Dmitry Titov Reviewed by David Levin, Darin Fisher, Simon Hausmann. When a live iframe element is moved between pages, it still depends on the old page. https://bugs.webkit.org/show_bug.cgi?id=34382 * WebCoreSupport/WebFrameLoaderClient.h: * WebCoreSupport/WebFrameLoaderClient.mm: Added empty implementation of a new virtual method. (WebFrameLoaderClient::didTransferChildFrameToNewDocument): 2010-02-17 Kent Tamura Reviewed by Eric Seidel. Introduces new Icon loading interface in order to support asynchronous loading. https://bugs.webkit.org/show_bug.cgi?id=32054 Add an empty implementation of ChromeClient::iconForFiles(). * WebCoreSupport/WebChromeClient.h: * WebCoreSupport/WebChromeClient.mm: (WebChromeClient::iconForFiles): 2010-02-17 Timothy Hatcher Add a way for WebView and its dependancies to be selectively included in WebKitStatistics leak tracking. By default WebView is not included and you need to subclass WebView and implement +isIncludedInWebKitStatistics to be included. rdar://problem/7567677&7572900 https://webkit.org/b/35045 Reviewed by Adam Roben. * WebView/WebDataSource.mm: (-[WebDataSource _initWithDocumentLoader:]): Increment WebDataSourceCount if the WebFrame is included in statistics. (-[WebDataSource dealloc]): Only --WebDataSourceCount if _private->includedInWebKitStatistics is YES. (-[WebDataSource finalize]): Ditto. * WebView/WebFrame.mm: (-[WebFrame _isIncludedInWebKitStatistics]): Return _private->includedInWebKitStatistics. (-[WebFrame _initWithWebFrameView:webView:]): Increment WebFrameCount if the WebView's class is included in statistics. (-[WebFrame dealloc]): Only --WebFrameCount if _private->includedInWebKitStatistics is YES. (-[WebFrame finalize]): Ditto. * WebView/WebFrameInternal.h: * WebView/WebFrameView.mm: (-[WebFrameView _setWebFrame:]): Increment WebFrameViewCount if the WebFrame is included in statistics. (-[WebFrameView initWithFrame:]): Move ++WebFrameViewCount from here since we don't know what WebFrame we belong to yet. (-[WebFrameView dealloc]): Only --WebFrameViewCount if _private->includedInWebKitStatistics is YES. (-[WebFrameView finalize]): Ditto. * WebView/WebHTMLRepresentation.mm: (-[WebHTMLRepresentation init]): Move ++WebHTMLRepresentationCount from here since we don't know what WebFrame we belong to yet. (-[WebHTMLRepresentation dealloc]): Only --WebHTMLRepresentationCount if _private->includedInWebKitStatistics is YES. (-[WebHTMLRepresentation finalize]): Ditto. (-[WebHTMLRepresentation setDataSource:]): Increment WebHTMLRepresentationCount if the WebFrame of the dataSource is included in statistics. * WebView/WebView.mm: (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]): (-[WebView dealloc]): (+[WebView shouldIncludeInWebKitStatistics]): Return NO, so any WebView wont be included. Subclasses that care can return YES to be included. * WebView/WebViewInternal.h: 2010-02-16 Darin Adler Reviewed by Sam Weinig. Generalize delayed plug-in start for background tabs for use for other media https://bugs.webkit.org/show_bug.cgi?id=34981 * WebView/WebHTMLView.mm: (-[WebHTMLView viewWillMoveToWindow:]): Added comment. (-[WebHTMLView viewDidMoveToWindow]): Ditto. * WebView/WebView.mm: (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]): Call setCanStartMedia right away so that if this view is not in a window, it will not start any media. (-[WebView viewWillMoveToWindow:]): Call setCanStartMedia(false) when moving to a window of nil. (-[WebView viewDidMoveToWindow]): Call setCanStartMedia(true) when moved to a window that is non-nil. 2010-02-16 Eric Carlson Reviewed by Simon Fraser. https://bugs.webkit.org/show_bug.cgi?id=34988 WebHTMLView.mm has two -willRemoveSubview: methods * WebView/WebHTMLView.mm: (-[WebHTMLView willRemoveSubview:]): Consolidate the two copies of this method. 2010-02-16 Alexey Proskuryakov Reviewed by Geoffrey Garen and Kevin Decker. https://bugs.webkit.org/show_bug.cgi?id=34989 Cursor disappears on scroll bars that are over plugin content This fixes event dispatch for both Cocoa and Carbon event models (mouseEntered/mouseExited in the former case, and adjustCursor in the latter). * Plugins/Hosted/WebHostedNetscapePluginView.mm: (-[WebHostedNetscapePluginView handleMouseEntered:]): (-[WebHostedNetscapePluginView handleMouseExited:]): * Plugins/WebBaseNetscapePluginView.h: * Plugins/WebBaseNetscapePluginView.mm: (-[WebBaseNetscapePluginView handleMouseEntered:]): (-[WebBaseNetscapePluginView handleMouseExited:]): * Plugins/WebNetscapePluginView.h: * Plugins/WebNetscapePluginView.mm: (-[WebNetscapePluginView handleMouseEntered:]): (-[WebNetscapePluginView handleMouseExited:]): AppKit cannot reliably dispatch events for overlapping views. We are now asking WebCore to notify plug-in views of mouse entered/exited as part of DOM event dispatch. * WebCoreSupport/WebFrameLoaderClient.mm: (NetscapePluginWidget::handleEvent): Besides mouse moved, dispatch plugin mouse entered/exit events in HTMLPlugInElement default event handler. Other mouse events are passed down by EventHandler. 2010-02-15 Alexey Proskuryakov More build fixing (for what is actually a 64-bit failure, as 32-bit apparently includes headers that aren't included in 64-bit). * Plugins/Hosted/NetscapePluginInstanceProxy.h: * Plugins/Hosted/NetscapePluginInstanceProxy.mm: (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::contains): (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::get): Move inline functions to .cpp; also made the class Noncopyable. 2010-02-15 Alexey Proskuryakov Mac release build fix attempt. * Plugins/Hosted/NetscapePluginInstanceProxy.h: * Plugins/Hosted/NetscapePluginInstanceProxy.mm: (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::~LocalObjectMap): Implement destructor in .cpp file, where necessary headers are already included. 2010-02-12 Alexey Proskuryakov Reviewed by Kevin Decker. Browser objects identity is not preserved by Safari Out of process part. To avoid excessive IPC, plugin process doesn't send each NPObject release/retain call to Safari. It only sends one when the last one is removed, and it can destroy the proxy NPObject. However, the browser may be sending the same object out to plug-in as a function call argument at the same time - neither side can know what the other one is up to. The solution is to make the "destroying object" call return a boolean result, making it possible for the browser to make plugin host keep the proxy with zero refcount for a little longer. * Plugins/Hosted/NetscapePluginHostProxy.mm: (WKPCForgetBrowserObject): This function (that used to be named ReleaseObject) is only called when plug-in releases all of its references, so renamed it. Its boolean result is returned as call success or failure. * Plugins/Hosted/NetscapePluginInstanceProxy.h: (WebKit::NetscapePluginInstanceProxy::LocalObjectMap): Made the numeric ID to JSObject map two-way. * Plugins/Hosted/NetscapePluginInstanceProxy.mm: (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::idForObject): This method is tricky in that it creates objects with refcount of 1, but doesn't increase refcount when returning found objects. This extra count accounts for the "reference" kept by plugin process. (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::retain): Only retaining for the duration of calls out to plug-in, which means that refcount is almost always equal to 1. Note that we can't use "++" here, due to how std::pair works! (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::release): Ditto. (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::clear): Clear all references when stopping plug-in. (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::forget): Like release(), but only functional when recount is 1 (meaning that the object is not being sent out to plug-in at the moment). (WebKit::NetscapePluginInstanceProxy::NetscapePluginInstanceProxy): Updated for other changes. (WebKit::NetscapePluginInstanceProxy::cleanup): Ditto. (WebKit::NetscapePluginInstanceProxy::getWindowNPObject): Ditto. (WebKit::NetscapePluginInstanceProxy::getPluginElementNPObject): Ditto. (WebKit::NetscapePluginInstanceProxy::forgetBrowserObjectID): Ditto. (WebKit::NetscapePluginInstanceProxy::evaluate): Ditto. (WebKit::NetscapePluginInstanceProxy::invoke): Ditto. (WebKit::NetscapePluginInstanceProxy::invokeDefault): Ditto. (WebKit::NetscapePluginInstanceProxy::construct): Ditto. (WebKit::NetscapePluginInstanceProxy::getProperty): Ditto. (WebKit::NetscapePluginInstanceProxy::setProperty): Ditto. (WebKit::NetscapePluginInstanceProxy::removeProperty): Ditto. (WebKit::NetscapePluginInstanceProxy::hasProperty): Ditto. (WebKit::NetscapePluginInstanceProxy::hasMethod): Ditto. (WebKit::NetscapePluginInstanceProxy::enumerate): Ditto. (WebKit::NetscapePluginInstanceProxy::addValueToArray): Ditto. (WebKit::NetscapePluginInstanceProxy::demarshalValueFromArray): Ditto. (WebKit::NetscapePluginInstanceProxy::retainLocalObject): Helper for calling retain when making calls out to plug-in. No-op for objects that aren't wrapped to be sent (i.e. for objects wrapping ProxyInstance wrappers for plug-in objects being sent bak). (WebKit::NetscapePluginInstanceProxy::releaseLocalObject): Ditto. * Plugins/Hosted/ProxyInstance.mm: (WebKit::ProxyInstance::invoke): Retain/release arguments during call. (WebKit::ProxyInstance::setFieldValue): Ditto. * Plugins/Hosted/WebKitPluginClient.defs: Renamed PCReleaseObject to PCForgetBrowserObject. 2010-02-12 Darin Adler Reviewed by Sam Weinig. Removed unneeded custom implementation of isDescendantOf. * Plugins/WebBaseNetscapePluginView.mm: (-[WebBaseNetscapePluginView shouldClipOutPlugin]): Use the -[NSView isDescendantOf:] method instead of our own method named superviewsHaveSuperviews. 2010-02-12 Dan Bernstein Reviewed by Darin Adler. REGRESSION (r48586): Loading an HTML page causes PDFKit to be loaded * WebView/WebPDFDocumentExtras.h: Removed the category declaration and addWebPDFDocumentExtras(). Declare allScriptsInPDFDocument(). * WebView/WebPDFDocumentExtras.mm: (allScriptsInPDFDocument): Changed the -_web_allScripts method into this function. * WebView/WebPDFRepresentation.mm: Removed +initialize. (-[WebPDFRepresentation finishedLoadingWithDataSource:]): Use allScriptsInPDFDocument() instead of -_web_allScripts. 2010-02-10 Geoffrey Garen Reviewed by Oliver Hunt. Exported some new JavaScript heap introspection. * Misc/WebCoreStatistics.h: * Misc/WebCoreStatistics.mm: (+[WebCoreStatistics javaScriptObjectTypeCounts]): Just like javaScriptProtectedObjectTypeCounts, except this function enumerates all live objects, not just protected objects. 2010-02-08 Maciej Stachowiak Reviewed by Cameron Zwarich. Restore ENABLE_RUBY flag so vendors can ship with Ruby disabled if they choose. https://bugs.webkit.org/show_bug.cgi?id=34698 * Configurations/FeatureDefines.xcconfig: 2010-02-09 Alexey Proskuryakov Reviewed by Geoffrey Garen. https://bugs.webkit.org/show_bug.cgi?id=34490 WebCore::ImageEventSender::dispatchPendingEvents() crashes in certain conditions * ForwardingHeaders/wtf/ValueCheck.h: Added. 2010-02-10 Jesus Sanchez-Palencia Reviewed by Kenneth Rohde Christiansen. Support frameset flattening https://bugs.webkit.org/show_bug.cgi?id=32717 Add support for enabling/disabling FrameSet Flattening on the Mac port. * WebView/WebPreferenceKeysPrivate.h: * WebView/WebPreferences.mm: (+[WebPreferences initialize]): (-[WebPreferences isFrameSetFlatteningEnabled]): (-[WebPreferences setFrameSetFlatteningEnabled:]): * WebView/WebPreferencesPrivate.h: * WebView/WebView.mm: (-[WebView _preferencesChangedNotification:]): 2010-02-09 Alexey Proskuryakov Reviewed by Anders Carlsson. https://bugs.webkit.org/show_bug.cgi?id=34771 A stray mouse moved event is sent to plug-ins after mouse exit * WebCoreSupport/WebFrameLoaderClient.mm: (NetscapePluginWidget::handleEvent): A mouseout DOM event is dispatched while handling NSMouseMoved - but we shouldn't be sending a mouse moved event to plug-ins at this point. 2010-02-09 Shinichiro Hamaji Reviewed by Darin Adler. Provide a way to get total number of pages to be printed https://bugs.webkit.org/show_bug.cgi?id=34699 * Misc/WebCoreStatistics.h: * Misc/WebCoreStatistics.mm: (-[WebFrame numberOfPages:pageWidthInPixels:]): 2010-02-08 Alexey Proskuryakov Reviewed by Darin Adler. https://bugs.webkit.org/show_bug.cgi?id=34727 Assertion crashes and freezes when plug-in property access results in an exception * Plugins/Hosted/WebKitPluginClient.defs: Made PCSetProperty and PCRemoveProperty async. A plug-in can call back whil processing this call (e.g. for NPN_SetException), so we need to listen for messages while waiting for reply. * Plugins/Hosted/NetscapePluginHostProxy.mm: (WKPCEvaluate): If there is no instance proxy, return KERN_FAILURE. This improves consistency between method implementations, and leaves us with one less IPC call to make in failure case (returning false with KERN_SUCCESS and returning KERN_FAILURE looks the same from plugin host code). (WKPCInvoke): Ditto. (WKPCInvokeDefault): Ditto. (WKPCGetProperty): Ditto. (WKPCSetProperty): Send a reply once done. (WKPCRemoveProperty): Ditto. (WKPCHasProperty): If there is no instance proxy, return KERN_FAILURE. (WKPCHasMethod): Ditto. (WKPCEnumerate): Ditto. 2010-02-08 Alexey Proskuryakov Reviewed by Anders Carlsson. OOP: Support NPN_SetException Tested by plugins/netscape-throw-exception.html (removed it from skipped list). * Plugins/Hosted/NetscapePluginHostProxy.mm: (WKPCSetException): * Plugins/Hosted/NetscapePluginInstanceProxy.h: * Plugins/Hosted/NetscapePluginInstanceProxy.mm: (WebKit::globalExceptionString): (WebKit::NetscapePluginInstanceProxy::setGlobalException): (WebKit::NetscapePluginInstanceProxy::moveGlobalExceptionToExecState): * Plugins/Hosted/ProxyInstance.mm: (WebKit::ProxyInstance::invoke): (WebKit::ProxyInstance::getPropertyNames): (WebKit::ProxyInstance::fieldValue): (WebKit::ProxyInstance::setFieldValue): * Plugins/Hosted/WebKitPluginClient.defs: Route exception string to a global that's checked after calling into plug-in (just like in in-process case). 2010-02-05 Kevin Decker Reviewed by Mark Rowe. https://bugs.webkit.org/show_bug.cgi?id=34661 REGRESSION (Safari 4.0-> Safari 4.0.4): NPP_SetWindow no longer sets a clipRect of (0,0,0,0) when it becomes hidden * Plugins/Hosted/WebHostedNetscapePluginView.mm: (-[WebHostedNetscapePluginView updateAndSetWindow]): When clipping out NPDrawingModelCoreAnimation plug-ins, provide a zero'd out clipRect. * Plugins/WebBaseNetscapePluginView.h: Moved superviewsHaveSuperviews to the base class. * Plugins/WebBaseNetscapePluginView.mm: (-[WebBaseNetscapePluginView superviewsHaveSuperviews]): Added to the base class; extracted from WebNetscapePluginView. (-[WebBaseNetscapePluginView shouldClipOutPlugin]): Added new method with code extracted from WebNetscapePluginView. * Plugins/WebNetscapePluginView.mm: (-[WebNetscapePluginView saveAndSetNewPortStateForUpdate:]): When clipping out NPDrawingModelCoreAnimation plug-ins, provide a zero'd out clipRect. 2010-02-04 Mark Rowe Rubber-stamped by Dan Bernstein. Fix the ability to #include . * MigrateHeaders.make: Mark DOMBlob.h as a public header since the already-public DOMFile.h depends on it. 2010-02-04 John Sullivan https://bugs.webkit.org/show_bug.cgi?id=34611 WebLocalizedString() could use an assertion that it is being called on the main thread Reviewed by Tim Hatcher. * Misc/WebLocalizableStrings.m: Removed. * Misc/WebLocalizableStrings.mm: Copied from mac/Misc/WebLocalizableStrings.m. Renamed to use .mm extension so it can include a C++ header. (WebLocalizedString): Added an assertion that this is being called on the main thread. 2010-02-04 Dan Bernstein Reviewed by Simon Fraser. REGRESSION (r53718): When scrolling a tall window by page, the overlap between pages is too big https://bugs.webkit.org/show_bug.cgi?id=34371 * WebView/WebFrameView.mm: (-[WebFrameView _verticalPageScrollDistance]): Use Scrollbar methods instead of constants, and cap the scroll distance. (-[WebFrameView initWithFrame:]): Use Scrollbar::pixelsPerLineStep() instead of cScrollbarPixelsPerLineStep. (-[WebFrameView _horizontalPageScrollDistance]):Use Scrollbar methods instead of constants, and cap the scroll distance. 2010-02-01 Shinichiro Hamaji Reviewed by Eric Seidel. Provide a way to get page number with layoutTestController https://bugs.webkit.org/show_bug.cgi?id=33840 * Misc/WebCoreStatistics.h: * Misc/WebCoreStatistics.mm: (-[WebFrame pageNumberForElement:element:pageWidth:]): 2010-01-29 Gavin Barraclough Reviewed by Sam Weinig + Oliver Hunt. Bug 34346 - With JSC bindings, make processingUserGesture work with events in Isolated Worlds Pass processeing user gensture flag to media play/pause methods. * WebView/WebVideoFullscreenHUDWindowController.mm: (-[WebVideoFullscreenHUDWindowController setPlaying:]): 2010-02-01 Dan Bernstein Reviewed by Anders Carlsson. Crash at NetscapePlugInStreamLoader::didReceiveResponse() The crash was caused by having two streams with a streamID of 1. * Plugins/Hosted/NetscapePluginInstanceProxy.mm: (WebKit::NetscapePluginInstanceProxy::NetscapePluginInstanceProxy): Fixed a typo. Now correctly increments m_currentURLRequestID to account for the manual stream. (WebKit::NetscapePluginInstanceProxy::disconnectStream): If the stream is the manual stream, null it out instead of trying to remove it from the map. Added an assertion. (WebKit::NetscapePluginInstanceProxy::loadRequest): Added an assertion. == Rolled over to ChangeLog-2010-01-29 ==