[webkit-gtk] WebKit2 zoom API (II)

Martin Robinson mrobinson at webkit.org
Thu Feb 2 08:05:29 PST 2012


On Thu, Feb 2, 2012 at 6:30 AM, Carlos Garcia Campos <cgarcia at igalia.com> wrote:
>  - Rename current set_zoom_level and get_zoom_level as
> set_page_zoom_level and get_page_zoom_level
>  - Add set_text_zoom_level and get_text_zoom_level
>  - We save both values, but when one is set, the other one is reset
> (like it happens with apps calling
> webkit_web_view_set_full_content_zoom() all the time before setting the
> soom level)
>  - That way we have both methods in the aPI and we avoid the setting.
>  - If we eventually find a use case where it makes sense to set both at
> the same time we can just change the behaviour without having to change
> the API (just the impl and the documentation)

This seems like a good plan!

--Martin


More information about the webkit-gtk mailing list