Changeset 221847 in webkit


Ignore:
Timestamp:
Sep 10, 2017 11:14:23 PM (7 years ago)
Author:
Carlos Garcia Campos
Message:

REGRESSION: [GTK] Generated HTML API documentation is missing descriptions
https://bugs.webkit.org/show_bug.cgi?id=176667

Reviewed by Michael Catanzaro.

Source/WebKit:

Fix several typos in API documentation.

  • UIProcess/API/glib/WebKitSettings.cpp:

(webkit_settings_class_init):

  • UIProcess/API/glib/WebKitWebView.cpp:

(webkit_web_view_class_init):

  • UIProcess/API/glib/WebKitWebsiteDataManager.cpp:
  • UIProcess/API/gtk/docs/webkit2gtk-docs.sgml:

Tools:

This is happening since we moved the implementation files to glib dirs. The generate-gtkdoc script assumes that
header and implementation files are always in the same directory. To reduce the input we pass to gtk-doc we
ignore cpp files for which there isn't a public header. The code to do this check doesn't consider cpp files in
a different directory than the header file. It also assumes that header and cpp files have the same filename
except for the extension, which is true in all cases but WebKitWebView that we have two files WebKitWebView.cpp
and WebKitWebViewGtk.cpp.

  • gtk/generate-gtkdoc:

(files_to_ignore): Check also cpp files with the Gtk suffix.
(files_to_ignore.add_file_if_exists): Check if a file with the given name exists in any of the source dirs.

Location:
trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r221834 r221847  
     12017-09-10  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        REGRESSION: [GTK] Generated HTML API documentation is missing descriptions
     4        https://bugs.webkit.org/show_bug.cgi?id=176667
     5
     6        Reviewed by Michael Catanzaro.
     7
     8        Fix several typos in API documentation.
     9
     10        * UIProcess/API/glib/WebKitSettings.cpp:
     11        (webkit_settings_class_init):
     12        * UIProcess/API/glib/WebKitWebView.cpp:
     13        (webkit_web_view_class_init):
     14        * UIProcess/API/glib/WebKitWebsiteDataManager.cpp:
     15        * UIProcess/API/gtk/docs/webkit2gtk-docs.sgml:
     16
    1172017-09-10  Brady Eidson  <beidson@apple.com>
    218
  • trunk/Source/WebKit/UIProcess/API/glib/WebKitSettings.cpp

    r220631 r221847  
    850850     * will disable history, cache and form auto-fill for any pages visited.
    851851     *
    852      * Deprecated: 2.16. Use #WebKitWebView:is-ephemeral or #WebKitWebContext:is-ephemeral instead.
     852     * Deprecated: 2.16. Use #WebKitWebView:is-ephemeral or #WebKitWebsiteDataManager:is-ephemeral instead.
    853853     */
    854854    g_object_class_install_property(gObjectClass,
  • trunk/Source/WebKit/UIProcess/API/glib/WebKitWebView.cpp

    r220394 r221847  
    16341634     * </para></listitem>
    16351635     * <listitem><para>
    1636      * a generic #GdkEvent of type %GDK_NOTHING when the #GtkWidget:popup-menu
     1636     * a generic #GdkEvent of type %GDK_NOTHING when the #GtkWidget::popup-menu
    16371637     * signal was used to show the context menu.
    16381638     * </para></listitem>
     
    18631863     *   %FALSE to propagate the event further.
    18641864     *
    1865      * Since: 2.18.
     1865     * Since: 2.18
    18661866     */
    18671867    signals[SHOW_OPTION_MENU] = g_signal_new(
  • trunk/Source/WebKit/UIProcess/API/glib/WebKitWebsiteDataManager.cpp

    r218487 r221847  
    435435 * @manager: a #WebKitWebsiteDataManager
    436436 *
    437  * Get whether a #WebKitWebsiteDataManager is ephemeral. See #WebKitWebsiteDataManager::is-ephemerla for more details.
     437 * Get whether a #WebKitWebsiteDataManager is ephemeral. See #WebKitWebsiteDataManager:is-ephemeral for more details.
    438438 *
    439439 * Returns: %TRUE if @manager is epheral or %FALSE otherwise.
  • trunk/Source/WebKit/UIProcess/API/gtk/docs/webkit2gtk-docs.sgml

    r220329 r221847  
    126126    <title>Index of new symbols in 2.18</title>
    127127    <xi:include href="xml/api-index-2.18.xml"><xi:fallback /></xi:include>
    128     </index>
     128  </index>
    129129
    130130  <xi:include href="xml/annotation-glossary.xml"><xi:fallback /></xi:include>
  • trunk/Tools/ChangeLog

    r221842 r221847  
     12017-09-10  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        REGRESSION: [GTK] Generated HTML API documentation is missing descriptions
     4        https://bugs.webkit.org/show_bug.cgi?id=176667
     5
     6        Reviewed by Michael Catanzaro.
     7
     8        This is happening since we moved the implementation files to glib dirs. The generate-gtkdoc script assumes that
     9        header and implementation files are always in the same directory. To reduce the input we pass to gtk-doc we
     10        ignore cpp files for which there isn't a public header. The code to do this check doesn't consider cpp files in
     11        a different directory than the header file. It also assumes that header and cpp files have the same filename
     12        except for the extension, which is true in all cases but WebKitWebView that we have two files WebKitWebView.cpp
     13        and WebKitWebViewGtk.cpp.
     14
     15        * gtk/generate-gtkdoc:
     16        (files_to_ignore): Check also cpp files with the Gtk suffix.
     17        (files_to_ignore.add_file_if_exists): Check if a file with the given name exists in any of the source dirs.
     18
    1192017-09-10  Myles C. Maxfield  <mmaxfield@apple.com>
    220
  • trunk/Tools/gtk/generate-gtkdoc

    r209981 r221847  
    8181    implementation_files = list(headers_with_gtkdoc)
    8282    for header in headers_with_gtkdoc:
    83         def add_file_if_exists(file):
    84             if os.path.isfile(file):
    85                 implementation_files.append(os.path.abspath(file))
    86         header_name_without_extension = os.path.splitext(header)[0]
    87         add_file_if_exists(header_name_without_extension + ".cpp")
    88         add_file_if_exists(header_name_without_extension + ".c")
     83        def add_file_if_exists(filename):
     84            for dir in source_dirs:
     85                file = os.path.join(dir, filename)
     86                if os.path.isfile(file):
     87                    implementation_files.append(os.path.abspath(file))
     88        header_basename_without_extension = os.path.splitext(os.path.basename(header))[0]
     89        add_file_if_exists(header_basename_without_extension + ".cpp")
     90        add_file_if_exists(header_basename_without_extension + "Gtk.cpp")
     91        add_file_if_exists(header_basename_without_extension + ".c")
    8992
    9093    def file_should_be_ignored(file):
Note: See TracChangeset for help on using the changeset viewer.