Changeset 93548 in webkit


Ignore:
Timestamp:
Aug 22, 2011 2:56:22 PM (13 years ago)
Author:
andersca@apple.com
Message:

Update the text input context when the plug-in focus changes and not when the complex text input state changes
https://bugs.webkit.org/show_bug.cgi?id=66716

Reviewed by Darin Adler.

  • UIProcess/API/mac/WKView.mm:

(-[WKView _pluginFocusOrWindowFocusChanged:pluginComplexTextInputIdentifier:]):
(-[WKView _setPluginComplexTextInputState:WebKit::pluginComplexTextInputIdentifier:]):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r93546 r93548  
    1 2011-08-21  Michael Saboff  <msaboff@apple.com>
     12011-08-22  Anders Carlsson  <andersca@apple.com>
     2
     3        Update the text input context when the plug-in focus changes and not when the complex text input state changes
     4        https://bugs.webkit.org/show_bug.cgi?id=66716
     5
     6        Reviewed by Darin Adler.
     7
     8        * UIProcess/API/mac/WKView.mm:
     9        (-[WKView _pluginFocusOrWindowFocusChanged:pluginComplexTextInputIdentifier:]):
     10        (-[WKView _setPluginComplexTextInputState:WebKit::pluginComplexTextInputIdentifier:]):
     11
     122011-08-22  Michael Saboff  <msaboff@apple.com>
    213
    314        REGRESSION (r92231): Apple campus proposal PDF doesn't display in Safari
  • trunk/Source/WebKit2/UIProcess/API/mac/WKView.mm

    r93544 r93548  
    22882288- (void)_pluginFocusOrWindowFocusChanged:(BOOL)pluginHasFocusAndWindowHasFocus pluginComplexTextInputIdentifier:(uint64_t)pluginComplexTextInputIdentifier
    22892289{
    2290     // FIXME: Implement.
    2291 }
    2292 
    2293 - (void)_setPluginComplexTextInputState:(WebKit::PluginComplexTextInputState)pluginComplexTextInputState pluginComplexTextInputIdentifier:(uint64_t)pluginComplexTextInputIdentifier
    2294 {
    22952290    BOOL inputSourceChanged = _data->_pluginComplexTextInputIdentifier;
    2296     BOOL complexTextInputEnabled = (pluginComplexTextInputState == PluginComplexTextInputEnabledLegacy);
    2297 
    2298     if (complexTextInputEnabled) {
     2291
     2292    if (pluginHasFocusAndWindowHasFocus) {
    22992293        // Check if we're already allowing text input for this plug-in.
    23002294        if (pluginComplexTextInputIdentifier == _data->_pluginComplexTextInputIdentifier)
     
    23042298
    23052299    } else {
    2306         // Check if we got a request to disable complex text input for a plug-in that is not the current plug-in.
     2300        // Check if we got a request to unfocus a plug-in that isn't focused.
    23072301        if (pluginComplexTextInputIdentifier != _data->_pluginComplexTextInputIdentifier)
    23082302            return;
     
    23182312    // This will force the current input context to be updated to its correct value.
    23192313    [NSApp updateWindows];
     2314}
     2315
     2316- (void)_setPluginComplexTextInputState:(WebKit::PluginComplexTextInputState)pluginComplexTextInputState pluginComplexTextInputIdentifier:(uint64_t)pluginComplexTextInputIdentifier
     2317{
     2318    if (pluginComplexTextInputIdentifier != _data->_pluginComplexTextInputIdentifier) {
     2319        // We're asked to update the state for a plug-in that doesn't have focus.
     2320        return;
     2321    }
     2322
     2323    // FIXME: Actually update the state here when using the new Cocoa text input model.
    23202324}
    23212325
Note: See TracChangeset for help on using the changeset viewer.