No subject


Mon Jan 28 08:41:14 PST 2013


is now using a backing buffer to do all it's rendering and doesn't take the
Cairo context pass in argument into account, all that it does is to copy
the backing buffer into the Cairo context.

I believe that this is why you're losing the transparency in your main
window and why my PDFs are no longer vectorial.

Maybe someone that knows more about the internals of gtk-webkit can give
use more insight.

-- 
Emmanuel Rodriguez

--14dae94734c5ca206704db22084f
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><br><div class=3D"gmail=
_quote">On 24 April 2013 09:32, Jianhua Shao <span dir=3D"ltr">&lt;<a href=
=3D"mailto:alex.sjh at gmail.com" target=3D"_blank">alex.sjh at gmail.com</a>&gt;=
</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-=
left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;p=
adding-left:1ex"><div class=3D""><div class=3D"h5"><div dir=3D"ltr"><br><di=
v class=3D"gmail_quote">
<div dir=3D"ltr">I build webkitgtk 1.9.92 by below configuration<br>./confi=
gure --prefix=3D/usr --enable-accelerated-compositing=C2=A0 --enable-fast-m=
obile-scrolling --enable-jit --disable-webkit2 --disable-plugin-process --d=
isable-gtk-doc-html --with-gtk=3D2.0 --with-acceleration-backend=3Dopengl<b=
r>


<br>After that, I write a simple app to make the content of webview transpa=
rent by calling webkit_web_view_set_transparent(). But it failed. <br>I try=
ied version 1.11.5, it also does not work.<br>The same app source code work=
s in a old version of gtk-webkit, AFAIK, it was about gtk-webkit 1.3.<br>
</div></div></div></div></div></blockquote><div><br></div><div style>Can yo=
u try to build gtk-webkit 1.6.3 and see if it works?</div><div style><br></=
div><div style>I experience a similar problem in which calling=C2=A0webkit_=
web_view_draw() with a custom Cairo context would behave strangely since gt=
k-webkit 1.8. In my case I wanted to save a webpage as a PDF with a Cairo c=
ontext that&#39;s backed by a PDF surface. Since gtk-webkit 1.8 the PDF is =
composed of a big rasterized image and is no longer vectorial.</div>
<div style><br></div><div style>From what I saw in the code base of gtk-web=
kit 1.8,=C2=A0webkit_web_view_draw() is now using a backing buffer to do al=
l it&#39;s rendering and doesn&#39;t take the Cairo context pass in argumen=
t into account, all that it does is to copy the backing buffer into the Cai=
ro context.</div>
<div style><br></div><div style>I believe that this is why you&#39;re losin=
g the transparency in your main window and why my PDFs are no longer vector=
ial.</div><div style><br></div><div style>Maybe someone that knows more abo=
ut the internals of gtk-webkit can give use more insight.</div>
<div style><br></div></div>-- <br>Emmanuel Rodriguez
</div></div>

--14dae94734c5ca206704db22084f--


More information about the webkit-help mailing list