[webkit-changes] [WebKit/WebKit] 69ad82: Deploy smart pointers in WebPage.cpp and WebPageMa...

Ryosuke Niwa noreply at github.com
Wed Aug 16 13:58:18 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 69ad827a78b7655646c940bde9fa96d535019145
      https://github.com/WebKit/WebKit/commit/69ad827a78b7655646c940bde9fa96d535019145
  Author: Ryosuke Niwa <rniwa at webkit.org>
  Date:   2023-08-16 (Wed, 16 Aug 2023)

  Changed paths:
    M Source/WebKit/WebProcess/WebPage/WebPage.cpp
    M Source/WebKit/WebProcess/WebPage/mac/WebPageMac.mm

  Log Message:
  -----------
  Deploy smart pointers in WebPage.cpp and WebPageMac.mm
https://bugs.webkit.org/show_bug.cgi?id=260250

Reviewed by Wenson Hsieh.

Make more use of smart pointers in these files.

* Source/WebKit/WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::create):
(WebKit::WebPage::createRemoteSubframe):
(WebKit::WebPage::getFrameInfo):
(WebKit::WebPage::didCommitLoadInAnotherProcess):
(WebKit::WebPage::didFinishLoadInAnotherProcess):
(WebKit::WebPage::frameWasRemovedInAnotherProcess):
(WebKit::WebPage::shouldDispatchSyntheticMouseEventsWhenModifyingSelection const):
(WebKit::WebPage::focusedPluginViewForFrame):
(WebKit::WebPage::pluginViewForFrame):
(WebKit::WebPage::suspendForProcessSwap):
(WebKit::WebPage::loadURLInFrame):
(WebKit::WebPage::loadDataInFrame):
(WebKit::WebPage::loadRequest):
(WebKit::WebPage::navigateToPDFLinkWithSimulatedClick):
(WebKit::WebPage::goToBackForwardItem):
(WebKit::WebPage::tryRestoreScrollPosition):
(WebKit::WebPage::setSize):
(WebKit::WebPage::sendViewportAttributesChanged):
(WebKit::WebPage::scrollMainFrameIfNotAtMaxScrollPosition):
(WebKit::WebPage::drawRect):
(WebKit::WebPage::textZoomFactor const):
(WebKit::WebPage::setTextZoomFactor):
(WebKit::WebPage::pageZoomFactor const):
(WebKit::WebPage::setPageZoomFactor):
(WebKit::WebPage::setPageAndTextZoomFactors):
(WebKit::WebPage::scalePageInViewCoordinates):
(WebKit::WebPage::scaleView):
(WebKit::WebPage::setUseFixedLayout):
(WebKit::WebPage::setFixedLayoutSize):
(WebKit::WebPage::fixedLayoutSize const):
(WebKit::WebPage::updateSizeForCSSDefaultViewportUnits):
(WebKit::WebPage::updateSizeForCSSSmallViewportUnits):
(WebKit::WebPage::updateSizeForCSSLargeViewportUnits):
(WebKit::WebPage::viewportPropertiesDidChange):
(WebKit::WebPage::postInjectedBundleMessage):
(WebKit::WebPage::takeSnapshot):
(WebKit::WebPage::scaledSnapshotWithOptions):
(WebKit::WebPage::snapshotNode):
(WebKit::WebPage::pageDidScroll):
(WebKit::WebPage::pageStoppedScrolling):
(WebKit::WebPage::handleWheelEvent):
(WebKit::WebPage::wheelEvent):
(WebKit::WebPage::dispatchWheelEventWithoutScrolling):
(WebKit::handleKeyEvent):
(WebKit::handleTouchEvent):
(WebKit::WebPage::updatePotentialTapSecurityOrigin):
(WebKit::handleGestureEvent):
(WebKit::WebPage::setBackgroundColor):
(WebKit::WebPage::visibilityDidChange):
(WebKit::WebPage::setNeedsDOMWindowResizeEvent):
(WebKit::WebPage::suspend):
(WebKit::WebPage::runJavaScript):
(WebKit::WebPage::runJavaScriptInFrameInScriptWorld):
(WebKit::WebPage::getContentsAsString):
(WebKit::WebPage::getSelectionAsWebArchiveData):
(WebKit::WebPage::getSelectionOrContentsAsString):
(WebKit::WebPage::getSourceForFrame):
(WebKit::WebPage::getMainResourceDataOfFrame):
(WebKit::resourceDataForFrame):
(WebKit::WebPage::getResourceDataFromFrame):
(WebKit::WebPage::getWebArchiveOfFrame):
(WebKit::WebPage::willCommitLayerTree):
(WebKit::WebPage::sendReportToEndpoints):
(WebKit::WebPage::dragEnded):
(WebKit::WebPage::didStartDrag):
(WebKit::WebPage::dragCancelled):
(WebKit::WebPage::unapplyEditCommand):
(WebKit::WebPage::reapplyEditCommand):
(WebKit::WebPage::unmarkAllMisspellings):
(WebKit::WebPage::unmarkAllBadGrammar):
(WebKit::WebPage::mainFrameHasCustomContentProvider const):
(WebKit::WebPage::updateMainFrameScrollOffsetPinning):
(WebKit::WebPage::mainFrameDidLayout):
(WebKit::WebPage::setMainFrameIsScrollable):
(WebKit::WebPage::SandboxExtensionTracker::shouldReuseCommittedSandboxExtension):
(WebKit::WebPage::beginPrinting):
(WebKit::WebPage::drawToPDF):
(WebKit::WebPage::drawRectToImage):
(WebKit::WebPage::drawPagesToPDFImpl):
(WebKit::pageContainsAnyHorizontalScrollbars):
(WebKit::WebPage::characterIndexForPointAsync):
(WebKit::targetFrameForEditing):
(WebKit::WebPage::cancelComposition):
(WebKit::WebPage::deleteSurrounding):
(WebKit::WebPage::setAlwaysShowsHorizontalScroller):
(WebKit::WebPage::setAlwaysShowsVerticalScroller):
(WebKit::WebPage::setMinimumSizeForAutoLayout):
(WebKit::WebPage::setSizeToContentAutoSizeMaximumSize):
(WebKit::WebPage::setAutoSizingShouldExpandToViewHeight):
(WebKit::WebPage::setViewportSizeForCSSViewportUnits):
(WebKit::WebPage::didCommitLoad):
(WebKit::WebPage::updateAttachmentAttributes):
(WebKit::WebPage::updateAttachmentThumbnail):
(WebKit::WebPage::updateAttachmentIcon):
(WebKit::WebPage::requestAttachmentIcon):
(WebKit::WebPage::attachmentElementWithIdentifier const):
(WebKit::WebPage::getApplicationManifest):
(WebKit::WebPage::getTextFragmentMatch):
(WebKit::WebPage::contextForElement const):
(WebKit::WebPage::startTextManipulationForFrame):
(WebKit::WebPage::configureLoggingChannel):
(WebKit::WebPage::updateWithTextRecognitionResult):
(WebKit::WebPage::createMediaSessionCoordinator):
(WebKit::WebPage::lastNavigationWasAppInitiated):
(WebKit::WebPage::scrollToRect):
(WebKit::WebPage::generateTestReport):
(WebKit::WebPage::useRedirectionForCurrentNavigation):
* Source/WebKit/WebProcess/WebPage/mac/WebPageMac.mm:
(WebKit::WebPage::handleAcceptedCandidate):
(WebKit::WebPage::executeKeypressCommandsInternal):
(WebKit::WebPage::handleEditingKeyboardEvent):
(WebKit::WebPage::attributedSubstringForCharacterRangeAsync):
(WebKit::WebPage::performNonEditingBehaviorForSelector):
(WebKit::WebPage::getStringSelectionForPasteboard):
(WebKit::WebPage::getDataSelectionForPasteboard):
(WebKit::WebPage::shouldDelayWindowOrderingEvent):
(WebKit::WebPage::requestAcceptsFirstMouse):
(WebKit::WebPage::setTopOverhangImage):
(WebKit::WebPage::setBottomOverhangImage):
(WebKit::WebPage::computePagesForPrintingPDFDocument):
(WebKit::WebPage::performImmediateActionHitTestAtLocation):
(WebKit::WebPage::lookupTextAtLocation):
(WebKit::WebPage::immediateActionDidUpdate):
(WebKit::WebPage::immediateActionDidCancel):
(WebKit::WebPage::immediateActionDidComplete):
(WebKit::WebPage::dataDetectorsDidHideUI):
(WebKit::WebPage::didEndMagnificationGesture):

Canonical link: https://commits.webkit.org/266958@main




More information about the webkit-changes mailing list