2010-08-02 Brady Eidson Reviewed by Anders Carlsson. Add VisitedLinkStrategy for each platform to implement https://bugs.webkit.org/show_bug.cgi?id=43393 * WebCoreSupport/WebPlatformStrategies.h: * WebCoreSupport/WebPlatformStrategies.mm: (WebPlatformStrategies::createVisitedLinkStrategy): (WebPlatformStrategies::isLinkVisited): Call back into PageGroup's visited links. (WebPlatformStrategies::addVisitedLink): Ditto. 2010-07-27 Luiz Agostini Reviewed by Darin Fisher. PopupMenu refactoring in preparation to WebKit2 https://bugs.webkit.org/show_bug.cgi?id=42592 As ChromeClient was made responsible for providing PopupMenu and SearchPopupMenu instances, concrete classes that inherit from ChromeClient needed to be changed to implement the new methods. * WebCoreSupport/WebChromeClient.h: * WebCoreSupport/WebChromeClient.mm: (WebChromeClient::selectItemWritingDirectionIsNatural): (WebChromeClient::createPopupMenu): (WebChromeClient::createSearchPopupMenu): 2010-08-02 Jeremy Orlow Speculative revert of 64425 due to Chromium instability https://bugs.webkit.org/show_bug.cgi?id=43347 * WebCoreSupport/WebChromeClient.h: * WebCoreSupport/WebChromeClient.mm: 2010-07-27 Luiz Agostini Reviewed by Darin Fisher. PopupMenu refactoring in preparation to WebKit2 https://bugs.webkit.org/show_bug.cgi?id=42592 As ChromeClient was made responsible for providing PopupMenu and SearchPopupMenu instances, concrete classes that inherit from ChromeClient needed to be changed to implement the new methods. * WebCoreSupport/WebChromeClient.h: * WebCoreSupport/WebChromeClient.mm: (WebChromeClient::selectItemWritingDirectionIsNatural): (WebChromeClient::createPopupMenu): (WebChromeClient::createSearchPopupMenu): 2010-07-31 Sheriff Bot Unreviewed, rolling out r64422. http://trac.webkit.org/changeset/64422 https://bugs.webkit.org/show_bug.cgi?id=43304 Build fixes are needed for Snow Leopard and Windows. (Requested by lca on #webkit). * WebCoreSupport/WebChromeClient.h: * WebCoreSupport/WebChromeClient.mm: 2010-07-27 Luiz Agostini Reviewed by Darin Fisher. PopupMenu refactoring in preparation to WebKit2 https://bugs.webkit.org/show_bug.cgi?id=42592 As ChromeClient was made responsible for providing PopupMenu and SearchPopupMenu instances, concrete classes that inherit from ChromeClient needed to be changed to implement the new methods. * WebCoreSupport/WebChromeClient.h: * WebCoreSupport/WebChromeClient.mm: (WebChromeClient::selectItemWritingDirectionIsNatural): (WebChromeClient::createPopupMenu): (WebChromeClient::createSearchPopupMenu): 2010-07-31 David Kilzer Simplify variables in *.xcconfig files after adding iOS support Reviewed by Darin Adler. * Configurations/WebKit.xcconfig: Extracted PRODUCTION_FRAMEWORKS_DIR and PRODUCTION_ROOT variables. 2010-07-30 Dan Bernstein Reviewed by Darin Adler. Short documents may print a second blank page https://bugs.webkit.org/show_bug.cgi?id=43271 * WebView/WebHTMLView.mm: (-[WebHTMLView _web_setPrintingModeRecursive]): Updated for additional height parameter to _setPrinting:minimumPageWidth:height:maximumPageWidth:adjustViewSize:. (-[WebHTMLView _web_clearPrintingModeRecursive]): Ditto. (-[WebHTMLView _web_setPrintingModeRecursiveAndAdjustViewSize]): Ditto. (-[WebHTMLView _beginPrintModeWithPageWidth:height:shrinkToFit:]): Added height parameter, which is scaled and passed on to _setPrinting:minimumPageWidth:height:maximumPageWidth:adjustViewSize:. (-[WebHTMLView _endPrintMode]): Updated for additional height parameter to _setPrinting:minimumPageWidth:height:maximumPageWidth:adjustViewSize:. (-[WebHTMLView layoutToMinimumPageWidth:height:maximumPageWidth:adjustingViewSize:]): Added height parameter, which is passed on to FrameView::forceLayoutForPagination(). (-[WebHTMLView layout]): Updated for additional height parameter. (-[WebHTMLView _setPrinting:minimumPageWidth:height:maximumPageWidth:adjustViewSize:]): Added height parameter, which is passed on to -layoutToMinimumPageWidth:height:maximumPageWidth:adjustViewSize:. (-[WebHTMLView adjustPageHeightNew:top:bottom:limit:]): Updated for additional height parameter. (-[WebHTMLView setPageWidthForPrinting:]): Ditto. (-[WebHTMLView knowsPageRange:]): Pass the available height on the page on to _setPrinting:minimumPageWidth:height:maximumPageWidth:adjustViewSize. * WebView/WebHTMLViewPrivate.h: 2010-07-30 Joseph Pecoraro Fix for tests that broke after r64400. Tracking a more ideal solution in https://bugs.webkit.org/show_bug.cgi?id=40627 Switch the interface back to (unsigned long long), and move the WebDatabaseSecurityOrigin implementation up into WebSecurityOrigin. The subclasses' implementations were not getting called. * Storage/WebDatabaseSecurityOrigin.mm: * WebCoreSupport/WebApplicationCacheSecurityOrigin.mm: (-[WebApplicationCacheSecurityOrigin quota]): (-[WebApplicationCacheSecurityOrigin setQuota:]): * WebCoreSupport/WebSecurityOrigin.mm: (-[WebSecurityOrigin usage]): (-[WebSecurityOrigin quota]): (-[WebSecurityOrigin setQuota:]): * WebCoreSupport/WebSecurityOriginPrivate.h: 2010-07-30 Joseph Pecoraro Reviewed by David Kilzer. Limit ApplicationCache Total and Per-Origin Storage Capacity (Quotas) https://bugs.webkit.org/show_bug.cgi?id=40627 Part 4 - Client Notification when the Quota is Reached Notify the WebKit client when the per-origin quota is reached via a delegate method reachedApplicationCacheOriginQuota. Refactor the WebSecurityOrigin class to be generic enough to allow quota management of both Databases or Application Caches via subclasses. * Storage/WebDatabaseSecurityOrigin.h: Added. * Storage/WebDatabaseSecurityOrigin.mm: Added. (-[WebDatabaseSecurityOrigin quota]): (-[WebDatabaseSecurityOrigin setQuota:]): * WebCoreSupport/WebApplicationCacheSecurityOrigin.h: Added. * WebCoreSupport/WebApplicationCacheSecurityOrigin.mm: Added. (-[WebApplicationCacheSecurityOrigin quota]): (-[WebApplicationCacheSecurityOrigin setQuota:]): * Storage/WebSecurityOrigin.mm: Removed. (Moved to WebCoreSupport) * Storage/WebSecurityOriginPrivate.h: Removed. (Moved to WebCoreSupport) * WebCoreSupport/WebSecurityOrigin.mm: Added. (-[WebSecurityOrigin usage]): to be implemented by subclasses. (-[WebSecurityOrigin quota]): to be implemented by subclasses. (-[WebSecurityOrigin setQuota:]): to be implemented by subclasses. * WebCoreSupport/WebSecurityOriginInternal.h: Renamed from WebKit/mac/Storage/WebSecurityOriginInternal.h. * WebCoreSupport/WebSecurityOriginPrivate.h: Added. Turn the notification into a WebUI Delegate to call. Following the example of Databases. * DefaultDelegates/WebDefaultUIDelegate.m: (-[WebDefaultUIDelegate webView:exceededApplicationCacheOriginQuotaForSecurityOrigin:]): * WebCoreSupport/WebChromeClient.h: * WebCoreSupport/WebChromeClient.mm: (WebChromeClient::exceededDatabaseQuota): use the Databases Security Origin subclass. (WebChromeClient::reachedApplicationCacheOriginQuota): use the Application Cache Security Origin subclass. * WebView/WebUIDelegatePrivate.h: 2010-07-30 Joseph Pecoraro Reviewed by David Kilzer. Limit ApplicationCache Total and Per-Origin Storage Capacity (Quotas) https://bugs.webkit.org/show_bug.cgi?id=40627 Part 1 - Add Total and Per-Origin Quota Preferences. Allow the application cache total size to be a preference, and add a new preference for the default per-origin quota. Storage quotas were int64_t (long long). Boilerplate for these types added for consistency. * Misc/WebNSDictionaryExtras.h: * Misc/WebNSDictionaryExtras.m: (-[NSMutableDictionary _webkit_setLongLong:forKey:]): * WebCoreSupport/WebApplicationCache.h: setters and accessors for WebCore's cacheStorage. * WebCoreSupport/WebApplicationCache.mm: (+[WebApplicationCache maximumSize:]): (+[WebApplicationCache setMaximumSize:]): (+[WebApplicationCache defaultOriginQuota]): (+[WebApplicationCache setDefaultOriginQuota:]): * WebView/WebPreferenceKeysPrivate.h: * WebView/WebPreferences.mm: (+[WebPreferences initialize]): defaults to noQuota for both preferences. (-[WebPreferences _longLongValueForKey:]): (-[WebPreferences _setLongLongValue:forKey:]): (-[WebPreferences applicationCacheTotalQuota]): (-[WebPreferences setApplicationCacheTotalQuota:]): (-[WebPreferences applicationCacheDefaultOriginQuota]): (-[WebPreferences setApplicationCacheDefaultOriginQuota:]): * WebView/WebPreferencesPrivate.h: * WebView/WebView.mm: (-[WebView _preferencesChangedNotification:]): respect updates to the preferences. 2010-07-30 Andy Estes Reviewed by David Kilzer. Add Xcode support for compiling WebKit against iOS SDKs. https://bugs.webkit.org/show_bug.cgi?id=42796 * Configurations/Base.xcconfig: * Configurations/DebugRelease.xcconfig: * Configurations/FeatureDefines.xcconfig: * Configurations/Version.xcconfig: * Configurations/WebKit.xcconfig: 2010-07-26 Steve Block Reviewed by Jeremy Orlow. Page clients should be passed to Page constructor via structure of pointers https://bugs.webkit.org/show_bug.cgi?id=42834 * WebView/WebView.mm: (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]): 2010-07-27 Kinuko Yasuda Reviewed by Ojan Vafai. Add FILE_SYSTEM build flag for FileSystem API https://bugs.webkit.org/show_bug.cgi?id=42915 * Configurations/FeatureDefines.xcconfig: 2010-07-27 Steve Block Reviewed by Jeremy Orlow. Client-based Geolocation does not pass enableHighAccuracy option to controller and client https://bugs.webkit.org/show_bug.cgi?id=40374 Stub out setEnableHighAccuracy method for the Mac port. * WebCoreSupport/WebGeolocationControllerClient.h: (WebGeolocationControllerClient::setEnableHighAccuracy): 2010-07-22 Sam Weinig Reviewed by Maciej Stachowiak. Fix for Send textDidChangeInTextField delegate callback only in response to typing or other forms of user text input. The function name no longer perfectly matches the behavior, but I didn't want to break any existing clients. Maybe we should migrate to a new function name eventually * WebCoreSupport/WebEditorClient.mm: (WebEditorClient::textDidChangeInTextField): 2010-07-22 Sam Weinig Reviewed by Anders Carlsson. Patch for https://bugs.webkit.org/show_bug.cgi?id=42836 Add localized strings stubs for WebKit2. - Convert WebKit (mac) to use a LocalizationStrategy rather than the WebCoreViewFactory for localized strings. Gets us below 200 tests failing in WebKitTestRunner. * WebCoreSupport/WebContextMenuClient.mm: (fixMenusReceivedFromOldClients): Use LocalizedStrings rather than the factory. * WebCoreSupport/WebPlatformStrategies.h: * WebCoreSupport/WebPlatformStrategies.mm: * WebCoreSupport/WebViewFactory.mm: 2010-07-21 Brady Eidson Reviewed by Geoffrey Garen. Break out "scheme registration" functionality from SecurityOrigin to a SchemeRegistry https://bugs.webkit.org/show_bug.cgi?id=42783 * WebView/WebView.mm: (+[WebView _registerURLSchemeAsSecure:]): (+[WebView registerURLSchemeAsLocal:]): 2010-07-21 Simon Fraser Reviewed by Anders Carlsson. Composited layers don't scroll in WebKit2 https://bugs.webkit.org/show_bug.cgi?id=42771 Prep work: FrameView::scrollPositionChanged() sounds like a generic "did scroll" bottleneck, but this is deceiving. It's only every called on one platform (Mac) when the NSScrollView gets scrolled, so rename it to FrameView::scrollPositionChangedViaPlatformWidget(). * WebView/WebHTMLView.mm: (-[WebHTMLView _frameOrBoundsChanged]): 2010-07-21 Eric Carlson Reviewed by Simon Fraser. Update plug-in proxy backed