[Webkit-unassigned] [Bug 45585] Add zoom support to WebKit2 API
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Sep 10 23:24:30 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=45585
--- Comment #5 from Sam Weinig <sam at webkit.org> 2010-09-10 23:24:30 PST ---
(In reply to comment #4)
> (From update of attachment 67290 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=67290&action=prettypatch
>
> > WebKit2/Shared/CoreIPCSupport/WebPageMessageKinds.h:57
> > + SetPageZoomFactor,
> > + SetTextZoomFactor,
> > + SetPageAndTextZoomFactors,
> Please sort. Better yet, why not eliminate SetPageZoomFactor and SetTextZoomFactor and always send SetPageAndTextZoomFactors?
Ok.
>
> > WebKit2/UIProcess/WebPageProxy.cpp:403
> > + m_textZoomFactor = zoomFactor;
> > + process()->send(WebPageMessage::SetTextZoomFactor, m_pageID, CoreIPC::In(m_textZoomFactor));
> Should this return early and save the IPC if m_textZoomFactor is already equal to zoomFactor?
Yes. Will change.
>
> > WebKit2/UIProcess/API/C/WKPage.cpp:156
> > +float WKPageGetTextZoomFactor(WKPageRef pageRef)
> Why float and not double?
At what level do you think I should do the double to float conversion?
> > WebKitTools/MiniBrowser/mac/BrowserWindowController.m:168
> > +#define kWKDefaultMinimumZoomFactor (.5f)
> > +#define kWKDefaultMaximumZoomFactor (3.0f)
> > +#define kWKDefaultZoomFactorRatio (1.2f)
> Why do these have a WK prefix if they’re not defined in WebKit?
Oh, no good reason. Will change.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list