Changeset 126021 in webkit


Ignore:
Timestamp:
Aug 20, 2012 5:25:57 AM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[GTK] Provide backwards compatible method for WebKitDOMWebKitNamedFlow::overflow
https://bugs.webkit.org/show_bug.cgi?id=94464

Patch by Xan Lopez <xlopez@igalia.com> on 2012-08-20
Reviewed by Carlos Garcia Campos.

Provide a compatibility method to access the new 'overset'
property through the old 'overflow' name in
WebKitDOMWebKitNamedFlow. Note that trying to access it through
g_object_get directly will give a runtime warning, since the
property does not actually exist anymore; this is done purely to
maintain API compatibility.

  • bindings/gobject/WebKitDOMCustom.cpp:

(webkit_dom_webkit_named_flow_get_overflow): add method.

  • bindings/gobject/WebKitDOMCustom.h:
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r126018 r126021  
     12012-08-20  Xan Lopez  <xlopez@igalia.com>
     2
     3        [GTK] Provide backwards compatible method for WebKitDOMWebKitNamedFlow::overflow
     4        https://bugs.webkit.org/show_bug.cgi?id=94464
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        Provide a compatibility method to access the new 'overset'
     9        property through the old 'overflow' name in
     10        WebKitDOMWebKitNamedFlow. Note that trying to access it through
     11        g_object_get directly will give a runtime warning, since the
     12        property does not actually exist anymore; this is done purely to
     13        maintain API compatibility.
     14
     15        * bindings/gobject/WebKitDOMCustom.cpp:
     16        (webkit_dom_webkit_named_flow_get_overflow): add method.
     17        * bindings/gobject/WebKitDOMCustom.h:
     18
    1192012-08-20  Sami Kyostila  <skyostil@chromium.org>
    220
  • trunk/Source/WebCore/bindings/gobject/WebKitDOMCustom.cpp

    r125056 r126021  
    2626#include "WebKitDOMHTMLTextAreaElement.h"
    2727#include "WebKitDOMHTMLTextAreaElementPrivate.h"
     28#include "WebKitDOMWebKitNamedFlow.h"
    2829
    2930using namespace WebKit;
     
    6263}
    6364
     65gboolean
     66webkit_dom_webkit_named_flow_get_overflow(WebKitDOMWebKitNamedFlow* flow)
     67{
     68    g_warning("The WebKitDOMWebKitNamedFlow::overflow property has been renamed to WebKitDOMWebKitNamedFlow::overset. Please update your code to use the new name.");
     69    return webkit_dom_webkit_named_flow_get_overset(flow);
     70}
     71
    6472void
    6573webkit_dom_html_form_element_dispatch_form_change(WebKitDOMHTMLFormElement* self)
  • trunk/Source/WebCore/bindings/gobject/WebKitDOMCustom.h

    r125092 r126021  
    3636WEBKIT_API void webkit_dom_html_form_element_dispatch_form_change(WebKitDOMHTMLFormElement* self);
    3737WEBKIT_API void webkit_dom_html_form_element_dispatch_form_input(WebKitDOMHTMLFormElement* self);
     38WEBKIT_API gboolean webkit_dom_webkit_named_flow_get_overflow(WebKitDOMWebKitNamedFlow* flow);
    3839
    3940G_END_DECLS
Note: See TracChangeset for help on using the changeset viewer.