Changeset 83319 in webkit


Ignore:
Timestamp:
Apr 8, 2011 11:47:55 AM (13 years ago)
Author:
Martin Robinson
Message:

2011-04-08 Martin Robinson <mrobinson@igalia.com>

Reviewed by Xan Lopez.

[GTK] Fix the WebKit2 build for older versions of GTK+
https://bugs.webkit.org/show_bug.cgi?id=58095

No new tests. This is just a build fix.

  • platform/gtk/GtkVersioning.c: (gdk_window_create_similar_surface): Reimplement this method for older versions of GDK.
  • platform/gtk/GtkVersioning.h: Add the new method to the header.

2011-04-08 Martin Robinson <mrobinson@igalia.com>

Reviewed by Xan Lopez.

[GTK] Fix the WebKit2 build for older versions of GTK+
https://bugs.webkit.org/show_bug.cgi?id=58095

  • UIProcess/gtk/ChunkedUpdateDrawingAreaProxyGtk.cpp: Include the GtkVersioning.h header.
Location:
trunk/Source
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r83316 r83319  
     12011-04-08  Martin Robinson  <mrobinson@igalia.com>
     2
     3        Reviewed by Xan Lopez.
     4
     5        [GTK] Fix the WebKit2 build for older versions of GTK+
     6        https://bugs.webkit.org/show_bug.cgi?id=58095
     7
     8        No new tests. This is just a build fix.
     9
     10        * platform/gtk/GtkVersioning.c:
     11        (gdk_window_create_similar_surface): Reimplement this method for older versions of GDK.
     12        * platform/gtk/GtkVersioning.h: Add the new method to the header.
     13
    1142011-04-08  Misha Tyutyunik  <michael.tyutyunik@nokia.com>
    215
  • trunk/Source/WebCore/platform/gtk/GtkVersioning.c

    r72722 r83319  
    272272#endif
    273273
     274#if !GTK_CHECK_VERSION(2, 22, 0)
     275cairo_surface_t *gdk_window_create_similar_surface(GdkWindow *window, cairo_content_t content, int width, int height)
     276{
     277    cairo_t *cairoContext = gdk_cairo_create(window);
     278    cairo_surface_t *cairoSurface = cairo_get_target(cairoContext);
     279    cairo_surface_t *newSurface = cairo_surface_create_similar(cairoSurface, content, width, height);
     280    cairo_destroy(cairoContext);
     281    return newSurface;
     282}
     283#endif // GTK_CHECK_VERSION(2, 22, 0)
  • trunk/Source/WebCore/platform/gtk/GtkVersioning.h

    r77960 r83319  
    4646#define gdk_window_get_visual gdk_drawable_get_visual
    4747#endif // GTK_CHECK_VERSION(2, 23, 0)
     48
     49#if !GTK_CHECK_VERSION(2, 22, 0)
     50cairo_surface_t* gdk_window_create_similar_surface(GdkWindow* window, cairo_content_t content, int width, int height);
     51#endif // GTK_CHECK_VERSION(2, 22, 0)
    4852
    4953#if !GTK_CHECK_VERSION(2, 21, 2)
  • trunk/Source/WebKit2/ChangeLog

    r83307 r83319  
     12011-04-08  Martin Robinson  <mrobinson@igalia.com>
     2
     3        Reviewed by Xan Lopez.
     4
     5        [GTK] Fix the WebKit2 build for older versions of GTK+
     6        https://bugs.webkit.org/show_bug.cgi?id=58095
     7
     8        * UIProcess/gtk/ChunkedUpdateDrawingAreaProxyGtk.cpp: Include the GtkVersioning.h header.
     9
    1102011-04-07  Balazs Kelemen  <kbalazs@webkit.org>
    211
  • trunk/Source/WebKit2/UIProcess/gtk/ChunkedUpdateDrawingAreaProxyGtk.cpp

    r78350 r83319  
    3333#include "WebProcessProxy.h"
    3434#include "WebView.h"
    35 
     35#include <WebCore/GtkVersioning.h>
    3636#include <gdk/gdk.h>
    3737
Note: See TracChangeset for help on using the changeset viewer.