Changeset 250913 in webkit


Ignore:
Timestamp:
Oct 9, 2019 9:29:12 AM (5 years ago)
Author:
aestes@apple.com
Message:

[iOS] Remove redundant uses of USE(UIKIT_EDITING)
https://bugs.webkit.org/show_bug.cgi?id=202717

Reviewed by Anders Carlsson.

Source/WebCore:

  • page/ios/FrameIOS.mm:

(WebCore::Frame::qualifyingNodeAtViewportLocation):
(WebCore::Frame::approximateNodeAtViewportLocationLegacy):

Source/WebKitLegacy/ios:

  • WebCoreSupport/WebVisiblePosition.mm:

(-[DOMNode startPosition]):
(-[DOMNode endPosition]):

Location:
trunk/Source
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r250912 r250913  
     12019-10-09  Andy Estes  <aestes@apple.com>
     2
     3        [iOS] Remove redundant uses of USE(UIKIT_EDITING)
     4        https://bugs.webkit.org/show_bug.cgi?id=202717
     5
     6        Reviewed by Anders Carlsson.
     7
     8        * page/ios/FrameIOS.mm:
     9        (WebCore::Frame::qualifyingNodeAtViewportLocation):
     10        (WebCore::Frame::approximateNodeAtViewportLocationLegacy):
     11
    1122019-10-09  Chris Dumez  <cdumez@apple.com>
    213
  • trunk/Source/WebCore/page/ios/FrameIOS.mm

    r250642 r250913  
    269269Node* Frame::qualifyingNodeAtViewportLocation(const FloatPoint& viewportLocation, FloatPoint& adjustedViewportLocation, const NodeQualifier& nodeQualifierFunction, ShouldApproximate shouldApproximate, ShouldFindRootEditableElement shouldFindRootEditableElement)
    270270{
    271 #if !USE(UIKIT_EDITING)
    272     UNUSED_PARAM(shouldFindRootEditableElement);
    273 #endif
    274 
    275271    adjustedViewportLocation = viewportLocation;
    276272
     
    286282    Node* approximateNode = nodeQualifierFunction(candidateInfo, 0, 0);
    287283
    288 #if USE(UIKIT_EDITING)
    289284    if (shouldFindRootEditableElement == ShouldFindRootEditableElement::Yes && approximateNode && approximateNode->isContentEditable()) {
    290285        // If we are in editable content, we look for the root editable element.
     
    294289            shouldApproximate = ShouldApproximate::No;
    295290    }
    296 #endif
    297 
    298291
    299292    float scale = page() ? page()->pageScaleFactor() : 1;
     
    371364        IntPoint p = m_view->contentsToWindow(bestPoint);
    372365        adjustedViewportLocation = p;
    373 #if USE(UIKIT_EDITING)
    374366        if (shouldFindRootEditableElement == ShouldFindRootEditableElement::Yes && approximateNode->isContentEditable()) {
    375367            // When in editable content, look for the root editable node again,
     
    377369            approximateNode = approximateNode->rootEditableElement();
    378370        }
    379 #endif
    380371    }
    381372
     
    411402            // We only accept pointer nodes before reaching the body tag.
    412403            if (node->hasTagName(HTMLNames::bodyTag)) {
    413 #if USE(UIKIT_EDITING)
    414404                // Make sure we cover the case of an empty editable body.
    415405                if (!pointerCursorNode && node->isContentEditable())
    416406                    pointerCursorNode = node;
    417 #endif
    418407                bodyHasBeenReached = true;
    419408                pointerCursorStillValid = false;
  • trunk/Source/WebKitLegacy/ios/ChangeLog

    r249066 r250913  
     12019-10-09  Andy Estes  <aestes@apple.com>
     2
     3        [iOS] Remove redundant uses of USE(UIKIT_EDITING)
     4        https://bugs.webkit.org/show_bug.cgi?id=202717
     5
     6        Reviewed by Anders Carlsson.
     7
     8        * WebCoreSupport/WebVisiblePosition.mm:
     9        (-[DOMNode startPosition]):
     10        (-[DOMNode endPosition]):
     11
    1122019-08-23  Chris Dumez  <cdumez@apple.com>
    213
  • trunk/Source/WebKitLegacy/ios/WebCoreSupport/WebVisiblePosition.mm

    r239535 r250913  
    541541- (WebVisiblePosition *)startPosition
    542542{
    543 #if USE(UIKIT_EDITING)
    544543    // When in editable content, we need to calculate the startPosition from the beginning of the
    545544    // editable area.
     
    549548        return [WebVisiblePosition _wrapVisiblePosition:startOfEditableContent(vp)];
    550549    }
    551 #endif
    552550    return [[self rangeOfContents] startPosition];
    553551}
     
    555553- (WebVisiblePosition *)endPosition
    556554{
    557 #if USE(UIKIT_EDITING)
    558555    // When in editable content, we need to calculate the endPosition from the end of the
    559556    // editable area.
     
    563560        return [WebVisiblePosition _wrapVisiblePosition:endOfEditableContent(vp)];
    564561    }
    565 #endif
    566562    return [[self rangeOfContents] endPosition];
    567563}
Note: See TracChangeset for help on using the changeset viewer.