|
|
Chromium Code Reviews|
Created:
4 years, 6 months ago by yosin_UTC9 Modified:
4 years, 5 months ago Reviewers:
yoichio CC:
blink-reviews, chromium-reviews, groby+blinkspell_chromium.org Base URL:
https://chromium.googlesource.com/chromium/src.git@master Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionMake SpellChecker::respondToChangedSelection() to update layout tree explicitly
This patch makes |SpellChecker::respondToChangedSelection()| to update layout
tree explicitly for preparation of getting rid of grammar checking related code.
A test expectation of fast/repaint/inline-outline-repaint.html is updated, since
this patch reduced number of update test tree in |respondToChangedSelection()|
by calling |inShadowIncludingDocument()| before |isContentEditable()|, which
updates layout tree.
This patch is also a preparation of crrev.com/2089993003, Get rid of
|EUpdateStyle| parameter from |isEditablePosition()|.
BUG=619452, 623005
TEST=n/a; no user visible changes
Committed: https://crrev.com/00e7954de686c4f376c5eae0cdf367f842f263b0
Cr-Commit-Position: refs/heads/master@{#402115}
Patch Set 1 : 2016-06-24T15:54:37 #
Total comments: 4
Patch Set 2 : 2016-06-27T12:44:31 #
Messages
Total messages: 16 (7 generated)
Description was changed from ========== 2016-06-24T15:54:37 BUG= ========== to ========== Make SpellChecker::respondToChangedSelection() to update layout tree explicitly This patch makes |SpellChecker::respondToChangedSelection()| to update layout tree explicitly for preparation of getting rid of grammar checking related code. A test expectation of fast/repaint/inline-outline-repaint.html is updated, since this patch reduced number of update test tree in |respondToChangedSelection()| by calling |inShadowIncludingDocument()| before |isContentEditable()|, which updates layout tree. BUG=619452 TEST=n/a; no user visible changes ==========
Description was changed from ========== Make SpellChecker::respondToChangedSelection() to update layout tree explicitly This patch makes |SpellChecker::respondToChangedSelection()| to update layout tree explicitly for preparation of getting rid of grammar checking related code. A test expectation of fast/repaint/inline-outline-repaint.html is updated, since this patch reduced number of update test tree in |respondToChangedSelection()| by calling |inShadowIncludingDocument()| before |isContentEditable()|, which updates layout tree. BUG=619452 TEST=n/a; no user visible changes ========== to ========== Make SpellChecker::respondToChangedSelection() to update layout tree explicitly This patch makes |SpellChecker::respondToChangedSelection()| to update layout tree explicitly for preparation of getting rid of grammar checking related code. A test expectation of fast/repaint/inline-outline-repaint.html is updated, since this patch reduced number of update test tree in |respondToChangedSelection()| by calling |inShadowIncludingDocument()| before |isContentEditable()|, which updates layout tree. This patch is also a preparation of crrev.com/ 2089993003, Get rid of EUpdateStyle parameter from isEditablePosition(). BUG=619452 TEST=n/a; no user visible changes ==========
yosin@chromium.org changed reviewers: + yoichio@chromium.org
PTAL win_chromim_rel_ng and win_clag failures aren't related to this patch.
Description was changed from ========== Make SpellChecker::respondToChangedSelection() to update layout tree explicitly This patch makes |SpellChecker::respondToChangedSelection()| to update layout tree explicitly for preparation of getting rid of grammar checking related code. A test expectation of fast/repaint/inline-outline-repaint.html is updated, since this patch reduced number of update test tree in |respondToChangedSelection()| by calling |inShadowIncludingDocument()| before |isContentEditable()|, which updates layout tree. This patch is also a preparation of crrev.com/ 2089993003, Get rid of EUpdateStyle parameter from isEditablePosition(). BUG=619452 TEST=n/a; no user visible changes ========== to ========== Make SpellChecker::respondToChangedSelection() to update layout tree explicitly This patch makes |SpellChecker::respondToChangedSelection()| to update layout tree explicitly for preparation of getting rid of grammar checking related code. A test expectation of fast/repaint/inline-outline-repaint.html is updated, since this patch reduced number of update test tree in |respondToChangedSelection()| by calling |inShadowIncludingDocument()| before |isContentEditable()|, which updates layout tree. This patch is also a preparation of crrev.com/ 2089993003, Get rid of |EUpdateStyle| parameter from |isEditablePosition()|. BUG=619452 TEST=n/a; no user visible changes ==========
Description was changed from ========== Make SpellChecker::respondToChangedSelection() to update layout tree explicitly This patch makes |SpellChecker::respondToChangedSelection()| to update layout tree explicitly for preparation of getting rid of grammar checking related code. A test expectation of fast/repaint/inline-outline-repaint.html is updated, since this patch reduced number of update test tree in |respondToChangedSelection()| by calling |inShadowIncludingDocument()| before |isContentEditable()|, which updates layout tree. This patch is also a preparation of crrev.com/ 2089993003, Get rid of |EUpdateStyle| parameter from |isEditablePosition()|. BUG=619452 TEST=n/a; no user visible changes ========== to ========== Make SpellChecker::respondToChangedSelection() to update layout tree explicitly This patch makes |SpellChecker::respondToChangedSelection()| to update layout tree explicitly for preparation of getting rid of grammar checking related code. A test expectation of fast/repaint/inline-outline-repaint.html is updated, since this patch reduced number of update test tree in |respondToChangedSelection()| by calling |inShadowIncludingDocument()| before |isContentEditable()|, which updates layout tree. This patch is also a preparation of crrev.com/2089993003, Get rid of |EUpdateStyle| parameter from |isEditablePosition()|. BUG=619452, 623005 TEST=n/a; no user visible changes ==========
https://codereview.chromium.org/2092063002/diff/1/third_party/WebKit/Source/c... File third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp (right): https://codereview.chromium.org/2092063002/diff/1/third_party/WebKit/Source/c... third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp:800: if (isContinuousSpellCheckingEnabled && closeTyping) { Why do you introduce the |closeTyping| condition?
https://codereview.chromium.org/2092063002/diff/1/third_party/WebKit/Source/c... File third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp (right): https://codereview.chromium.org/2092063002/diff/1/third_party/WebKit/Source/c... third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp:800: if (isContinuousSpellCheckingEnabled && closeTyping) { On 2016/06/24 at 09:52:39, yoichio wrote: > Why do you introduce the |closeTyping| condition? This if-statement does nothing if |!closeTyping| except for calculating |newAdjacentWords|. When |closeType| is true and another condition, e.g. |shouldCheckOldSelection(oldSelection)| is true, it calls |spellCheckOldSelection()| at L821.
https://codereview.chromium.org/2092063002/diff/1/third_party/WebKit/Source/c... File third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp (right): https://codereview.chromium.org/2092063002/diff/1/third_party/WebKit/Source/c... third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp:800: if (isContinuousSpellCheckingEnabled && closeTyping) { On 2016/06/27 01:46:49, Yosi_UTC9 wrote: > On 2016/06/24 at 09:52:39, yoichio wrote: > > Why do you introduce the |closeTyping| condition? > > This if-statement does nothing if |!closeTyping| except for calculating > |newAdjacentWords|. > When |closeType| is true and another condition, e.g. > |shouldCheckOldSelection(oldSelection)| is true, it calls > |spellCheckOldSelection()| at L821. I see. then we can move the |shouldCheckOldSelection(oldSelection)| condition to this line.
PTAL https://codereview.chromium.org/2092063002/diff/1/third_party/WebKit/Source/c... File third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp (right): https://codereview.chromium.org/2092063002/diff/1/third_party/WebKit/Source/c... third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp:800: if (isContinuousSpellCheckingEnabled && closeTyping) { On 2016/06/27 at 02:10:40, yoichio wrote: > On 2016/06/27 01:46:49, Yosi_UTC9 wrote: > > On 2016/06/24 at 09:52:39, yoichio wrote: > > > Why do you introduce the |closeTyping| condition? > > > > This if-statement does nothing if |!closeTyping| except for calculating > > |newAdjacentWords|. > > When |closeType| is true and another condition, e.g. > > |shouldCheckOldSelection(oldSelection)| is true, it calls > > |spellCheckOldSelection()| at L821. > > I see. then we can move the |shouldCheckOldSelection(oldSelection)| condition > to this line. You're right. Good catch! I moved it.
lgtm
The CQ bit was checked by yosin@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Committed patchset #2 (id:20001)
Message was sent while issue was closed.
Description was changed from ========== Make SpellChecker::respondToChangedSelection() to update layout tree explicitly This patch makes |SpellChecker::respondToChangedSelection()| to update layout tree explicitly for preparation of getting rid of grammar checking related code. A test expectation of fast/repaint/inline-outline-repaint.html is updated, since this patch reduced number of update test tree in |respondToChangedSelection()| by calling |inShadowIncludingDocument()| before |isContentEditable()|, which updates layout tree. This patch is also a preparation of crrev.com/2089993003, Get rid of |EUpdateStyle| parameter from |isEditablePosition()|. BUG=619452, 623005 TEST=n/a; no user visible changes ========== to ========== Make SpellChecker::respondToChangedSelection() to update layout tree explicitly This patch makes |SpellChecker::respondToChangedSelection()| to update layout tree explicitly for preparation of getting rid of grammar checking related code. A test expectation of fast/repaint/inline-outline-repaint.html is updated, since this patch reduced number of update test tree in |respondToChangedSelection()| by calling |inShadowIncludingDocument()| before |isContentEditable()|, which updates layout tree. This patch is also a preparation of crrev.com/2089993003, Get rid of |EUpdateStyle| parameter from |isEditablePosition()|. BUG=619452, 623005 TEST=n/a; no user visible changes Committed: https://crrev.com/00e7954de686c4f376c5eae0cdf367f842f263b0 Cr-Commit-Position: refs/heads/master@{#402115} ==========
Message was sent while issue was closed.
Patchset 2 (id:??) landed as https://crrev.com/00e7954de686c4f376c5eae0cdf367f842f263b0 Cr-Commit-Position: refs/heads/master@{#402115} |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
