Changeset 54818 in webkit


Ignore:
Timestamp:
Feb 16, 2010 4:54:05 AM (8 years ago)
Author:
xan@webkit.org
Message:

2010-02-16 Xan Lopez <xlopez@igalia.com>

Reviewed by Gustavo Noronha.

Bump version to 1.1.22 so we can depend on it in applications.

  • configure.ac:

WebKit/gtk:

2010-02-16 Xan Lopez <xlopez@igalia.com>

Reviewed by Gustavo Noronha.

Add a new WebKitWebSettings setting, 'auto-resize-window', set to
FALSE by default, that when enabled will apply any resizes or
moves done by a page through various DOM methods (moveTo,
resizeTo, moveBy, resizeBy).

  • WebCoreSupport/ChromeClientGtk.cpp:
  • webkit/webkitwebsettings.cpp: (webkit_web_settings_class_init): (webkit_web_settings_set_property): (webkit_web_settings_get_property): (webkit_web_settings_copy):

WebKitTools:

2010-02-16 Xan Lopez <xlopez@igalia.com>

Reviewed by Gustavo Noronha.

Enable 'auto-resize-window' in our DRT.

  • DumpRenderTree/gtk/DumpRenderTree.cpp: (resetDefaultsToConsistentValues):
Location:
trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r54716 r54818  
     12010-02-16  Xan Lopez  <xlopez@igalia.com>
     2
     3        Reviewed by Gustavo Noronha.
     4
     5        Bump version to 1.1.22 so we can depend on it in applications.
     6
     7        * configure.ac:
     8
    192010-02-12  Simon Hausmann  <simon.hausmann@nokia.com>
    210
  • trunk/WebKit/gtk/ChangeLog

    r54779 r54818  
     12010-02-16  Xan Lopez  <xlopez@igalia.com>
     2
     3        Reviewed by Gustavo Noronha.
     4
     5        Add a new WebKitWebSettings setting, 'auto-resize-window', set to
     6        FALSE by default, that when enabled will apply any resizes or
     7        moves done by a page through various DOM methods (moveTo,
     8        resizeTo, moveBy, resizeBy).
     9
     10        * WebCoreSupport/ChromeClientGtk.cpp:
     11        * webkit/webkitwebsettings.cpp:
     12        (webkit_web_settings_class_init):
     13        (webkit_web_settings_set_property):
     14        (webkit_web_settings_get_property):
     15        (webkit_web_settings_copy):
     16
    1172010-02-15  Emilio Pozuelo Monfort  <pochu27@gmail.com>
    218
  • trunk/WebKit/gtk/WebCoreSupport/ChromeClientGtk.cpp

    r53351 r54818  
    8989                 "height", intrect.height(),
    9090                 NULL);
     91
     92    gboolean autoResizeWindow;
     93    WebKitWebSettings* settings = webkit_web_view_get_settings(m_webView);
     94    g_object_get(settings, "auto-resize-window", &autoResizeWindow, NULL);
     95
     96    if (!autoResizeWindow)
     97        return;
     98
     99    GtkWidget* window = gtk_widget_get_toplevel(GTK_WIDGET(m_webView));
     100#if GTK_CHECK_VERSION(2, 18, 0)
     101    if (gtk_widget_is_toplevel(window)) {
     102#else
     103    if (GTK_WIDGET_TOPLEVEL(window)) {
     104#endif
     105        gtk_window_move(GTK_WINDOW(window), intrect.x(), intrect.y());
     106        gtk_window_resize(GTK_WINDOW(window), intrect.width(), intrect.height());
     107    }
    91108}
    92109
  • trunk/WebKit/gtk/webkit/webkitwebsettings.cpp

    r52791 r54818  
    104104    gboolean enable_site_specific_quirks;
    105105    gboolean enable_page_cache;
     106    gboolean auto_resize_window;
    106107};
    107108
     
    148149    PROP_ENABLE_DEFAULT_CONTEXT_MENU,
    149150    PROP_ENABLE_SITE_SPECIFIC_QUIRKS,
    150     PROP_ENABLE_PAGE_CACHE
     151    PROP_ENABLE_PAGE_CACHE,
     152    PROP_AUTO_RESIZE_WINDOW
    151153};
    152154
     
    760762                                                         flags));
    761763
     764    /**
     765    * WebKitWebSettings:auto-resize-window:
     766    *
     767    * Web pages can request to modify the size and position of the
     768    * window containing the #WebKitWebView through various DOM methods
     769    * (resizeTo, moveTo, resizeBy, moveBy). By default WebKit will not
     770    * honor this requests, but you can set this property to %TRUE if
     771    * you'd like it to do so. If you wish to handle this manually, you
     772    * can connect to the notify signal for the
     773    * #WebKitWebWindowFeatures of your #WebKitWebView.
     774    *
     775    * Since: 1.1.22
     776    */
     777    g_object_class_install_property(gobject_class,
     778                                    PROP_AUTO_RESIZE_WINDOW,
     779                                    g_param_spec_boolean("auto-resize-window",
     780                                                         _("Auto Resize Window"),
     781                                                         _("Automatically resize the toplevel window when a page requests it"),
     782                                                         FALSE,
     783                                                         flags));
     784
    762785    g_type_class_add_private(klass, sizeof(WebKitWebSettingsPrivate));
    763786}
     
    968991        priv->enable_page_cache = g_value_get_boolean(value);
    969992        break;
     993    case PROP_AUTO_RESIZE_WINDOW:
     994        priv->auto_resize_window = g_value_get_boolean(value);
     995        break;
    970996    default:
    971997        G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
     
    10931119    case PROP_ENABLE_PAGE_CACHE:
    10941120        g_value_set_boolean(value, priv->enable_page_cache);
     1121        break;
     1122    case PROP_AUTO_RESIZE_WINDOW:
     1123        g_value_set_boolean(value, priv->auto_resize_window);
    10951124        break;
    10961125    default:
     
    11631192                 "enable-site-specific-quirks", priv->enable_site_specific_quirks,
    11641193                 "enable-page-cache", priv->enable_page_cache,
     1194                 "auto-resize-window", priv->auto_resize_window,
    11651195                 NULL));
    11661196
  • trunk/WebKitTools/ChangeLog

    r54808 r54818  
     12010-02-16  Xan Lopez  <xlopez@igalia.com>
     2
     3        Reviewed by Gustavo Noronha.
     4
     5        Enable 'auto-resize-window' in our DRT.
     6
     7        * DumpRenderTree/gtk/DumpRenderTree.cpp:
     8        (resetDefaultsToConsistentValues):
     9
    1102010-02-15  Martin Robinson  <mrobinson@webkit.org>
    211
  • trunk/WebKitTools/DumpRenderTree/gtk/DumpRenderTree.cpp

    r53754 r54818  
    336336                 "enable-caret-browsing", FALSE,
    337337                 "enable-page-cache", FALSE,
     338                 "auto-resize-window", TRUE,
    338339                 NULL);
    339340
  • trunk/configure.ac

    r54706 r54818  
    33m4_define([webkit_major_version], [1])
    44m4_define([webkit_minor_version], [1])
    5 m4_define([webkit_micro_version], [21])
     5m4_define([webkit_micro_version], [22])
    66
    77# This is the version we'll be using as part of our User-Agent string
Note: See TracChangeset for help on using the changeset viewer.