Hi Alp, I have used the comments mentioned in https://bugs.webkit.org/show_bug.cgi?id=14998, Comment #37 you provided for Zooming Using CSS in the following way void webkit_web_view_scale_transform(WebKitWebView *page,float factor) { WebKitWebFrame *webFrame = webkit_web_frame_new(page); Frame *frame = core(webFrame); TransformOperations transform; Document* document = frame->document(); HTMLElement* root = reinterpret_cast<HTMLElement*>(document->documentElement()); RenderObject* renderer = root->renderer(); RenderStyle* style = renderer->style(); transform.operations().append(ScaleTransformOperation::create(factor, factor, ScaleTransformOperation::SCALE)); style->setTransform(transform); renderer->setStyle(style); } This does not perform any Scaling operation and on invoking above function displays a blank page. I am new to WebKit, Kindly Guide! Thanks mwas
On Thursday 27 November 2008 11:36:51 mwas wrote:
Hi Alp,
I have used the comments mentioned in https://bugs.webkit.org/show_bug.cgi?id=14998, Comment #37 you provided for Zooming Using CSS in the following way
I am new to WebKit, Kindly Guide!
Hey, the bug you mention is marked as resolved. This means that a solution was put into the WebKit svn repository and that intermediate comments (like the one you mention) might or might not have lead to the solution that was put into svn. In this case the WebKit/Gtk+ port is even offering API: See http://oe.linuxtogo.org/~zecke/webkit-gtk-api/webkitgtk- WebKitWebView.html and search for zoom. have fun z.
participants (2)
-
Holger Freyther
-
mwas