[webkit-dev] Full Page Zoom Issue

mwas webkit.meister at gmail.com
Thu Nov 27 02:36:51 PST 2008


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20081127/8ef0fabe/attachment.html>


More information about the webkit-dev mailing list