Changeset 258970 in webkit
- Timestamp:
- Mar 24, 2020 8:31:27 PM (4 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r258967 r258970 1 2020-03-24 John Wilander <wilander@apple.com> 2 3 Build fix for deprecated DDHighlightCreateWithRectsInVisibleRectWithStyleAndDirection 4 https://bugs.webkit.org/show_bug.cgi?id=209530 5 <rdar://problem/60855794> 6 7 Unreviewed build fix. Solution suggested by Darin Adler. 8 9 * page/mac/ServicesOverlayController.mm: 10 (WebCore::ServicesOverlayController::buildPhoneNumberHighlights): 11 Use of DDHighlightCreateWithRectsInVisibleRectWithStyleAndDirection put between 12 ALLOW_DEPRECATED_DECLARATIONS_BEGIN and ALLOW_DEPRECATED_DECLARATIONS_END. 13 (WebCore::ServicesOverlayController::buildSelectionHighlight): 14 Use of DDHighlightCreateWithRectsInVisibleRectWithStyleAndDirection put between 15 ALLOW_DEPRECATED_DECLARATIONS_BEGIN and ALLOW_DEPRECATED_DECLARATIONS_END. 16 1 17 2020-03-24 Zalan Bujtas <zalan@apple.com> 2 18 -
trunk/Source/WebCore/page/mac/ServicesOverlayController.mm
r257465 r258970 516 516 517 517 CGRect cgRect = rect; 518 ALLOW_DEPRECATED_DECLARATIONS_BEGIN 518 519 RetainPtr<DDHighlightRef> ddHighlight = adoptCF(DDHighlightCreateWithRectsInVisibleRectWithStyleAndDirection(nullptr, &cgRect, 1, mainFrameView.visibleContentRect(), DDHighlightStyleBubbleStandard | DDHighlightStyleStandardIconArrow, YES, NSWritingDirectionNatural, NO, YES)); 520 ALLOW_DEPRECATED_DECLARATIONS_END 519 521 520 522 newPotentialHighlights.add(Highlight::createForTelephoneNumber(*this, ddHighlight, range.releaseNonNull())); … … 557 559 if (!cgRects.isEmpty()) { 558 560 CGRect visibleRect = mainFrameView->visibleContentRect(); 561 ALLOW_DEPRECATED_DECLARATIONS_BEGIN 559 562 RetainPtr<DDHighlightRef> ddHighlight = adoptCF(DDHighlightCreateWithRectsInVisibleRectWithStyleAndDirection(nullptr, cgRects.begin(), cgRects.size(), visibleRect, DDHighlightStyleBubbleNone | DDHighlightStyleStandardIconArrow | DDHighlightStyleButtonShowAlways, YES, NSWritingDirectionNatural, NO, YES)); 560 563 ALLOW_DEPRECATED_DECLARATIONS_END 564 561 565 newPotentialHighlights.add(Highlight::createForSelection(*this, ddHighlight, selectionRange.releaseNonNull())); 562 566 }
Note: See TracChangeset
for help on using the changeset viewer.