Commit d6072972 authored by gns@gnome.org's avatar gns@gnome.org

[GTK] GTK2 paint code path does not render AC layers

https://bugs.webkit.org/show_bug.cgi?id=124967

Patch by Gustavo Noronha Silva <gustavo.noronha@collabora.com> on 2013-12-02
Reviewed by Carlos Garcia Campos.

* webkit/webkitwebview.cpp:
(webkit_web_view_expose_event): also paint AC layers when painting the widget,
when AC is on.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159926 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent c4299267
2013-12-02 Gustavo Noronha Silva <gustavo.noronha@collabora.com>
[GTK] GTK2 paint code path does not render AC layers
https://bugs.webkit.org/show_bug.cgi?id=124967
Reviewed by Carlos Garcia Campos.
* webkit/webkitwebview.cpp:
(webkit_web_view_expose_event): also paint AC layers when painting the widget,
when AC is on.
2013-11-28 Gustavo Noronha Silva <gustavo.noronha@collabora.com>
REGRESSION(r154658): webkit_web_view_get_view_source_mode always returns false
......
......@@ -671,6 +671,17 @@ static gboolean webkit_web_view_expose_event(GtkWidget* widget, GdkEventExpose*
gdk_region_get_rectangles(event->region, &rects.outPtr(), &rectCount);
RefPtr<cairo_t> cr = adoptRef(gdk_cairo_create(event->window));
WebKitWebViewPrivate* priv = WEBKIT_WEB_VIEW(widget)->priv;
#if USE(TEXTURE_MAPPER)
GdkRectangle clipRect;
gdk_region_get_clipbox(event->region, &clipRect);
if (priv->acceleratedCompositingContext->renderLayersToWindow(cr.get(), clipRect)) {
GTK_WIDGET_CLASS(webkit_web_view_parent_class)->expose_event(widget, event);
return FALSE;
}
#endif
for (int i = 0; i < rectCount; i++) {
copyRectFromCairoSurfaceToContext(WEBKIT_WEB_VIEW(widget)->priv->backingStore->cairoSurface(),
cr.get(), IntSize(), IntRect(rects.get()[i]));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment