WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
125769
[iOS] Upstream WebCore/history changes
https://bugs.webkit.org/show_bug.cgi?id=125769
Summary
[iOS] Upstream WebCore/history changes
Daniel Bates
Reported
2013-12-16 00:54:36 PST
Upstream the iOS related changes to WebCore/history.
Attachments
Patch
(17.87 KB, patch)
2013-12-16 00:55 PST
,
Daniel Bates
darin
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Daniel Bates
Comment 1
2013-12-16 00:55:50 PST
Created
attachment 219301
[details]
Patch
Darin Adler
Comment 2
2013-12-16 10:06:51 PST
Comment on
attachment 219301
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=219301&action=review
> Source/WebCore/history/CachedPage.cpp:103 > +#if !PLATFORM(IOS) > if (Element* element = focusedDocument->focusedElement()) > element->updateFocusAppearance(true); > +#else > + if (Element* element = focusedDocument->focusedElement()) { > + // We don't want focused nodes changing scroll position when restoring from the cache > + // as it can cause ugly jumps before we manage to restore the cached position. > + page.mainFrame().selection().suppressScrolling(); > + element->updateFocusAppearance(true); > + page.mainFrame().selection().restoreScrolling(); > + } > +#endif
The #if should be around the calls to suppress/restoreScrolling, not around the entire block.
Daniel Bates
Comment 3
2013-12-16 15:51:01 PST
Committed
r160669
: <
http://trac.webkit.org/changeset/160669
>
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