[webkit-dev] Zoom functionality

David Hyatt hyatt at apple.com
Tue Oct 7 11:53:59 PDT 2008


zoom affects layout and -webkit-transform does not.  Which one to use  
depends on the effect you're going for.

dave

On Oct 7, 2008, at 9:47 AM, Brett Wilson wrote:

> On Mon, Oct 6, 2008 at 11:52 PM, Pradnya Pathak
> <pradnya.pathak at gmail.com> wrote:
>> Hello,
>>
>> Thanks for the reply.
>>
>> The current zoom functionality in webkit, applies the zoom factor  
>> to the
>> entire page. I want to zoom in only a selected node and  not the  
>> entire
>> page. For this I've modified the Document::recalcStyle() function.  
>> The
>> original function calls Element::recalStyle for the root node.
>> I've modified the function so that it'll call the  
>> Element::recalcStyle
>> function only for the selected node.
>> But, this is not working. I am not able to see any effect on the  
>> selected
>> node.
>>
>> Please let me know if you have any idea/clue for this issue.
>
> The -webkit-transform CSS style sounds like it will do what you need.
> Have you looked into that?
>
> Brett



More information about the webkit-dev mailing list