[Webkit-unassigned] [Bug 14998] Full page zooming support

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Nov 30 04:31:38 PST 2007


http://bugs.webkit.org/show_bug.cgi?id=14998





------- Comment #37 from alp at atoker.com  2007-11-30 04:31 PDT -------
Simple (untested) way one might do this using CSS, suggestions for a way to
achieve this on WebKitPage rather than WebKitFrame or without modifying the DOM
would be welcome):

void webkit_frame_set_scale(WebKitFrame* frame, double scale)
{
    g_return_if_fail(WEBKIT_IS_FRAME(frame));

    WebKitFramePrivate* frameData = WEBKIT_FRAME_GET_PRIVATE(frame);
    Frame* wframe = frameData->frame;
    Document* document = wframe->document();
    HTMLElement* root =
reinterpret_cast<HTMLElement*>(document->documentElement());
    RenderObject* renderer = root->renderer();
    RenderStyle* style = renderer->style();
    TransformOperations ops;
    ScaleTransformOperation* scaleOp = new ScaleTransformOperation(scale,
scale);
    ops.append(scaleOp);
    style->setTransform(ops);
    renderer->setStyle(style);
}


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list