[webkit-dev] Zoom functionality

Pradnya Pathak pradnya.pathak at gmail.com
Mon Oct 6 23:52:24 PDT 2008


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.

Regards,
Pradnya

On Tue, Oct 7, 2008 at 11:55 AM, David Hyatt <hyatt at apple.com> wrote:

> On Oct 7, 2008, at 1:22 AM, Pradnya Pathak wrote:
>
>  Hello All,
>>
>> Does anyone has idea about if the 'zoom factor' style is inherited from
>> parent of a node? can a node  have different zoom factor than its parent?
>>
>
> It can yes.  zoom is multiplicative so if a parent has a zoom of 2 and a
> child has a zoom of 3, the content within the child would have a cumulative
> zoom factor of 6.  style()->zoom() holds the zoom factor specified on an
> element, while style()->effectiveZoom() will tell you the cumulative zoom
> factor.
>
> zoom can also take a special value, reset, which can be used to ignore your
> ancestor zoom factor, thus resetting you back to an effective zoom of 1.0.
>
> dave
> (hyatt at apple.com)
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.webkit.org/pipermail/webkit-dev/attachments/20081007/d194c833/attachment.html 


More information about the webkit-dev mailing list