Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(340)

Issue 1740173003: TextIteratorAlgorithm should not force layout update in constructor. (Closed)

Created:
4 years, 10 months ago by dglazkov
Modified:
4 years, 9 months ago
Reviewers:
esprehn, yosin_UTC9
CC:
blink-reviews, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

TextIteratorAlgorithm should not force layout update in constructor. Asking to update layout should not be done at this level -- updating layout is part of the document/view lifecycle and should be coordinated at a higher level than an iterator constructor. Thus, move calling Document::updateLayoutIgnorePendingStylesheets up to the callsites of the TextIterator constructor. These callsites should be audited and moved up even farther up the call stack. BUG=590295 Committed: https://crrev.com/4ed5e3b54598950731022926b09fdc8742abea74 Cr-Commit-Position: refs/heads/master@{#379205}

Patch Set 1 #

Patch Set 2 : Added some explicit layout calls. #

Patch Set 3 : Fixed content_browsertests compile. #

Patch Set 4 : Oops, missed PlainTextRange::create. #

Patch Set 5 : Ah, needed to go deeper. #

Total comments: 1

Patch Set 6 : Added FrameView ASSERT. #

Patch Set 7 : Tweaked ASSERT, filed a bug. #

Patch Set 8 : Removed my WIP comment. #

Messages

Total messages: 51 (20 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1740173003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1740173003/1
4 years, 10 months ago (2016-02-26 22:23:15 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/122407)
4 years, 10 months ago (2016-02-26 22:49:32 UTC) #4
dglazkov
Added some explicit layout calls.
4 years, 10 months ago (2016-02-27 00:50:35 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1740173003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1740173003/20001
4 years, 10 months ago (2016-02-27 00:53:11 UTC) #7
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/122527)
4 years, 10 months ago (2016-02-27 01:21:01 UTC) #9
dglazkov
Fixed content_browsertests compile.
4 years, 10 months ago (2016-02-27 04:52:45 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1740173003/30001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1740173003/30001
4 years, 10 months ago (2016-02-27 04:53:29 UTC) #12
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/173446)
4 years, 10 months ago (2016-02-27 05:38:36 UTC) #14
dglazkov
Oops, missed PlainTextRange::create.
4 years, 9 months ago (2016-02-28 05:29:13 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1740173003/50001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1740173003/50001
4 years, 9 months ago (2016-02-28 05:29:23 UTC) #17
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/181069)
4 years, 9 months ago (2016-02-28 06:57:13 UTC) #19
dglazkov
Ah, needed to go deeper.
4 years, 9 months ago (2016-02-28 16:48:44 UTC) #21
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1740173003/70001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1740173003/70001
4 years, 9 months ago (2016-02-28 16:48:55 UTC) #22
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-02-28 18:07:20 UTC) #24
dglazkov
PTAL
4 years, 9 months ago (2016-03-01 05:33:03 UTC) #27
yosin_UTC9
lgtm Sorry, editing is the biggest source of updatingLayoutTree().
4 years, 9 months ago (2016-03-01 06:17:38 UTC) #28
esprehn
https://codereview.chromium.org/1740173003/diff/70001/third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp File third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp (right): https://codereview.chromium.org/1740173003/diff/70001/third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp#newcode149 third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp:149: ASSERT(!start.document()->needsLayoutTreeUpdate()); Sadly due to bad naming checking this isn't ...
4 years, 9 months ago (2016-03-01 06:34:46 UTC) #29
dglazkov
Added FrameView ASSERT.
4 years, 9 months ago (2016-03-03 04:26:13 UTC) #31
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1740173003/90001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1740173003/90001
4 years, 9 months ago (2016-03-03 04:26:18 UTC) #32
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/189661)
4 years, 9 months ago (2016-03-03 05:56:47 UTC) #34
dglazkov
Tweaked ASSERT, filed a bug.
4 years, 9 months ago (2016-03-04 01:05:55 UTC) #36
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1740173003/110001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1740173003/110001
4 years, 9 months ago (2016-03-04 01:06:24 UTC) #37
dglazkov
Removed my WIP comment.
4 years, 9 months ago (2016-03-04 01:28:24 UTC) #39
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1740173003/130001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1740173003/130001
4 years, 9 months ago (2016-03-04 01:28:43 UTC) #40
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-04 03:03:32 UTC) #42
esprehn
lgtm
4 years, 9 months ago (2016-03-04 03:07:56 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1740173003/130001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1740173003/130001
4 years, 9 months ago (2016-03-04 04:08:35 UTC) #46
commit-bot: I haz the power
Committed patchset #8 (id:130001)
4 years, 9 months ago (2016-03-04 04:14:36 UTC) #47
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/4ed5e3b54598950731022926b09fdc8742abea74 Cr-Commit-Position: refs/heads/master@{#379205}
4 years, 9 months ago (2016-03-04 04:16:11 UTC) #49
Marc Treib
A revert of this CL (patchset #8 id:130001) has been created in https://codereview.chromium.org/1762993002/ by treib@chromium.org. ...
4 years, 9 months ago (2016-03-04 10:49:04 UTC) #50
dglazkov
4 years, 9 months ago (2016-03-04 19:48:43 UTC) #51
On 2016/03/04 at 10:49:04, treib wrote:
> A revert of this CL (patchset #8 id:130001) has been created in
https://codereview.chromium.org/1762993002/ by treib@chromium.org.
> 
> The reason for reverting is: Suspected of breaking
RenderViewImplTest.OnHandleKeyboardEvent on
https://build.chromium.org/p/chromium.win/builders/Win%20x64%20GN%20(dbg)
> 
> First failing build:
>
https://build.chromium.org/p/chromium.win/builders/Win%20x64%20GN%20%28dbg%29....

Thank you for reverting, treib!

Powered by Google App Engine
This is Rietveld 408576698