Commit 973fd8c6 authored by yosin's avatar yosin Committed by Commit bot

Get rid of a unused parameter from Editor::notifyComponentsOnChangedSelection()

This patch gets rid of a unused parameter from
|Editor::notifyComponentsOnChangedSelection()| to simplify source code for
improving code health.

BUG=n/a
TEST=n/a; no behavior changes

Review-Url: https://codereview.chromium.org/2018413003
Cr-Commit-Position: refs/heads/master@{#396797}
parent 2658bb52
......@@ -554,7 +554,7 @@ bool Editor::shouldDeleteRange(const EphemeralRange& range) const
return canDeleteRange(range);
}
void Editor::notifyComponentsOnChangedSelection(const VisibleSelection& oldSelection)
void Editor::notifyComponentsOnChangedSelection()
{
client().respondToChangedSelection(m_frame, frame().selection().getSelectionType());
setStartNewKillRingSequence(true);
......@@ -1311,7 +1311,7 @@ void Editor::respondToChangedSelection(const VisibleSelection& oldSelection, Fra
{
spellChecker().respondToChangedSelection(oldSelection, options);
frame().inputMethodController().cancelCompositionIfSelectionIsInvalid();
notifyComponentsOnChangedSelection(oldSelection);
notifyComponentsOnChangedSelection();
}
SpellChecker& Editor::spellChecker() const
......
......@@ -282,7 +282,7 @@ private:
void revealSelectionAfterEditingOperation(const ScrollAlignment& = ScrollAlignment::alignCenterIfNeeded, RevealExtentOption = DoNotRevealExtent);
void changeSelectionAfterCommand(const VisibleSelection& newSelection, FrameSelection::SetSelectionOptions);
void notifyComponentsOnChangedSelection(const VisibleSelection& oldSelection);
void notifyComponentsOnChangedSelection();
Element* findEventTargetFromSelection() const;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment