Description was changed from ========== Land complete lifecycle transition for IdleSpellCheckCallback BUG=517298 ========== to ========== ...
3 years, 10 months ago
(2017-02-23 04:50:07 UTC)
#7
Description was changed from
==========
Land complete lifecycle transition for IdleSpellCheckCallback
BUG=517298
==========
to
==========
Implement complete lifecycle transition for IdleSpellCheckCallback
This patch implements complete lifecycle state transition for
IdleSpellCheckCallback. With this patch, idle spell check callback
will be invoked at correct timings. The only thing remaining is to
fill in the member functions which actually perform checking when
the callback is invoked.
BUG=517298
TEST=webkit_unit_tests --gtest_filter=IdleSpellCheckCallbackTest.*
==========
3 years, 10 months ago
(2017-02-23 04:50:20 UTC)
#9
PTAL.
yosin_UTC9
https://codereview.chromium.org/2701983002/diff/60001/third_party/WebKit/Source/core/editing/Editor.cpp File third_party/WebKit/Source/core/editing/Editor.cpp (right): https://codereview.chromium.org/2701983002/diff/60001/third_party/WebKit/Source/core/editing/Editor.cpp#newcode742 third_party/WebKit/Source/core/editing/Editor.cpp:742: frame().setNeedsSpellChecking(); Can we make Editor owns both SpellChecker and ...
3 years, 10 months ago
(2017-02-23 05:20:49 UTC)
#10
Dry run: Try jobs failed on following builders: win_chromium_compile_dbg_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/354375)
3 years, 10 months ago
(2017-02-23 06:10:01 UTC)
#12
https://codereview.chromium.org/2701983002/diff/60001/third_party/WebKit/Source/core/editing/Editor.cpp File third_party/WebKit/Source/core/editing/Editor.cpp (right): https://codereview.chromium.org/2701983002/diff/60001/third_party/WebKit/Source/core/editing/Editor.cpp#newcode742 third_party/WebKit/Source/core/editing/Editor.cpp:742: frame().setNeedsSpellChecking(); On 2017/02/23 at 05:20:48, yosin_UTC9 wrote: > Can ...
3 years, 10 months ago
(2017-02-23 20:46:08 UTC)
#13
https://codereview.chromium.org/2701983002/diff/60001/third_party/WebKit/Sour...
File third_party/WebKit/Source/core/editing/Editor.cpp (right):
https://codereview.chromium.org/2701983002/diff/60001/third_party/WebKit/Sour...
third_party/WebKit/Source/core/editing/Editor.cpp:742:
frame().setNeedsSpellChecking();
On 2017/02/23 at 05:20:48, yosin_UTC9 wrote:
> Can we make Editor owns both SpellChecker and IdleTimeSpellCheckCallback to
make LocalFrame simple?
> Or make SpellChecker to own IdleTimeSpellCheckCallback?
>
> LocalFrame is yet another kitchen sink, we want to decompose it.
I have the feeling that editing-related classes shouldn't be owned by LocalFrame
at all -- they don't make much sense when the document is inactive. See my
comment in crbug.com/695359
It seems to be a different issue, though. If we decide to move classes, let's
move them in different patches.
yosin_UTC9
https://codereview.chromium.org/2701983002/diff/60001/third_party/WebKit/Source/core/editing/Editor.cpp File third_party/WebKit/Source/core/editing/Editor.cpp (right): https://codereview.chromium.org/2701983002/diff/60001/third_party/WebKit/Source/core/editing/Editor.cpp#newcode742 third_party/WebKit/Source/core/editing/Editor.cpp:742: frame().setNeedsSpellChecking(); On 2017/02/23 at 20:46:07, Xiaocheng wrote: > On ...
3 years, 10 months ago
(2017-02-24 02:10:53 UTC)
#14
https://codereview.chromium.org/2701983002/diff/60001/third_party/WebKit/Sour...
File third_party/WebKit/Source/core/editing/Editor.cpp (right):
https://codereview.chromium.org/2701983002/diff/60001/third_party/WebKit/Sour...
third_party/WebKit/Source/core/editing/Editor.cpp:742:
frame().setNeedsSpellChecking();
On 2017/02/23 at 20:46:07, Xiaocheng wrote:
> On 2017/02/23 at 05:20:48, yosin_UTC9 wrote:
> > Can we make Editor owns both SpellChecker and IdleTimeSpellCheckCallback to
make LocalFrame simple?
> > Or make SpellChecker to own IdleTimeSpellCheckCallback?
> >
> > LocalFrame is yet another kitchen sink, we want to decompose it.
>
> I have the feeling that editing-related classes shouldn't be owned by
LocalFrame at all -- they don't make much sense when the document is inactive.
See my comment in crbug.com/695359
>
> It seems to be a different issue, though. If we decide to move classes, let's
move them in different patches.
I feel it is strange that SpellChecker tells LocalFrame about spell checking. I
don't imagine LocalFrame care about spell checking.
I think IdleTimeSpellChecking is just implementation details, it should not be
expose outside SpellChecker or at most core/editing/spellcheck
BTW, it seems it is better that SpellChecker is isolate from Editor, yet another
kitchen sink. Because SpellChecker doesn't(should not) depend on Editor and
Editor should not depend on SpellChecker.
Xiaocheng
The CQ bit was checked by xiaochengh@chromium.org to run a CQ dry run
3 years, 10 months ago
(2017-02-24 19:21:08 UTC)
#15
Dry run: Try jobs failed on following builders: win_chromium_compile_dbg_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/355774)
3 years, 10 months ago
(2017-02-24 20:49:02 UTC)
#18
3 years, 10 months ago
(2017-02-25 01:12:02 UTC)
#23
Dry run: This issue passed the CQ dry run.
yosin_UTC9
lgtm https://codereview.chromium.org/2701983002/diff/100001/third_party/WebKit/Source/core/editing/Editor.cpp File third_party/WebKit/Source/core/editing/Editor.cpp (right): https://codereview.chromium.org/2701983002/diff/100001/third_party/WebKit/Source/core/editing/Editor.cpp#newcode744 third_party/WebKit/Source/core/editing/Editor.cpp:744: spellChecker().respondToChangedContents(endingSelection); We may want to rename |respondToChangedContents()| to ...
3 years, 10 months ago
(2017-02-25 02:22:57 UTC)
#24
lgtm
https://codereview.chromium.org/2701983002/diff/100001/third_party/WebKit/Sou...
File third_party/WebKit/Source/core/editing/Editor.cpp (right):
https://codereview.chromium.org/2701983002/diff/100001/third_party/WebKit/Sou...
third_party/WebKit/Source/core/editing/Editor.cpp:744:
spellChecker().respondToChangedContents(endingSelection);
We may want to rename |respondToChangedContents()| to |didChangeContents()| in
later.
(not in this patch)
https://codereview.chromium.org/2701983002/diff/100001/third_party/WebKit/Sou...
File third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallback.h
(right):
https://codereview.chromium.org/2701983002/diff/100001/third_party/WebKit/Sou...
third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallback.h:20:
public SynchronousMutationObserver {
FYI: We may want to introduce |DocumentShutdownObserver|. I saw some speed
regression due by |SMO::didChangeChildren()| which is called by
ContainerNode::appendChild() and insertBefore() in micro benchmark tests.
Since, |IdleSpellCheckerCallback| don't observer DOM mutation, it is good
candidate of |DocumentShutdownObserver|.
Another client is |FrameSelection| once we make |Editor| to observe node removal
for closing typing command.
Anyway, let's see performance bot for results.
Xiaocheng
Thanks for the review. On 2017/02/25 at 02:22:57, yosin wrote: > lgtm > > https://codereview.chromium.org/2701983002/diff/100001/third_party/WebKit/Source/core/editing/Editor.cpp ...
3 years, 10 months ago
(2017-02-25 02:30:06 UTC)
#25
Thanks for the review.
On 2017/02/25 at 02:22:57, yosin wrote:
> lgtm
>
>
https://codereview.chromium.org/2701983002/diff/100001/third_party/WebKit/Sou...
> File third_party/WebKit/Source/core/editing/Editor.cpp (right):
>
>
https://codereview.chromium.org/2701983002/diff/100001/third_party/WebKit/Sou...
> third_party/WebKit/Source/core/editing/Editor.cpp:744:
spellChecker().respondToChangedContents(endingSelection);
> We may want to rename |respondToChangedContents()| to |didChangeContents()| in
later.
> (not in this patch)
>
>
https://codereview.chromium.org/2701983002/diff/100001/third_party/WebKit/Sou...
> File
third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallback.h
(right):
>
>
https://codereview.chromium.org/2701983002/diff/100001/third_party/WebKit/Sou...
> third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallback.h:20:
public SynchronousMutationObserver {
> FYI: We may want to introduce |DocumentShutdownObserver|. I saw some speed
regression due by |SMO::didChangeChildren()| which is called by
ContainerNode::appendChild() and insertBefore() in micro benchmark tests.
I don't understand. Currently we have only 6 subclasses of SMO, all of which are
one-per-document. We shouldn't be spending a lot of time on no-op SMO callbacks.
Is there any data that I can check?
>
> Since, |IdleSpellCheckerCallback| don't observer DOM mutation, it is good
candidate of |DocumentShutdownObserver|.
> Another client is |FrameSelection| once we make |Editor| to observe node
removal for closing typing command.
>
> Anyway, let's see performance bot for results.
tkent
lgtm https://codereview.chromium.org/2701983002/diff/100001/third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallback.cpp File third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallback.cpp (right): https://codereview.chromium.org/2701983002/diff/100001/third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallback.cpp#newcode209 third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallback.cpp:209: default: Do not use |default:| in |switch| for ...
3 years, 9 months ago
(2017-02-26 20:35:59 UTC)
#26
Thanks for the review. https://codereview.chromium.org/2701983002/diff/100001/third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallback.cpp File third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallback.cpp (right): https://codereview.chromium.org/2701983002/diff/100001/third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallback.cpp#newcode209 third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallback.cpp:209: default: On 2017/02/26 at 20:35:58, ...
3 years, 9 months ago
(2017-02-27 04:07:18 UTC)
#29
CQ is committing da patch. Bot data: {"patchset_id": 120001, "attempt_start_ts": 1488173079208580, "parent_rev": "d57cc7528932df35ce4a7d56f7cfc9dc380e5a09", "commit_rev": "234937696e399887e0acef2ad037c35febca001c"}
3 years, 9 months ago
(2017-02-27 05:45:32 UTC)
#34
CQ is committing da patch.
Bot data: {"patchset_id": 120001, "attempt_start_ts": 1488173079208580,
"parent_rev": "d57cc7528932df35ce4a7d56f7cfc9dc380e5a09", "commit_rev":
"234937696e399887e0acef2ad037c35febca001c"}
commit-bot: I haz the power
Description was changed from ========== Implement complete lifecycle transition for IdleSpellCheckCallback This patch implements complete ...
3 years, 9 months ago
(2017-02-27 05:46:07 UTC)
#35
Message was sent while issue was closed.
Description was changed from
==========
Implement complete lifecycle transition for IdleSpellCheckCallback
This patch implements complete lifecycle state transition for
IdleSpellCheckCallback. With this patch, idle spell check callback
will be invoked at correct timings. The only thing remaining is to
fill in the member functions which actually perform checking when
the callback is invoked.
BUG=517298
TEST=webkit_unit_tests --gtest_filter=IdleSpellCheckCallbackTest.*
==========
to
==========
Implement complete lifecycle transition for IdleSpellCheckCallback
This patch implements complete lifecycle state transition for
IdleSpellCheckCallback. With this patch, idle spell check callback
will be invoked at correct timings. The only thing remaining is to
fill in the member functions which actually perform checking when
the callback is invoked.
BUG=517298
TEST=webkit_unit_tests --gtest_filter=IdleSpellCheckCallbackTest.*
Review-Url: https://codereview.chromium.org/2701983002
Cr-Commit-Position: refs/heads/master@{#453159}
Committed:
https://chromium.googlesource.com/chromium/src/+/234937696e399887e0acef2ad037...
==========
commit-bot: I haz the power
Committed patchset #7 (id:120001) as https://chromium.googlesource.com/chromium/src/+/234937696e399887e0acef2ad037c35febca001c
3 years, 9 months ago
(2017-02-27 05:46:08 UTC)
#36
CQ is committing da patch. Bot data: {"patchset_id": 140001, "attempt_start_ts": 1488176060331720, "parent_rev": "3e5bacc8f0fb54395c3843bcc2eff408c52c10c9", "commit_rev": "46b362641fc483d7d5fd0714d96db6dd39de39f6"}
3 years, 9 months ago
(2017-02-27 08:10:15 UTC)
#42
CQ is committing da patch.
Bot data: {"patchset_id": 140001, "attempt_start_ts": 1488176060331720,
"parent_rev": "3e5bacc8f0fb54395c3843bcc2eff408c52c10c9", "commit_rev":
"46b362641fc483d7d5fd0714d96db6dd39de39f6"}
commit-bot: I haz the power
Description was changed from ========== Implement complete lifecycle transition for IdleSpellCheckCallback This patch implements complete ...
3 years, 9 months ago
(2017-02-27 08:11:15 UTC)
#43
Message was sent while issue was closed.
Description was changed from
==========
Implement complete lifecycle transition for IdleSpellCheckCallback
This patch implements complete lifecycle state transition for
IdleSpellCheckCallback. With this patch, idle spell check callback
will be invoked at correct timings. The only thing remaining is to
fill in the member functions which actually perform checking when
the callback is invoked.
BUG=517298
TEST=webkit_unit_tests --gtest_filter=IdleSpellCheckCallbackTest.*
Review-Url: https://codereview.chromium.org/2701983002
Cr-Commit-Position: refs/heads/master@{#453159}
Committed:
https://chromium.googlesource.com/chromium/src/+/234937696e399887e0acef2ad037...
==========
to
==========
Implement complete lifecycle transition for IdleSpellCheckCallback
This patch implements complete lifecycle state transition for
IdleSpellCheckCallback. With this patch, idle spell check callback
will be invoked at correct timings. The only thing remaining is to
fill in the member functions which actually perform checking when
the callback is invoked.
BUG=517298
TEST=webkit_unit_tests --gtest_filter=IdleSpellCheckCallbackTest.*
Review-Url: https://codereview.chromium.org/2701983002
Cr-Original-Commit-Position: refs/heads/master@{#453159}
Committed:
https://chromium.googlesource.com/chromium/src/+/234937696e399887e0acef2ad037...
Review-Url: https://codereview.chromium.org/2701983002
Cr-Commit-Position: refs/heads/master@{#453169}
Committed:
https://chromium.googlesource.com/chromium/src/+/46b362641fc483d7d5fd0714d96d...
==========
commit-bot: I haz the power
Committed patchset #8 (id:140001) as https://chromium.googlesource.com/chromium/src/+/46b362641fc483d7d5fd0714d96db6dd39de39f6
3 years, 9 months ago
(2017-02-27 08:11:17 UTC)
#44
Issue 2701983002: Implement complete lifecycle transition for IdleSpellCheckCallback
(Closed)
Created 3 years, 10 months ago by Xiaocheng
Modified 3 years, 9 months ago
Reviewers: tkent, yosin_UTC9
Base URL:
Comments: 8