Changeset 258970 in webkit


Ignore:
Timestamp:
Mar 24, 2020 8:31:27 PM (4 years ago)
Author:
wilander@apple.com
Message:

Build fix for deprecated DDHighlightCreateWithRectsInVisibleRectWithStyleAndDirection
https://bugs.webkit.org/show_bug.cgi?id=209530
<rdar://problem/60855794>

Unreviewed build fix. Solution suggested by Darin Adler.

  • page/mac/ServicesOverlayController.mm:

(WebCore::ServicesOverlayController::buildPhoneNumberHighlights):

Use of DDHighlightCreateWithRectsInVisibleRectWithStyleAndDirection put between
ALLOW_DEPRECATED_DECLARATIONS_BEGIN and ALLOW_DEPRECATED_DECLARATIONS_END.

(WebCore::ServicesOverlayController::buildSelectionHighlight):

Use of DDHighlightCreateWithRectsInVisibleRectWithStyleAndDirection put between
ALLOW_DEPRECATED_DECLARATIONS_BEGIN and ALLOW_DEPRECATED_DECLARATIONS_END.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r258967 r258970  
     12020-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
    1172020-03-24  Zalan Bujtas  <zalan@apple.com>
    218
  • trunk/Source/WebCore/page/mac/ServicesOverlayController.mm

    r257465 r258970  
    516516
    517517        CGRect cgRect = rect;
     518ALLOW_DEPRECATED_DECLARATIONS_BEGIN
    518519        RetainPtr<DDHighlightRef> ddHighlight = adoptCF(DDHighlightCreateWithRectsInVisibleRectWithStyleAndDirection(nullptr, &cgRect, 1, mainFrameView.visibleContentRect(), DDHighlightStyleBubbleStandard | DDHighlightStyleStandardIconArrow, YES, NSWritingDirectionNatural, NO, YES));
     520ALLOW_DEPRECATED_DECLARATIONS_END
    519521
    520522        newPotentialHighlights.add(Highlight::createForTelephoneNumber(*this, ddHighlight, range.releaseNonNull()));
     
    557559        if (!cgRects.isEmpty()) {
    558560            CGRect visibleRect = mainFrameView->visibleContentRect();
     561ALLOW_DEPRECATED_DECLARATIONS_BEGIN
    559562            RetainPtr<DDHighlightRef> ddHighlight = adoptCF(DDHighlightCreateWithRectsInVisibleRectWithStyleAndDirection(nullptr, cgRects.begin(), cgRects.size(), visibleRect, DDHighlightStyleBubbleNone | DDHighlightStyleStandardIconArrow | DDHighlightStyleButtonShowAlways, YES, NSWritingDirectionNatural, NO, YES));
    560            
     563ALLOW_DEPRECATED_DECLARATIONS_END
     564
    561565            newPotentialHighlights.add(Highlight::createForSelection(*this, ddHighlight, selectionRange.releaseNonNull()));
    562566        }
Note: See TracChangeset for help on using the changeset viewer.