2012-06-14 Jia Pu Mark text with text alternative with blue underline. https://bugs.webkit.org/show_bug.cgi?id=83047 Reviewed by Enrica Casucci. Changes in WebKit include implementation of new functions declared in AlternativeTextClient, and logic for calling Editor::insertDictatedText() instead of Editor::insertText() when there's alternatives attached to the input string. * WebCoreSupport/CorrectionPanel.mm: (correctionIndicatorType): (CorrectionPanel::handleAcceptedReplacement): * WebCoreSupport/WebAlternativeTextClient.h: (WebAlternativeTextClient): * WebCoreSupport/WebAlternativeTextClient.mm: (WebAlternativeTextClient::showCorrectionAlternative): (WebAlternativeTextClient::dismissAlternative): (WebAlternativeTextClient::dismissAlternativeSoon): (WebAlternativeTextClient::recordAutocorrectionResponse): (WebAlternativeTextClient::removeDictationAlternatives): (WebAlternativeTextClient::showDictationAlternativeUI): (WebAlternativeTextClient::dismissDictationAlternativeUI): (WebAlternativeTextClient::dictationAlternatives): * WebView/WebHTMLView.mm: (-[WebHTMLView validAttributesForMarkedText]): (-[WebHTMLView insertText:]): * WebView/WebView.mm: (-[WebView handleAcceptedAlternativeText:]): (-[WebView _getWebCoreDictationAlternatives:fromTextAlternatives:]): (-[WebView _showDictationAlternativeUI:WebCore::forDictationContext:]): (-[WebView _dismissDictationAlternativeUI]): (-[WebView _removeDictationAlternatives:]): (-[WebView _dictationAlternatives:]): * WebView/WebViewData.h: * WebView/WebViewData.mm: (-[WebViewPrivate init]): * WebView/WebViewInternal.h: * WebView/WebViewPrivate.h: 2012-06-11 Alexis Menard [CSS3 Backgrounds and Borders] Protect box-decoration-break behind a feature flag. https://bugs.webkit.org/show_bug.cgi?id=88804 Reviewed by Tony Chang. Protect box-decoration-break behind a feature flag enabled by default. * Configurations/FeatureDefines.xcconfig: 2012-06-11 Sam Weinig Remove support for disconnected/excluded from search frames, they are not used by Safari anymore https://bugs.webkit.org/show_bug.cgi?id=88723 Reviewed by Dan Bernstein. * WebView/WebFrame.mm: * WebView/WebFramePrivate.h: Remove -[WebFrame _setIsDisconnected:] and -[WebFrame _setExcludeFromTextSearch:] 2012-06-10 Sheriff Bot Unreviewed, rolling out r119955. http://trac.webkit.org/changeset/119955 https://bugs.webkit.org/show_bug.cgi?id=88758 Breaks Chromium compile - Chromium depends on removed API (Requested by dominicc on #webkit). * WebView/WebFrame.mm: (-[WebFrame _setIsDisconnected:]): (-[WebFrame _setExcludeFromTextSearch:]): * WebView/WebFramePrivate.h: 2012-06-10 Sam Weinig Remove support for disconnected/excluded from search frames, they are not used by Safari anymore https://bugs.webkit.org/show_bug.cgi?id=88723 Reviewed by Dan Bernstein. * WebView/WebFrame.mm: * WebView/WebFramePrivate.h: Remove -[WebFrame _setIsDisconnected:] and -[WebFrame _setExcludeFromTextSearch:] 2012-06-09 Sukolsak Sakshuwong Add UNDO_MANAGER flag https://bugs.webkit.org/show_bug.cgi?id=87908 Reviewed by Tony Chang. * Configurations/FeatureDefines.xcconfig: 2012-06-07 Kentaro Hara Reduce Node object size from 72 byte to 64 byte https://bugs.webkit.org/show_bug.cgi?id=88528 Reviewed by Ryosuke Niwa. Added a symbol for callRemovedLastRef(). * WebKit.order: 2012-06-06 Andy Estes Wrap uppercaseWord, lowercaseWord, and capitalizeWord with USE(APPKIT) https://bugs.webkit.org/show_bug.cgi?id=88504 Reviewed by Dan Bernstein. uppercaseWord, lowercaseWord, and capitalizeWord are methods declared by NSResponder that subclasses are expected to implement. WebKit should only support these implementations on platforms that use AppKit. * WebCoreSupport/WebEditorClient.h: * WebCoreSupport/WebEditorClient.mm: 2012-06-05 Anders Carlsson Build fix. * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::createPlugin): The error constant has been renamed. 2012-06-05 Anders Carlsson Rename a plug-in loading error constant https://bugs.webkit.org/show_bug.cgi?id=88381 Reviewed by Sam Weinig. * Misc/WebKitErrors.h: 2012-06-05 Dongwoo Im Add 'isProtocolHandlerRegistered' and 'unregisterProtocolHandler'. https://bugs.webkit.org/show_bug.cgi?id=73176 Reviewed by Adam Barth. Two more APIs are added in Custom Scheme Handler specification. http://dev.w3.org/html5/spec/Overview.html#custom-handlers One is 'isProtocolHandlerRegistered' to query whether the specific URL is registered or not. The other is 'unregisterProtocolHandler' to remove the registered URL. * Configurations/FeatureDefines.xcconfig: Add a macro 'ENABLE_CUSTOM_SCHEME_HANDLER'. 2012-06-04 David Kilzer BUILD FIX: FeatureDefines.xcconfig should match across projects * Configurations/FeatureDefines.xcconfig: - Fix sort order of ENABLE_CSS3_FLEXBOX. - Fix typo in ENABLE_FONT_BOOSTING. - Add missing ENABLE_LEGACY_CSS_VENDOR_PREFIXES. 2012-06-02 Yongjun Zhang loadRequest should check for empty URLs. https://bugs.webkit.org/show_bug.cgi?id=88154 In [WebFrame loadRequest], if the url is invalid and not nil, we transform it to file: url. However, WebKit client could send down an empty URL that makes us transform it to file: url as well. We should skip that as we did for nil URLs. Reviewed by Brady Eidson. * WebView/WebFrame.mm: (-[WebFrame loadRequest:]): 2012-06-01 Michael Saboff WebFrame::_stringByEvaluatingJavaScriptFromString methods don't handle nil string https://bugs.webkit.org/show_bug.cgi?id=88109 Reviewed by Geoffrey Garen. Added short circuit return when the NSString to evaluate is nil. * WebView/WebFrame.mm: (-[WebFrame _stringByEvaluatingJavaScriptFromString:forceUserGesture:]): (-[WebFrame _stringByEvaluatingJavaScriptFromString:withGlobalObject:inScriptWorld:]): 2012-05-31 Hajime Morrita REGRESSION(r117572): editing/spelling/spellcheck-async-remove-frame.html crashes on Mac https://bugs.webkit.org/show_bug.cgi?id=86859 Reviewed by Ryosuke Niwa. * WebCoreSupport/WebEditorClient.h: * WebCoreSupport/WebEditorClient.mm: (-[WebEditorSpellCheckResponder initWithClient:sequence:results:]): (-[WebEditorSpellCheckResponder perform]): (WebEditorClient::didCheckSucceeded): (WebEditorClient::requestCheckingOfString): 2012-05-31 Andy Estes Disentangle code that relies on USE(AUTOMATIC_TEXT_REPLACEMENT) from that which merely relies on PLATFORM(MAC) https://bugs.webkit.org/show_bug.cgi?id=87933 Reviewed by Dan Bernstein. * WebCoreSupport/WebEditorClient.h: * WebCoreSupport/WebEditorClient.mm: 2012-05-29 David Barr Introduce ENABLE_CSS_IMAGE_RESOLUTION compile flag https://bugs.webkit.org/show_bug.cgi?id=87685 Reviewed by Eric Seidel. Add a configuration option for CSS image-resolution support, disabling it by default. * Configurations/FeatureDefines.xcconfig: 2012-05-29 Nikolas Zimmermann SVGViewSpec DOM bindings aka SVGSVGElement.currentView is unimplemented https://bugs.webkit.org/show_bug.cgi?id=15495 Reviewed by Rob Buis. * MigrateHeaders.make: Copy DOMSVGViewSpec*.h headers. 2012-05-25 Jesus Sanchez-Palencia WebKitTestRunner needs to support layoutTestController.setJavaScriptProfilingEnabled https://bugs.webkit.org/show_bug.cgi?id=42328 Reviewed by Eric Seidel. * WebInspector/WebInspector.mm: (-[WebInspector setJavaScriptProfilingEnabled:]): 2012-05-24 Tim Horton Add feature defines for web-facing parts of CSS Regions and Exclusions https://bugs.webkit.org/show_bug.cgi?id=87442 Reviewed by Dan Bernstein. * Configurations/FeatureDefines.xcconfig: 2012-05-24 John Mellor Font Boosting: Add compile flag and runtime setting https://bugs.webkit.org/show_bug.cgi?id=87394 Reviewed by Adam Barth. Add ENABLE_FONT_BOOSTING. * Configurations/FeatureDefines.xcconfig: 2012-05-23 Ojan Vafai add back the ability to disable flexbox https://bugs.webkit.org/show_bug.cgi?id=87147 Reviewed by Tony Chang. * Configurations/FeatureDefines.xcconfig: 2012-05-22 Tim Horton Add a quirk for applications that depend on the relative ordering of progressCompleted/didFinishLoad https://bugs.webkit.org/show_bug.cgi?id=87178 Reviewed by Maciej Stachowiak. Add plumbing for the quirk to flip the relative ordering of progressCompleted/didFinishLoad back to the behavior before http://trac.webkit.org/changeset/94105. Make it apply to any Mail.app linked against WebKit before that revision. * Misc/WebKitVersionChecks.h: * WebView/WebView.mm: (-[WebView _needsDidFinishLoadOrderQuirk]): (-[WebView _preferencesChanged:]): 2012-05-21 Gavin Barraclough Disable private names by default in WebCore https://bugs.webkit.org/show_bug.cgi?id=87088 Reviewed by Geoff Garen. r117859 introduced a preliminary implementation of ES6-like private name objects to JSC. These are probably not yet ready to be web-facing, so disabling by default in WebCore. Opting-in for JSC & DumpRenderTree so that we can still run the fast/js/names.html test. * WebView/WebPreferenceKeysPrivate.h: * WebView/WebPreferences.mm: (+[WebPreferences initialize]): (-[WebPreferences setJavaScriptExperimentsEnabled:]): (-[WebPreferences javaScriptExperimentsEnabled]): * WebView/WebPreferencesPrivate.h: * WebView/WebView.mm: (-[WebView _preferencesChanged:]): - Added JavaScriptExperimentsEnabled to WebPreferences. 2012-05-15 Gavin Barraclough Add support for private names https://bugs.webkit.org/show_bug.cgi?id=86509 Reviewed by Oliver Hunt. The spec isn't final, but we can start adding support to allow property maps to contain keys that aren't identifiers. * Plugins/Hosted/ProxyInstance.mm: (WebKit::ProxyClass::methodsNamed): (WebKit::ProxyClass::fieldNamed): (WebKit::ProxyInstance::getMethod): (WebKit::ProxyInstance::methodsNamed): (WebKit::ProxyInstance::fieldNamed): - Removed PropertyName::impl(), call publicName() to get the string associated with a name. 2012-05-21 Caio Marcelo de Oliveira Filho Move setEditingBehavior() from layoutTestController to window.internals https://bugs.webkit.org/show_bug.cgi?id=42689 Reviewed by Hajime Morita and Kenneth Rohde Christiansen. Remove Mac private API to get/set the editing behavior, since it was only there for the DRT. * WebKit.order: * WebView/WebFrame.mm: * WebView/WebFrameInternal.h: * WebView/WebPreferenceKeysPrivate.h: * WebView/WebPreferences.mm: (+[WebPreferences initialize]): * WebView/WebPreferencesPrivate.h: * WebView/WebView.mm: (-[WebView _preferencesChanged:]): 2012-05-20 Ryosuke Niwa Using createContextualFragment to insert a