Skip to content

Commit

Permalink
FocusController::focusedOrMainFrame should return a LocalFrame* (Foll…
Browse files Browse the repository at this point in the history
…ow-up fix)

https://bugs.webkit.org/show_bug.cgi?id=269761
rdar://116201648

Unreviewed build fix.

* Source/WebKit/WebProcess/WebPage/Cocoa/TextCheckingControllerProxy.mm:
(WebKit::TextCheckingControllerProxy::replaceRelativeToSelection):

Canonical link: https://commits.webkit.org/275183@main
  • Loading branch information
JonWBedard committed Feb 22, 2024
1 parent 29552da commit 36e218f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ typedef NS_ENUM(NSInteger, NSSpellingState) {

void TextCheckingControllerProxy::replaceRelativeToSelection(const WebCore::AttributedString& annotatedString, int64_t selectionOffset, uint64_t length, uint64_t relativeReplacementLocation, uint64_t relativeReplacementLength)
{
Ref frame = m_page.corePage()->checkedFocusController()->focusedOrMainFrame();
RefPtr frame = m_page.corePage()->checkedFocusController()->focusedOrMainFrame();
if (!frame)
return;
auto& frameSelection = frame->selection();
if (!frameSelection.selection().isContentEditable())
return;
Expand Down

0 comments on commit 36e218f

Please sign in to comment.