WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
140632
[iOS][WK2] Redraw find-in-page indicator on rotation
https://bugs.webkit.org/show_bug.cgi?id=140632
Summary
[iOS][WK2] Redraw find-in-page indicator on rotation
Martin Hock
Reported
2015-01-19 12:03:24 PST
Redraw find-in-page indicator on rotation
Attachments
patch
(3.42 KB, patch)
2015-01-19 12:11 PST
,
Martin Hock
thorton
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Martin Hock
Comment 1
2015-01-19 12:11:04 PST
Created
attachment 244915
[details]
patch
Tim Horton
Comment 2
2015-01-20 13:44:05 PST
Comment on
attachment 244915
[details]
patch View in context:
https://bugs.webkit.org/attachment.cgi?id=244915&action=review
> Source/WebKit2/WebProcess/WebPage/FindController.cpp:374 > + if (m_isShowingFindIndicator) {
this should be an early return.
> Source/WebKit2/WebProcess/WebPage/WebPage.cpp:3481 > + m_findController.redraw();
Might this be helpful on Mac too? Does it do the right thing there? (I'm guessing not, so this is probably best for now)
> Source/WebKit2/WebProcess/WebPage/ios/FindControllerIOS.mm:99 > + m_webPage->zoomToRect(matchRect, m_webPage->minimumPageScaleFactor(), std::min(m_webPage->maximumPageScaleFactor(), maximumFindIndicatorZoom));
Why this change? If the highlighted text moves out of view after a layout, wouldn't we want to zoom to it?
Martin Hock
Comment 3
2015-01-20 13:54:07 PST
(In reply to
comment #2
)
> > Source/WebKit2/WebProcess/WebPage/FindController.cpp:374 > > + if (m_isShowingFindIndicator) { > > this should be an early return.
Will do.
> > Source/WebKit2/WebProcess/WebPage/WebPage.cpp:3481 > > + m_findController.redraw(); > > Might this be helpful on Mac too? Does it do the right thing there? (I'm > guessing not, so this is probably best for now)
The changes don't seem to be necessary on Mac.
> > Source/WebKit2/WebProcess/WebPage/ios/FindControllerIOS.mm:99 > > + m_webPage->zoomToRect(matchRect, m_webPage->minimumPageScaleFactor(), std::min(m_webPage->maximumPageScaleFactor(), maximumFindIndicatorZoom)); > > Why this change? If the highlighted text moves out of view after a layout, > wouldn't we want to zoom to it?
I don't think we'd like the view to move constantly if text is animated. Furthermore, the user panning could trigger this code and we wouldn't like that to move the view around, either.
Martin Hock
Comment 4
2015-01-20 14:21:22 PST
Committed
r178755
: <
http://trac.webkit.org/changeset/178755
>
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