Hi, Graffine:<br>        you may try this fuction to ajust  viewport size.<br>              Frame::setZoomFactor(float percent, bool isTextOnly)<br><br>        where the function Frame::createView is called?  you may try this command<br>
             ack createView */gtk/*<br>         and you will find<br>               WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.cpp<br>               941:    frame-&gt;createView(size, backgroundColor, transparent, IntSize(), false);<br>
enjoy<br><br><div class="gmail_quote">On Wed, Apr 22, 2009 at 9:09 AM, xunxin <span dir="ltr">&lt;<a href="mailto:wanxunxin@gmail.com">wanxunxin@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi, Graffine:<br> <br>      In QtWebKit, you may use: <br>            page-&gt;mainFrame()-&gt;setScrollBarPolicy(Qt::Horizontal, Qt::ScrollBarAlwaysOff);<br>            page-&gt;mainFrame()-&gt;setScrollBarPolicy(Qt::Vertical, Qt::ScrollBarAlwaysOff);<br>

<br>            page-&gt;setViewportSize( mainFrame-&gt;contentsSize() );<div><div></div><div class="h5"><br><br><div class="gmail_quote">On Mon, Apr 20, 2009 at 5:21 PM, Graffine <span dir="ltr">&lt;<a href="mailto:graffine@gmail.com" target="_blank">graffine@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello:<br>
<br>
I want to render the web page content to small screen size. The goal is<br>
to adjust viewport size to render whole<br>
web content without scroll bar. I think it might start from Frame or<br>
Render class, but I don&#39;t find any feature<br>
or function to do this. Where can I find this?<br>
<font color="#888888"><br>
Graffine.<br>
_______________________________________________<br>
webkit-dev mailing list<br>
<a href="mailto:webkit-dev@lists.webkit.org" target="_blank">webkit-dev@lists.webkit.org</a><br>
<a href="http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev" target="_blank">http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev</a><br>
</font></blockquote></div><br>
</div></div></blockquote></div><br>