Changeset 167708 in webkit


Ignore:
Timestamp:
Apr 23, 2014 6:43:12 AM (10 years ago)
Author:
commit-queue@webkit.org
Message:

[GTK] ShadowRoot API was removed in r164131
https://bugs.webkit.org/show_bug.cgi?id=132059

Source/WebCore:
Patch by Philippe Normand <pnormand@igalia.com> on 2014-04-23
Reviewed by Gustavo Noronha Silva.

Add ShadowRoot removed API to WebKitDOMDeprecated to keep API/ABI compatibility.

  • bindings/gobject/WebKitDOMDeprecated.cpp:

(webkit_dom_shadow_root_class_init):
(webkit_dom_shadow_root_init):
(webkit_dom_shadow_root_element_from_point):
(webkit_dom_shadow_root_get_active_element):
(webkit_dom_shadow_root_get_apply_author_styles):
(webkit_dom_shadow_root_get_element_by_id):
(webkit_dom_shadow_root_get_elements_by_class_name):
(webkit_dom_shadow_root_get_elements_by_tag_name):
(webkit_dom_shadow_root_get_elements_by_tag_name_ns):
(webkit_dom_shadow_root_get_inner_html):
(webkit_dom_shadow_root_get_reset_style_inheritance):
(webkit_dom_shadow_root_get_selection):
(webkit_dom_shadow_root_set_apply_author_styles):
(webkit_dom_shadow_root_set_inner_html):
(webkit_dom_shadow_root_set_reset_style_inheritance):

  • bindings/gobject/WebKitDOMDeprecated.h:
  • bindings/gobject/WebKitDOMDeprecated.symbols:

Tools:
Patch by Carlos Garcia Campos <cgarcia@igalia.com> on 2014-04-23
Reviewed by Gustavo Noronha Silva.

Add WebKitDOMShadowRoot to the list of deleted classes to generate
the API docs.

  • gtk/webkitdom.py:

(WebKitDOMDocGenerator):

Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r167707 r167708  
     12014-04-23  Philippe Normand  <pnormand@igalia.com>
     2
     3        [GTK] ShadowRoot API was removed in r164131
     4        https://bugs.webkit.org/show_bug.cgi?id=132059
     5
     6        Reviewed by Gustavo Noronha Silva.
     7
     8        Add ShadowRoot removed API to WebKitDOMDeprecated to keep API/ABI compatibility.
     9
     10        * bindings/gobject/WebKitDOMDeprecated.cpp:
     11        (webkit_dom_shadow_root_class_init):
     12        (webkit_dom_shadow_root_init):
     13        (webkit_dom_shadow_root_element_from_point):
     14        (webkit_dom_shadow_root_get_active_element):
     15        (webkit_dom_shadow_root_get_apply_author_styles):
     16        (webkit_dom_shadow_root_get_element_by_id):
     17        (webkit_dom_shadow_root_get_elements_by_class_name):
     18        (webkit_dom_shadow_root_get_elements_by_tag_name):
     19        (webkit_dom_shadow_root_get_elements_by_tag_name_ns):
     20        (webkit_dom_shadow_root_get_inner_html):
     21        (webkit_dom_shadow_root_get_reset_style_inheritance):
     22        (webkit_dom_shadow_root_get_selection):
     23        (webkit_dom_shadow_root_set_apply_author_styles):
     24        (webkit_dom_shadow_root_set_inner_html):
     25        (webkit_dom_shadow_root_set_reset_style_inheritance):
     26        * bindings/gobject/WebKitDOMDeprecated.h:
     27        * bindings/gobject/WebKitDOMDeprecated.symbols:
     28
    1292014-04-23  Morten Stenshorne  <mstensho@opera.com>
    230
  • trunk/Source/WebCore/bindings/gobject/WebKitDOMDeprecated.cpp

    r165618 r167708  
    553553}
    554554
     555// WebKitDOMShadowRoot
     556
     557typedef struct _WebKitDOMShadowRoot {
     558    WebKitDOMObject parent_instance;
     559} WebKitDOMShadowRoot;
     560
     561typedef struct _WebKitDOMShadowRootClass {
     562    WebKitDOMObjectClass parent_class;
     563} WebKitDOMShadowRootClass;
     564
     565G_DEFINE_TYPE(WebKitDOMShadowRoot, webkit_dom_shadow_root, WEBKIT_TYPE_DOM_OBJECT)
     566
     567static void webkit_dom_shadow_root_class_init(WebKitDOMShadowRootClass*)
     568{
     569}
     570
     571static void webkit_dom_shadow_root_init(WebKitDOMShadowRoot*)
     572{
     573}
     574
     575WebKitDOMElement* webkit_dom_shadow_root_element_from_point(WebKitDOMShadowRoot*, glong, glong)
     576{
     577    g_warning("%s: Access to the DOM Shadow Root has been removed from WebKit, this function does nothing.", __func__);
     578    return 0;
     579}
     580
     581WebKitDOMElement* webkit_dom_shadow_root_get_active_element(WebKitDOMShadowRoot*)
     582{
     583    g_warning("%s: Access to the DOM Shadow Root has been removed from WebKit, this function does nothing.", __func__);
     584    return 0;
     585}
     586
     587gboolean webkit_dom_shadow_root_get_apply_author_styles(WebKitDOMShadowRoot*)
     588{
     589    g_warning("%s: Access to the DOM Shadow Root has been removed from WebKit, this function does nothing.", __func__);
     590    return 0;
     591}
     592
     593WebKitDOMElement* webkit_dom_shadow_root_get_element_by_id(WebKitDOMShadowRoot*, const gchar*)
     594{
     595    g_warning("%s: Access to the DOM Shadow Root has been removed from WebKit, this function does nothing.", __func__);
     596    return 0;
     597}
     598
     599WebKitDOMNodeList* webkit_dom_shadow_root_get_elements_by_class_name(WebKitDOMShadowRoot*, const gchar*)
     600{
     601    g_warning("%s: Access to the DOM Shadow Root has been removed from WebKit, this function does nothing.", __func__);
     602    return 0;
     603}
     604
     605WebKitDOMNodeList* webkit_dom_shadow_root_get_elements_by_tag_name(WebKitDOMShadowRoot*, const gchar*)
     606{
     607    g_warning("%s: Access to the DOM Shadow Root has been removed from WebKit, this function does nothing.", __func__);
     608    return 0;
     609}
     610
     611WebKitDOMNodeList* webkit_dom_shadow_root_get_elements_by_tag_name_ns(WebKitDOMShadowRoot*, const gchar*, const gchar*)
     612{
     613    g_warning("%s: Access to the DOM Shadow Root has been removed from WebKit, this function does nothing.", __func__);
     614    return 0;
     615}
     616
     617gchar* webkit_dom_shadow_root_get_inner_html(WebKitDOMShadowRoot*)
     618{
     619    g_warning("%s: Access to the DOM Shadow Root has been removed from WebKit, this function does nothing.", __func__);
     620    return 0;
     621}
     622
     623gboolean webkit_dom_shadow_root_get_reset_style_inheritance(WebKitDOMShadowRoot*)
     624{
     625    g_warning("%s: Access to the DOM Shadow Root has been removed from WebKit, this function does nothing.", __func__);
     626    return FALSE;
     627}
     628
     629WebKitDOMDOMSelection* webkit_dom_shadow_root_get_selection(WebKitDOMShadowRoot*)
     630{
     631    g_warning("%s: Access to the DOM Shadow Root has been removed from WebKit, this function does nothing.", __func__);
     632    return 0;
     633}
     634
     635void webkit_dom_shadow_root_set_apply_author_styles(WebKitDOMShadowRoot*, gboolean)
     636{
     637    g_warning("%s: Access to the DOM Shadow Root has been removed from WebKit, this function does nothing.", __func__);
     638}
     639
     640void webkit_dom_shadow_root_set_inner_html(WebKitDOMShadowRoot*, const gchar*, GError**)
     641{
     642    g_warning("%s: Access to the DOM Shadow Root has been removed from WebKit, this function does nothing.", __func__);
     643}
     644
     645void webkit_dom_shadow_root_set_reset_style_inheritance(WebKitDOMShadowRoot*, gboolean)
     646{
     647    g_warning("%s: Access to the DOM Shadow Root has been removed from WebKit, this function does nothing.", __func__);
     648}
  • trunk/Source/WebCore/bindings/gobject/WebKitDOMDeprecated.h

    r165199 r167708  
    565565webkit_dom_processing_instruction_set_data(WebKitDOMProcessingInstruction* self, const gchar* value, GError** error);
    566566
     567WEBKIT_DEPRECATED GType
     568webkit_dom_shadow_root_get_type(void);
     569
     570typedef struct _WebKitDOMShadowRoot WebKitDOMShadowRoot;
     571
     572/**
     573 * webkit_dom_shadow_root_element_from_point:
     574 * @self: A #WebKitDOMShadowRoot
     575 * @x: A #glong
     576 * @y: A #glong
     577 *
     578 * This functionality has been removed from WebKit, this function does nothing.
     579 *
     580 * Returns: (transfer none): a #WebKitDOMElement
     581 *
     582 * Deprecated: 2.6
     583 */
     584WEBKIT_DEPRECATED WebKitDOMElement*
     585webkit_dom_shadow_root_element_from_point(WebKitDOMShadowRoot* self, glong x, glong y);
     586
     587/**
     588 * webkit_dom_shadow_root_get_active_element:
     589 * @self: A #WebKitDOMShadowRoot
     590 *
     591 * This functionality has been removed from WebKit, this function does nothing.
     592 *
     593 * Returns: (transfer none): a #WebKitDOMElement
     594 *
     595 * Deprecated: 2.6
     596 */
     597WEBKIT_DEPRECATED WebKitDOMElement*
     598webkit_dom_shadow_root_get_active_element(WebKitDOMShadowRoot* self);
     599
     600/**
     601 * webkit_dom_shadow_root_get_apply_author_styles:
     602 * @self: A #WebKitDOMShadowRoot
     603 *
     604 * This functionality has been removed from WebKit, this function does nothing.
     605 *
     606 * Returns: (transfer none): a #gboolean
     607 *
     608 * Deprecated: 2.6
     609 */
     610WEBKIT_DEPRECATED gboolean
     611webkit_dom_shadow_root_get_apply_author_styles(WebKitDOMShadowRoot* self);
     612
     613/**
     614 * webkit_dom_shadow_root_get_element_by_id:
     615 * @self: A #WebKitDOMShadowRoot
     616 * @id: A #gchar
     617 *
     618 * This functionality has been removed from WebKit, this function does nothing.
     619 *
     620 * Returns: (transfer none): a #WebKitDOMElement
     621 *
     622 * Deprecated: 2.6
     623 */
     624WEBKIT_DEPRECATED WebKitDOMElement*
     625webkit_dom_shadow_root_get_element_by_id(WebKitDOMShadowRoot* self, const gchar* id);
     626
     627/**
     628 * webkit_dom_shadow_root_get_elements_by_class_name:
     629 * @self: A #WebKitDOMShadowRoot
     630 * @name: A #gchar
     631 *
     632 * This functionality has been removed from WebKit, this function does nothing.
     633 *
     634 * Returns: (transfer none): a #WebKitDOMNodeList
     635 *
     636 * Deprecated: 2.6
     637 */
     638WEBKIT_DEPRECATED WebKitDOMNodeList*
     639webkit_dom_shadow_root_get_elements_by_class_name(WebKitDOMShadowRoot* self, const gchar* name);
     640
     641/**
     642 * webkit_dom_shadow_root_get_elements_by_tag_name:
     643 * @self: A #WebKitDOMShadowRoot
     644 * @name: A #gchar
     645 *
     646 * This functionality has been removed from WebKit, this function does nothing.
     647 *
     648 * Returns: (transfer none): a #WebKitDOMNodeList
     649 *
     650 * Deprecated: 2.6
     651 */
     652WEBKIT_DEPRECATED WebKitDOMNodeList*
     653webkit_dom_shadow_root_get_elements_by_tag_name(WebKitDOMShadowRoot* self, const gchar* name);
     654
     655/**
     656 * webkit_dom_shadow_root_get_elements_by_tag_name_ns:
     657 * @self: A #WebKitDOMShadowRoot
     658 * @name: A #gchar
     659 * @ns: A #gchar
     660 *
     661 * This functionality has been removed from WebKit, this function does nothing.
     662 *
     663 * Returns: (transfer none): a #WebKitDOMNodeList
     664 *
     665 * Deprecated: 2.6
     666 */
     667WEBKIT_DEPRECATED WebKitDOMNodeList*
     668webkit_dom_shadow_root_get_elements_by_tag_name_ns(WebKitDOMShadowRoot* self, const gchar* name, const gchar* ns);
     669
     670/**
     671 * webkit_dom_shadow_root_get_inner_html:
     672 * @self: A #WebKitDOMShadowRoot
     673 *
     674 * This functionality has been removed from WebKit, this function does nothing.
     675 *
     676 * Returns: (transfer none): a #gchar
     677 *
     678 * Deprecated: 2.6
     679 */
     680WEBKIT_DEPRECATED gchar*
     681webkit_dom_shadow_root_get_inner_html(WebKitDOMShadowRoot* self);
     682
     683/**
     684 * webkit_dom_shadow_root_get_reset_style_inheritance:
     685 * @self: A #WebKitDOMShadowRoot
     686 *
     687 * This functionality has been removed from WebKit, this function does nothing.
     688 *
     689 * Returns: (transfer none): a #gboolean
     690 *
     691 * Deprecated: 2.6
     692 */
     693WEBKIT_DEPRECATED gboolean
     694webkit_dom_shadow_root_get_reset_style_inheritance(WebKitDOMShadowRoot* self);
     695
     696/**
     697 * webkit_dom_shadow_root_get_selection:
     698 * @self: A #WebKitDOMShadowRoot
     699 *
     700 * This functionality has been removed from WebKit, this function does nothing.
     701 *
     702 * Returns: (transfer none): a #WebKitDOMDOMSelection
     703 *
     704 * Deprecated: 2.6
     705 */
     706WEBKIT_DEPRECATED WebKitDOMDOMSelection*
     707webkit_dom_shadow_root_get_selection(WebKitDOMShadowRoot* self);
     708
     709/**
     710 * webkit_dom_shadow_root_set_apply_author_styles:
     711 * @self: A #WebKitDOMShadowRoot
     712 * @value: A #gboolean
     713 *
     714 * This functionality has been removed from WebKit, this function does nothing.
     715 *
     716 * Deprecated: 2.6
     717 */
     718WEBKIT_DEPRECATED void
     719webkit_dom_shadow_root_set_apply_author_styles(WebKitDOMShadowRoot* self, gboolean value);
     720
     721/**
     722 * webkit_dom_shadow_root_set_inner_html:
     723 * @self: A #WebKitDOMShadowRoot
     724 * @html: A #gchar
     725 * @error: A #GError
     726 *
     727 * This functionality has been removed from WebKit, this function does nothing.
     728 *
     729 * Deprecated: 2.6
     730 */
     731WEBKIT_DEPRECATED void
     732webkit_dom_shadow_root_set_inner_html(WebKitDOMShadowRoot* self, const gchar* html, GError** error);
     733
     734/**
     735 * webkit_dom_shadow_root_set_reset_style_inheritance:
     736 * @self: A #WebKitDOMShadowRoot
     737 * @value: A #gboolean
     738 *
     739 * This functionality has been removed from WebKit, this function does nothing.
     740 *
     741 * Deprecated: 2.6
     742 */
     743WEBKIT_DEPRECATED void
     744webkit_dom_shadow_root_set_reset_style_inheritance(WebKitDOMShadowRoot* self, gboolean value);
     745
     746
    567747G_END_DECLS
    568748
  • trunk/Source/WebCore/bindings/gobject/WebKitDOMDeprecated.symbols

    r165199 r167708  
    4646gchar* webkit_dom_processing_instruction_get_data(WebKitDOMProcessingInstruction*)
    4747void webkit_dom_processing_instruction_set_data(WebKitDOMProcessingInstruction*, const gchar*, GError**)
     48WebKitDOMElement* webkit_dom_shadow_root_element_from_point(WebKitDOMShadowRoot*, glong, glong)
     49WebKitDOMElement* webkit_dom_shadow_root_get_active_element(WebKitDOMShadowRoot*)
     50gboolean webkit_dom_shadow_root_get_apply_author_styles(WebKitDOMShadowRoot*)
     51WebKitDOMElement* webkit_dom_shadow_root_get_element_by_id(WebKitDOMShadowRoot*, const gchar*)
     52WebKitDOMNodeList* webkit_dom_shadow_root_get_elements_by_class_name(WebKitDOMShadowRoot*, const gchar*)
     53WebKitDOMNodeList* webkit_dom_shadow_root_get_elements_by_tag_name(WebKitDOMShadowRoot*, const gchar*)
     54WebKitDOMNodeList* webkit_dom_shadow_root_get_elements_by_tag_name_ns(WebKitDOMShadowRoot*, const gchar*, const gchar*)
     55gchar* webkit_dom_shadow_root_get_inner_html(WebKitDOMShadowRoot*)
     56gboolean webkit_dom_shadow_root_get_reset_style_inheritance(WebKitDOMShadowRoot*)
     57WebKitDOMDOMSelection* webkit_dom_shadow_root_get_selection(WebKitDOMShadowRoot*)
     58void webkit_dom_shadow_root_set_apply_author_styles(WebKitDOMShadowRoot*, gboolean)
     59void webkit_dom_shadow_root_set_inner_html(WebKitDOMShadowRoot*, const gchar*, GError**)
     60void webkit_dom_shadow_root_set_reset_style_inheritance(WebKitDOMShadowRoot*, gboolean)
  • trunk/Tools/ChangeLog

    r167702 r167708  
     12014-04-23  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        [GTK] ShadowRoot API was removed in r164131
     4        https://bugs.webkit.org/show_bug.cgi?id=132059
     5
     6        Reviewed by Gustavo Noronha Silva.
     7
     8        Add WebKitDOMShadowRoot to the list of deleted classes to generate
     9        the API docs.
     10
     11        * gtk/webkitdom.py:
     12        (WebKitDOMDocGenerator):
     13
    1142014-04-23  Lorenzo Tilve  <ltilve@igalia.com>
    215
  • trunk/Tools/gtk/webkitdom.py

    r165114 r167708  
    3232        "WebKitDOMMemoryInfo",
    3333        "WebKitDOMMicroDataItemValue",
    34         "WebKitDOMPropertyNodeList"]
     34        "WebKitDOMPropertyNodeList",
     35        "WebKitDOMShadowRoot"]
    3536
    3637    def __init__(self, symbol_files, file_handle):
Note: See TracChangeset for help on using the changeset viewer.