WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
72030
[Qt] the QQuickWebView should support double-tap to zoom
https://bugs.webkit.org/show_bug.cgi?id=72030
Summary
[Qt] the QQuickWebView should support double-tap to zoom
Kenneth Rohde Christiansen
Reported
2011-11-10 08:47:12 PST
SSIA
Attachments
Patch
(9.40 KB, patch)
2011-11-10 08:52 PST
,
Kenneth Rohde Christiansen
no flags
Details
Formatted Diff
Diff
Rebased
(9.40 KB, patch)
2011-11-10 09:03 PST
,
Kenneth Rohde Christiansen
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Kenneth Rohde Christiansen
Comment 1
2011-11-10 08:52:00 PST
Created
attachment 114510
[details]
Patch
Zeno Albisser
Comment 2
2011-11-10 08:56:38 PST
Comment on
attachment 114510
[details]
Patch looks awesome to me :)
Kenneth Rohde Christiansen
Comment 3
2011-11-10 09:03:18 PST
Created
attachment 114515
[details]
Rebased
Andreas Kling
Comment 4
2011-11-10 09:18:47 PST
Comment on
attachment 114515
[details]
Rebased View in context:
https://bugs.webkit.org/attachment.cgi?id=114515&action=review
r=me with some cool stories, bro.
> Source/WebKit2/UIProcess/qt/QtViewportInteractionEngine.cpp:251 > + if (scrollAnimationActive() || scaleAnimationActive()) > + return; > + > + if (!targetArea.isValid()) > + return;
Nit: I'd put the !targetArea.isValid() check first, since it's inline.
> Source/WebKit2/UIProcess/qt/QtViewportInteractionEngine.cpp:253 > + int margin = 10; // We want at least a little bit or margin.
This variable should be const.
> Source/WebKit2/UIProcess/qt/QtViewportInteractionEngine.cpp:273 > + QRectF endPosRange = computePosRangeForItemAtScale(endItemScale);
endPositionRange would be a better name I think. Actually, thinking about it, I personally prefer "final" to "end" in this context, but maybe "end" is an existing QtQuick convention. Regardless, NABD.
Kenneth Rohde Christiansen
Comment 5
2011-11-10 12:56:45 PST
(In reply to
comment #4
)
> (From update of
attachment 114515
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=114515&action=review
> > r=me with some cool stories, bro. > > > Source/WebKit2/UIProcess/qt/QtViewportInteractionEngine.cpp:251 > > + if (scrollAnimationActive() || scaleAnimationActive()) > > + return; > > + > > + if (!targetArea.isValid()) > > + return; > > Nit: I'd put the !targetArea.isValid() check first, since it's inline.
Good point
> > Source/WebKit2/UIProcess/qt/QtViewportInteractionEngine.cpp:253 > > + int margin = 10; // We want at least a little bit or margin. > > This variable should be const.
Sure
> > Source/WebKit2/UIProcess/qt/QtViewportInteractionEngine.cpp:273 > > + QRectF endPosRange = computePosRangeForItemAtScale(endItemScale); > > endPositionRange would be a better name I think.
It is, but Pos was choosed to be similar to the QQuick API :-) setPosRange() *hint*
> Actually, thinking about it, I personally prefer "final" to "end" in this context, but maybe "end" is an existing QtQuick convention. Regardless, NABD.
Yeah that is used all over in the API (and in our code)
Kenneth Rohde Christiansen
Comment 6
2011-11-14 04:15:45 PST
Comment on
attachment 114515
[details]
Rebased Landed in 100125
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug