Chromium Code Reviews
Help | Chromium Project | Gerrit Changes | Sign in
(11)

Issue 1201423002: Use VisibleSelection::InDOMTree::equalSelections() instead of operator==() (Closed)

Created:
4 years, 10 months ago by yosin_UTC9
Modified:
4 years, 10 months ago
Reviewers:
hajimehoshi
CC:
blink-reviews, groby+blinkspell_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Use VisibleSelection::InDOMTree::equalSelections() instead of operator==() This patch replaces |operator==| of |VisibleSelection| to |VisibleSelection::InDOMTree::equalSelections()| to make meaning of code clearly, since |VisibleSelection| is defined on both on a DOM tree and a composed tree for improving readability in code health. BUG=n/a TEST=no behavior changes Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197712

Patch Set 1 #

Patch Set 2 : 2015-06-24T15:30:20 Rebase - exclude FrameSelection #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -27 lines) Patch
M Source/core/editing/CompositeEditCommand.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/editing/Editor.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/editing/SelectionController.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/editing/SpellChecker.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/editing/TextInsertionBaseCommand.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/editing/TypingCommand.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/editing/VisibleSelection.h View 1 1 chunk +0 lines, -17 lines 0 comments Download
M Source/core/editing/VisibleSelection.cpp View 1 1 chunk +8 lines, -1 line 4 comments Download

Messages

Total messages: 8 (2 generated)
yosin_UTC9
PTAL
4 years, 10 months ago (2015-06-24 05:35:14 UTC) #2
hajimehoshi
https://codereview.chromium.org/1201423002/diff/20001/Source/core/editing/VisibleSelection.cpp File Source/core/editing/VisibleSelection.cpp (right): https://codereview.chromium.org/1201423002/diff/20001/Source/core/editing/VisibleSelection.cpp#newcode1158 Source/core/editing/VisibleSelection.cpp:1158: if (selection1.affinity() != selection2.affinity() || selection1.isDirectional() != selection2.isDirectional()) Why ...
4 years, 10 months ago (2015-06-24 06:48:46 UTC) #3
yosin_UTC9
https://codereview.chromium.org/1201423002/diff/20001/Source/core/editing/VisibleSelection.cpp File Source/core/editing/VisibleSelection.cpp (right): https://codereview.chromium.org/1201423002/diff/20001/Source/core/editing/VisibleSelection.cpp#newcode1158 Source/core/editing/VisibleSelection.cpp:1158: if (selection1.affinity() != selection2.affinity() || selection1.isDirectional() != selection2.isDirectional()) On ...
4 years, 10 months ago (2015-06-24 07:02:52 UTC) #4
hajimehoshi
lgtm
4 years, 10 months ago (2015-06-24 07:04:53 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1201423002/20001
4 years, 10 months ago (2015-06-24 07:05:16 UTC) #7
commit-bot: I haz the power
4 years, 10 months ago (2015-06-24 07:57:57 UTC) #8
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=197712

Powered by Google App Engine
This is Rietveld 408576698