RESOLVED FIXED86773
Don't let -[CALayer renderInContext:] try to render WebView's root layer
https://bugs.webkit.org/show_bug.cgi?id=86773
Summary Don't let -[CALayer renderInContext:] try to render WebView's root layer
Andy Estes
Reported 2012-05-17 14:04:58 PDT
Don't let -[CALayer renderInContext:] try to render WebView's root layer
Attachments
Patch (2.40 KB, patch)
2012-05-17 14:07 PDT, Andy Estes
mitz: review+
Andy Estes
Comment 1 2012-05-17 14:07:15 PDT
Andy Estes
Comment 2 2012-05-17 14:08:37 PDT
mitz
Comment 3 2012-05-17 14:13:30 PDT
Comment on attachment 142548 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=142548&action=review > Source/WebKit/mac/WebView/WebHTMLView.mm:215 > +@interface WebLayerHostingLayer : CALayer I don’t think there’s such a thing as a “layer hosting layer”. Would it be wrong to call this class WebRootLayer?
Simon Fraser (smfr)
Comment 4 2012-05-17 14:13:43 PDT
Comment on attachment 142548 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=142548&action=review > Source/WebKit/mac/ChangeLog:4 > + Don't let -[CALayer renderInContext:] try to render WebView's root layer > + https://bugs.webkit.org/show_bug.cgi?id=86773 You should list the radar here too. > Source/WebKit/mac/WebView/WebHTMLView.mm:5483 > - CALayer* viewLayer = [CALayer layer]; > + CALayer* viewLayer = [[[WebLayerHostingLayer alloc] init] autorelease]; Pretty sure you can still call [WebLayerHostingLayer layer].
Andy Estes
Comment 5 2012-05-17 15:54:18 PDT
(In reply to comment #3) > (From update of attachment 142548 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=142548&action=review > > > Source/WebKit/mac/WebView/WebHTMLView.mm:215 > > +@interface WebLayerHostingLayer : CALayer > > I don’t think there’s such a thing as a “layer hosting layer”. Would it be wrong to call this class WebRootLayer? Nope, it would be very right! Will rename.
Andy Estes
Comment 6 2012-05-17 15:54:33 PDT
(In reply to comment #4) > (From update of attachment 142548 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=142548&action=review > > > Source/WebKit/mac/ChangeLog:4 > > + Don't let -[CALayer renderInContext:] try to render WebView's root layer > > + https://bugs.webkit.org/show_bug.cgi?id=86773 > > You should list the radar here too. Ok. > > > Source/WebKit/mac/WebView/WebHTMLView.mm:5483 > > - CALayer* viewLayer = [CALayer layer]; > > + CALayer* viewLayer = [[[WebLayerHostingLayer alloc] init] autorelease]; > > Pretty sure you can still call [WebLayerHostingLayer layer]. Yeah, I can and will.
Andy Estes
Comment 7 2012-05-17 16:02:03 PDT
(In reply to comment #4) > (From update of attachment 142548 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=142548&action=review > > Source/WebKit/mac/WebView/WebHTMLView.mm:5483 > > - CALayer* viewLayer = [CALayer layer]; > > + CALayer* viewLayer = [[[WebLayerHostingLayer alloc] init] autorelease]; > > Pretty sure you can still call [WebLayerHostingLayer layer]. Oh, no I can't since it's a class method.
Andy Estes
Comment 8 2012-05-17 16:03:32 PDT
(In reply to comment #7) > (In reply to comment #4) > > (From update of attachment 142548 [details] [details]) > > View in context: https://bugs.webkit.org/attachment.cgi?id=142548&action=review > > > Source/WebKit/mac/WebView/WebHTMLView.mm:5483 > > > - CALayer* viewLayer = [CALayer layer]; > > > + CALayer* viewLayer = [[[WebLayerHostingLayer alloc] init] autorelease]; > > > > Pretty sure you can still call [WebLayerHostingLayer layer]. > > Oh, no I can't since it's a class method. Please ignore me. This works fine.
Andy Estes
Comment 9 2012-05-17 16:10:28 PDT
Note You need to log in before you can comment on or make changes to this bug.