Bug 134751

Summary: [iOS][WK2] subviews of the unscaled view drift out during CA animations
Product: WebKit Reporter: Benjamin Poulain <benjamin>
Component: New BugsAssignee: Benjamin Poulain <benjamin>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, enrica
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch enrica: review+

Description Benjamin Poulain 2014-07-08 19:31:10 PDT
[iOS][WK2] subviews of the unscaled view drift out during CA animations
Comment 1 Benjamin Poulain 2014-07-08 21:20:32 PDT
Created attachment 234618 [details]
Patch
Comment 2 WebKit Commit Bot 2014-07-08 21:24:56 PDT
Attachment 234618 [details] did not pass style-queue:


ERROR: Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm:356:  More than one command on the same line  [whitespace/newline] [4]
ERROR: Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm:356:  Missing space before {  [whitespace/braces] [5]
Total errors found: 2 in 4 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Benjamin Poulain 2014-07-08 23:17:39 PDT
Comment on attachment 234618 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=234618&action=review

> Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm:350
> +    if ([UIView _isInAnimationBlock] && _page->editorState().selectionIsNone && ![_highlightView superview]) {

For landing, I'll remove [_highlightView superview] and do [self _cancelInteraction] instead.

Otherwise the tap highlight animation can still cause the ugly caret issue.
Comment 4 Benjamin Poulain 2014-07-09 12:25:51 PDT
Comment on attachment 234618 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=234618&action=review

> Source/WebKit2/UIProcess/ios/WKContentViewInteraction.h:104
> +    RetainPtr<UIView> _unscaledView;

Fixme: Simon would prefer the name interactionViewsContainerView.
Comment 5 Enrica Casucci 2014-07-09 12:28:28 PDT
Comment on attachment 234618 [details]
Patch

Looks good to me.
Comment 6 Benjamin Poulain 2014-07-09 12:48:10 PDT
Committed r170926: <http://trac.webkit.org/changeset/170926>