Changeset 196767 in webkit


Ignore:
Timestamp:
Feb 18, 2016 11:06:50 AM (8 years ago)
Author:
ChangSeok Oh
Message:

[GTK][Threaded Compositor] The web inspector doesn't work when using the threaded compositor
https://bugs.webkit.org/show_bug.cgi?id=154067

Reviewed by Carlos Garcia Campos.

The forceCompositingMode should be true for threaded compositor. We set it true for a normal webView
in _WebKitSettingsPrivate() but we do not for inspector anywhere. So DrawingArea is not
properly created for the inspector. Let's move the setting to WebPreferences::platformInitializeStore
which is a common place for the webView and the inspector.

  • UIProcess/API/gtk/WebKitSettings.cpp:

(_WebKitSettingsPrivate::_WebKitSettingsPrivate): Deleted.

  • UIProcess/gtk/WebPreferencesGtk.cpp:

(WebKit::WebPreferences::platformInitializeStore):

Location:
trunk/Source/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r196766 r196767  
     12016-02-18  ChangSeok Oh  <changseok.oh@collabora.com>
     2
     3        [GTK][Threaded Compositor] The web inspector doesn't work when using the threaded compositor
     4        https://bugs.webkit.org/show_bug.cgi?id=154067
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        The forceCompositingMode should be true for threaded compositor. We set it true for a normal webView
     9        in _WebKitSettingsPrivate() but we do not for inspector anywhere. So DrawingArea is not
     10        properly created for the inspector. Let's move the setting to WebPreferences::platformInitializeStore
     11        which is a common place for the webView and the inspector.
     12
     13        * UIProcess/API/gtk/WebKitSettings.cpp:
     14        (_WebKitSettingsPrivate::_WebKitSettingsPrivate): Deleted.
     15        * UIProcess/gtk/WebPreferencesGtk.cpp:
     16        (WebKit::WebPreferences::platformInitializeStore):
     17
    1182016-02-18  Commit Queue  <commit-queue@webkit.org>
    219
  • trunk/Source/WebKit2/UIProcess/API/gtk/WebKitSettings.cpp

    r196053 r196767  
    5959        pictographFontFamily = preferences->pictographFontFamily().utf8();
    6060        defaultCharset = preferences->defaultTextEncodingName().utf8();
    61 
    62 #if USE(COORDINATED_GRAPHICS_THREADED)
    63         preferences->setForceCompositingMode(true);
    64 #endif
    6561    }
    6662
  • trunk/Source/WebKit2/UIProcess/gtk/WebPreferencesGtk.cpp

    r196467 r196767  
    4141        setAcceleratedCompositingEnabled(false);
    4242    }
     43#endif
     44#if USE(COORDINATED_GRAPHICS_THREADED)
     45    setForceCompositingMode(true);
    4346#endif
    4447#if !ENABLE(OPENGL)
Note: See TracChangeset for help on using the changeset viewer.