RESOLVED FIXED Bug 75249
[GTK] Add zoom-text-only setting to WebKit2 GTK+ API
https://bugs.webkit.org/show_bug.cgi?id=75249
Summary [GTK] Add zoom-text-only setting to WebKit2 GTK+ API
Carlos Garcia Campos
Reported 2011-12-27 06:37:20 PST
To set whether zoom level of web view should affect only the text or all page contents.
Attachments
Patch (7.29 KB, patch)
2011-12-27 06:40 PST, Carlos Garcia Campos
gustavo: review+
Carlos Garcia Campos
Comment 1 2011-12-27 06:40:22 PST
WebKit Review Bot
Comment 2 2011-12-27 06:43:13 PST
Thanks for the patch. If this patch contains new public API please make sure it follows the guidelines for new WebKit2 GTK+ API. See http://trac.webkit.org/wiki/WebKitGTK/AddingNewWebKit2API
Martin Robinson
Comment 3 2011-12-27 09:32:30 PST
As I said on the mailing list I'm not sure if "text-only" is entirely accurate.
Gustavo Noronha (kov)
Comment 4 2012-02-16 15:50:44 PST
I agree, Martin. How about we make the setting enable-full-content-zoom, enabled by default, instead? That way we stick to wk1's familiar existing property name and semantics, and do not use conceptually incorrect names. If you agree to that, I believe the patch is otherwise OK.
Martin Robinson
Comment 5 2012-02-16 15:57:54 PST
(In reply to comment #4) > I agree, Martin. How about we make the setting enable-full-content-zoom, enabled by default, instead? That way we stick to wk1's familiar existing property name and semantics, and do not use conceptually incorrect names. If you agree to that, I believe the patch is otherwise OK. Sure, sounds good to me.
Carlos Garcia Campos
Comment 6 2012-02-16 23:31:40 PST
We already agreed on the mailing list that 'text' is accurate and it's a reasonable name: https://lists.webkit.org/pipermail/webkit-gtk/2011-December/000865.html Form controls are scaled because they contain text, but text zoom factor is exactly that, so it's very accurate I would say. The text scale factor is applied to the font size.
Gustavo Noronha (kov)
Comment 7 2012-02-29 08:32:52 PST
Comment on attachment 120581 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=120581&action=review Let's do this. We can always go back and review this API anyway =P > Source/WebKit2/UIProcess/API/gtk/WebKitSettings.cpp:766 > + * text of the page or all the contents. Can you add a bit about text size also affecting things like form controls?
Carlos Garcia Campos
Comment 8 2012-02-29 10:45:26 PST
Note You need to log in before you can comment on or make changes to this bug.