Changeset 250913 in webkit
- Timestamp:
- Oct 9, 2019 9:29:12 AM (5 years ago)
- Location:
- trunk/Source
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r250912 r250913 1 2019-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 1 12 2019-10-09 Chris Dumez <cdumez@apple.com> 2 13 -
trunk/Source/WebCore/page/ios/FrameIOS.mm
r250642 r250913 269 269 Node* Frame::qualifyingNodeAtViewportLocation(const FloatPoint& viewportLocation, FloatPoint& adjustedViewportLocation, const NodeQualifier& nodeQualifierFunction, ShouldApproximate shouldApproximate, ShouldFindRootEditableElement shouldFindRootEditableElement) 270 270 { 271 #if !USE(UIKIT_EDITING)272 UNUSED_PARAM(shouldFindRootEditableElement);273 #endif274 275 271 adjustedViewportLocation = viewportLocation; 276 272 … … 286 282 Node* approximateNode = nodeQualifierFunction(candidateInfo, 0, 0); 287 283 288 #if USE(UIKIT_EDITING)289 284 if (shouldFindRootEditableElement == ShouldFindRootEditableElement::Yes && approximateNode && approximateNode->isContentEditable()) { 290 285 // If we are in editable content, we look for the root editable element. … … 294 289 shouldApproximate = ShouldApproximate::No; 295 290 } 296 #endif297 298 291 299 292 float scale = page() ? page()->pageScaleFactor() : 1; … … 371 364 IntPoint p = m_view->contentsToWindow(bestPoint); 372 365 adjustedViewportLocation = p; 373 #if USE(UIKIT_EDITING)374 366 if (shouldFindRootEditableElement == ShouldFindRootEditableElement::Yes && approximateNode->isContentEditable()) { 375 367 // When in editable content, look for the root editable node again, … … 377 369 approximateNode = approximateNode->rootEditableElement(); 378 370 } 379 #endif380 371 } 381 372 … … 411 402 // We only accept pointer nodes before reaching the body tag. 412 403 if (node->hasTagName(HTMLNames::bodyTag)) { 413 #if USE(UIKIT_EDITING)414 404 // Make sure we cover the case of an empty editable body. 415 405 if (!pointerCursorNode && node->isContentEditable()) 416 406 pointerCursorNode = node; 417 #endif418 407 bodyHasBeenReached = true; 419 408 pointerCursorStillValid = false; -
trunk/Source/WebKitLegacy/ios/ChangeLog
r249066 r250913 1 2019-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 1 12 2019-08-23 Chris Dumez <cdumez@apple.com> 2 13 -
trunk/Source/WebKitLegacy/ios/WebCoreSupport/WebVisiblePosition.mm
r239535 r250913 541 541 - (WebVisiblePosition *)startPosition 542 542 { 543 #if USE(UIKIT_EDITING)544 543 // When in editable content, we need to calculate the startPosition from the beginning of the 545 544 // editable area. … … 549 548 return [WebVisiblePosition _wrapVisiblePosition:startOfEditableContent(vp)]; 550 549 } 551 #endif552 550 return [[self rangeOfContents] startPosition]; 553 551 } … … 555 553 - (WebVisiblePosition *)endPosition 556 554 { 557 #if USE(UIKIT_EDITING)558 555 // When in editable content, we need to calculate the endPosition from the end of the 559 556 // editable area. … … 563 560 return [WebVisiblePosition _wrapVisiblePosition:endOfEditableContent(vp)]; 564 561 } 565 #endif566 562 return [[self rangeOfContents] endPosition]; 567 563 }
Note: See TracChangeset
for help on using the changeset viewer.