Bug 129508 - Make UIViews for compositing layers in the UI process on iOS
Summary: Make UIViews for compositing layers in the UI process on iOS
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Simon Fraser (smfr)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-28 14:43 PST by Simon Fraser (smfr)
Modified: 2014-03-08 21:01 PST (History)
5 users (show)

See Also:


Attachments
Patch (61.48 KB, patch)
2014-02-28 14:47 PST, Simon Fraser (smfr)
sam: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Fraser (smfr) 2014-02-28 14:43:43 PST
Make UIViews for compositing layers in the UI process on iOS
Comment 1 Simon Fraser (smfr) 2014-02-28 14:47:41 PST
Created attachment 225492 [details]
Patch
Comment 2 Sam Weinig 2014-02-28 14:56:26 PST
Comment on attachment 225492 [details]
Patch

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

> Source/WebKit2/Shared/mac/RemoteLayerTreePropertyApplier.mm:41
> +- (void)setSubviews:(NSArray *)subviews;

This should be _web_setSubviews: (Says the council of 2).

> Source/WebKit2/Shared/mac/RemoteLayerTreePropertyApplier.mm:54
> +@implementation UIView (WKUIViewUtilities)
> +- (void)setSubviews:(NSArray *)subviews
> +{
> +    for (UIView* subview in self.subviews)
> +        [subview removeFromSuperview];
> +
> +    for (UIView* view in subviews)
> +        [self addSubview:view];
> +}
> +@end
> +#endif

Please add leading/trailing newlines.

> Source/WebKit2/UIProcess/ios/RemoteLayerTreeHostIOS.mm:109
> +    // FIXME: do through the view.
> +    [[layerOrView layer] web_disableAllActions];

Capital D in do!

> Source/WebKit2/UIProcess/ios/RemoteScrollingCoordinatorProxyIOS.mm:48
> +    for (auto& it : stateTree.nodeMap()) {
> +        ScrollingStateNode* currNode = it.value;

You can do for (auto& currentNode : stateTree.nodeMap().values())

> Source/WebKit2/UIProcess/ios/WebVideoFullscreenManagerProxy.mm:117
> +}
> +
> +    
> +} // namespace WebKit

Too many lines!!!!!!!
Comment 3 Simon Fraser (smfr) 2014-03-08 21:01:19 PST
http://trac.webkit.org/changeset/164890