Changeset 214910 in webkit
- Timestamp:
- Apr 4, 2017 3:57:22 PM (7 years ago)
- Location:
- trunk/Source/WebKit/mac
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/mac/ChangeLog
r214893 r214910 1 2017-04-04 Megan Gardner <megan_gardner@apple.com> 2 3 Fix leaks in WebUITextIndicatorData 4 https://bugs.webkit.org/show_bug.cgi?id=170480 5 6 Reviewed by Wenson Hsieh. 7 8 Removes extraneous retains. 9 10 * WebView/WebView.mm: 11 (-[WebUITextIndicatorData initWithImage:textIndicatorData:scale:]): 12 1 13 2017-04-04 Tim Horton <timothy_horton@apple.com> 2 14 -
trunk/Source/WebKit/mac/WebView/WebView.mm
r214893 r214910 650 650 return nil; 651 651 652 _dataInteractionImage = [[ [getUIImageClass() alloc] initWithCGImage:image scale:scale orientation:UIImageOrientationDownMirrored] retain];652 _dataInteractionImage = [[getUIImageClass() alloc] initWithCGImage:image scale:scale orientation:UIImageOrientationDownMirrored]; 653 653 _selectionRectInRootViewCoordinates = indicatorData.selectionRectInRootViewCoordinates; 654 654 _textBoundingRectInRootViewCoordinates = indicatorData.textBoundingRectInRootViewCoordinates; … … 660 660 _contentImageScaleFactor = indicatorData.contentImageScaleFactor; 661 661 if (indicatorData.contentImageWithHighlight) 662 _contentImageWithHighlight = [[ [getUIImageClass() alloc] initWithCGImage:indicatorData.contentImageWithHighlight.get()->nativeImage().get() scale:scale orientation:UIImageOrientationDownMirrored] retain];662 _contentImageWithHighlight = [[getUIImageClass() alloc] initWithCGImage:indicatorData.contentImageWithHighlight.get()->nativeImage().get() scale:scale orientation:UIImageOrientationDownMirrored]; 663 663 if (indicatorData.contentImage) 664 _contentImage = [[ [getUIImageClass() alloc] initWithCGImage:indicatorData.contentImage.get()->nativeImage().get() scale:scale orientation:UIImageOrientationUp] retain];664 _contentImage = [[getUIImageClass() alloc] initWithCGImage:indicatorData.contentImage.get()->nativeImage().get() scale:scale orientation:UIImageOrientationUp]; 665 665 666 666 if (indicatorData.contentImageWithoutSelection) { 667 667 auto nativeImage = indicatorData.contentImageWithoutSelection.get()->nativeImage(); 668 668 if (nativeImage) { 669 _contentImageWithoutSelection = [[ [getUIImageClass() alloc] initWithCGImage:nativeImage.get() scale:scale orientation:UIImageOrientationUp] retain];669 _contentImageWithoutSelection = [[getUIImageClass() alloc] initWithCGImage:nativeImage.get() scale:scale orientation:UIImageOrientationUp]; 670 670 _contentImageWithoutSelectionRectInRootViewCoordinates = indicatorData.contentImageWithoutSelectionRectInRootViewCoordinates; 671 671 } … … 673 673 674 674 if (indicatorData.options & TextIndicatorOptionComputeEstimatedBackgroundColor) 675 _estimatedBackgroundColor = [[ [getUIColorClass() alloc] initWithCGColor:cachedCGColor(indicatorData.estimatedBackgroundColor)] retain];675 _estimatedBackgroundColor = [[getUIColorClass() alloc] initWithCGColor:cachedCGColor(indicatorData.estimatedBackgroundColor)]; 676 676 677 677 return self;
Note: See TracChangeset
for help on using the changeset viewer.