|
|
DescriptionRemoving HandleVisible enum from FrameSelection
Removing the |HandleVisible| value from |SetSelectionOption|
BUG=633281
Review-Url: https://codereview.chromium.org/2647283006
Cr-Commit-Position: refs/heads/master@{#448686}
Committed: https://chromium.googlesource.com/chromium/src/+/cfc62226b8b375088327fd872c621e90f36f4d7f
Patch Set 1 #
Total comments: 5
Patch Set 2 : Undid SelectionTemplate changes #Patch Set 3 : Using enum instead of bool #Patch Set 4 : rebase #Patch Set 5 : forgot to make handle visible #Patch Set 6 : Making into a dependent patch #Patch Set 7 : Rebase #
Total comments: 1
Patch Set 8 : Fixing nits #
Messages
Total messages: 45 (36 generated)
The CQ bit was checked by amaralp@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm6...) android_compile_dbg on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_comp...)
Description was changed from ========== Removing HandleVisible enum BUG= ========== to ========== Removing HandleVisible enum from FrameSelection Removing the |HandleVisible| value from |SetSelectionOption| BUG=633281 ==========
amaralp@chromium.org changed reviewers: + changwan@chromium.org, yosin@chromium.org
I haven't had time to investigate why some tests are failing, but is this what you were looking for yosin@?
Let's keep |HandleVisible| enum until we make |FrameSeelction::setSelectionAlgorithm<T>()| to take |SelectionTemplate<T>|. BTW, This patch doesn't getting rid of |enum class HandleVisible|. For test failures, it seem bots hiccup. Let's see results of another attempt. https://codereview.chromium.org/2647283006/diff/1/third_party/WebKit/Source/c... File third_party/WebKit/Source/core/editing/FrameSelection.cpp (right): https://codereview.chromium.org/2647283006/diff/1/third_party/WebKit/Source/c... third_party/WebKit/Source/core/editing/FrameSelection.cpp:1361: setSelection(newSelection, isHandleVisible(), Once we use |HandleVisibility| as parameter, we can write |m_handleVisibility| https://codereview.chromium.org/2647283006/diff/1/third_party/WebKit/Source/c... third_party/WebKit/Source/core/editing/FrameSelection.cpp:1384: setSelection(newSelection, isHandleVisible(), CloseTyping | ClearTypingStyle, Once we use |HandleVisibility| as parameter, we can write |m_handleVisibility| https://codereview.chromium.org/2647283006/diff/1/third_party/WebKit/Source/c... File third_party/WebKit/Source/core/editing/FrameSelection.h (right): https://codereview.chromium.org/2647283006/diff/1/third_party/WebKit/Source/c... third_party/WebKit/Source/core/editing/FrameSelection.h:138: bool isHandleVisible = false, Since we still have |HandleVisibility|. Can we use it instead of |bool| parameter? https://codereview.chromium.org/2647283006/diff/1/third_party/WebKit/Source/c... File third_party/WebKit/Source/core/editing/SelectionTemplate.h (right): https://codereview.chromium.org/2647283006/diff/1/third_party/WebKit/Source/c... third_party/WebKit/Source/core/editing/SelectionTemplate.h:69: Builder& setIsHandleVisible(bool); Could you move this change to another patch with test cases in "SelectionTemplateTest.cpp"? BTW, it seems changwang@ also does same change. Please coordinate the work.
https://codereview.chromium.org/2647283006/diff/1/third_party/WebKit/Source/c... File third_party/WebKit/Source/core/editing/SelectionTemplate.h (right): https://codereview.chromium.org/2647283006/diff/1/third_party/WebKit/Source/c... third_party/WebKit/Source/core/editing/SelectionTemplate.h:69: Builder& setIsHandleVisible(bool); On 2017/01/25 04:01:09, Yosi_UTC9 wrote: > Could you move this change to another patch with test cases in > "SelectionTemplateTest.cpp"? > > BTW, it seems changwang@ also does same change. Please coordinate the work. amaralp@, could you work on this as well? I'll wait for your CLs to land first.
The CQ bit was checked by amaralp@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by amaralp@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linu...)
The CQ bit was checked by amaralp@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by amaralp@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by amaralp@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Patchset #7 (id:120001) has been deleted
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by amaralp@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
PTAL, note that this CL is dependent on crrev.com/2664443002
https://codereview.chromium.org/2647283006/diff/140001/third_party/WebKit/Sou... File third_party/WebKit/Source/core/editing/FrameSelection.cpp (right): https://codereview.chromium.org/2647283006/diff/140001/third_party/WebKit/Sou... third_party/WebKit/Source/core/editing/FrameSelection.cpp:623: setSelection(newSelection, HandleVisibility::NotVisible, DoNotSetFocus); To reduce code change, can we introduce: FrameSelection::setSelection(const VisibleSelection& visibleSeleciton, SetSelectionOptions options) { setSelection(visibleSelection, HandleVisibilit::NotVisible, options); }
The CQ bit was checked by amaralp@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_...)
On 2017/02/06 at 05:33:28, yosin wrote: > https://codereview.chromium.org/2647283006/diff/140001/third_party/WebKit/Sou... > File third_party/WebKit/Source/core/editing/FrameSelection.cpp (right): > > https://codereview.chromium.org/2647283006/diff/140001/third_party/WebKit/Sou... > third_party/WebKit/Source/core/editing/FrameSelection.cpp:623: setSelection(newSelection, HandleVisibility::NotVisible, DoNotSetFocus); > To reduce code change, can we introduce: > > FrameSelection::setSelection(const VisibleSelection& visibleSeleciton, SetSelectionOptions options) { > setSelection(visibleSelection, HandleVisibilit::NotVisible, options); > } Done.
lgtm Sorry for delay. m(_ _)m
The CQ bit was checked by amaralp@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch. Bot data: {"patchset_id": 160001, "attempt_start_ts": 1486494049395850, "parent_rev": "66ec149425f5fe673280522e6e6f6d837c72dd08", "commit_rev": "cfc62226b8b375088327fd872c621e90f36f4d7f"}
Message was sent while issue was closed.
Description was changed from ========== Removing HandleVisible enum from FrameSelection Removing the |HandleVisible| value from |SetSelectionOption| BUG=633281 ========== to ========== Removing HandleVisible enum from FrameSelection Removing the |HandleVisible| value from |SetSelectionOption| BUG=633281 Review-Url: https://codereview.chromium.org/2647283006 Cr-Commit-Position: refs/heads/master@{#448686} Committed: https://chromium.googlesource.com/chromium/src/+/cfc62226b8b375088327fd872c62... ==========
Message was sent while issue was closed.
Committed patchset #8 (id:160001) as https://chromium.googlesource.com/chromium/src/+/cfc62226b8b375088327fd872c62... |