[webkit-dev] Rendering for small screen
xunxin
wanxunxin at gmail.com
Wed Apr 22 02:47:22 PDT 2009
Hi, Graffine:
you may try this fuction to ajust viewport size.
Frame::setZoomFactor(float percent, bool isTextOnly)
where the function Frame::createView is called? you may try this
command
ack createView */gtk/*
and you will find
WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.cpp
941: frame->createView(size, backgroundColor, transparent,
IntSize(), false);
enjoy
On Wed, Apr 22, 2009 at 9:09 AM, xunxin <wanxunxin at gmail.com> wrote:
> Hi, Graffine:
>
> In QtWebKit, you may use:
> page->mainFrame()->setScrollBarPolicy(Qt::Horizontal,
> Qt::ScrollBarAlwaysOff);
> page->mainFrame()->setScrollBarPolicy(Qt::Vertical,
> Qt::ScrollBarAlwaysOff);
>
> page->setViewportSize( mainFrame->contentsSize() );
>
>
> On Mon, Apr 20, 2009 at 5:21 PM, Graffine <graffine at gmail.com> wrote:
>
>> Hello:
>>
>> I want to render the web page content to small screen size. The goal is
>> to adjust viewport size to render whole
>> web content without scroll bar. I think it might start from Frame or
>> Render class, but I don't find any feature
>> or function to do this. Where can I find this?
>>
>> Graffine.
>> _______________________________________________
>> webkit-dev mailing list
>> webkit-dev at lists.webkit.org
>> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20090422/79d8385d/attachment.html>
More information about the webkit-dev
mailing list