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

Issue 2299213003: Fix the inconsistent problem while the content of textNodes is changed (Closed)

Created:
4 years, 3 months ago by cathiechentx
Modified:
4 years ago
CC:
blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix the inconsistent problem while the content of textNodes is changed. If the text content of one node who share fingerPrint with others changed, the multipiler of this node might be different from others. This's the reason of this inconsistent problem. The solution: 1. Make superclusters across layouts 2. Mark superclusters if needed 2.1 new roots are added to superclusters 2.2 old roots add some new contents 3. Recalculate the multiplier of the marked superclusters during the first beginLayout(). BUG=612119 Committed: https://crrev.com/bf9901feb0c46cefbd5e7af40fe252a6a92d52cb Cr-Commit-Position: refs/heads/master@{#439093}

Patch Set 1 #

Patch Set 2 : fixed the merge issues #

Patch Set 3 : add layout test cases and fix format issues #

Total comments: 14

Patch Set 4 : 1. change 'FingerPrint' to 'Fingerprint' 2. remove const from BlockSet 3. change 'textAutosizingNew… #

Total comments: 6

Patch Set 5 : using everHadLayout to determine if nodes are new #

Total comments: 16

Patch Set 6 : 1.hashset<fingerprint> to hashset<supercluster*> 2. fixing test cases problem 3. move m_supercluste… #

Patch Set 7 : remove unused fingerprint #

Total comments: 26

Patch Set 8 : 1. fix cr issues 2.fix the nested inherit supercluster inssue #

Total comments: 2

Patch Set 9 : typos #

Total comments: 8

Patch Set 10 : fix cr issues #

Patch Set 11 : need to remove supercluster from m_potentiallyInconsistentSuperclusters when this supercluster is d… #

Patch Set 12 : git rebase... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+396 lines, -62 lines) Patch
M third_party/WebKit/Source/core/layout/LayoutText.cpp View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +9 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/TextAutosizer.h View 1 2 3 4 5 6 7 8 9 10 11 9 chunks +44 lines, -22 lines 0 comments Download
M third_party/WebKit/Source/core/layout/TextAutosizer.cpp View 1 2 3 4 5 6 7 8 9 10 11 25 chunks +165 lines, -40 lines 0 comments Download
M third_party/WebKit/Source/core/layout/TextAutosizerTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +178 lines, -0 lines 0 comments Download

Messages

Total messages: 70 (29 generated)
cathiechentx
hey guys, I'm trying to solve issue 612119, but it seems to be a big ...
4 years, 3 months ago (2016-09-02 13:10:07 UTC) #14
skobes
Thanks for looking at this. If I understand correctly, this patch uses Document::postTask during layout ...
4 years, 3 months ago (2016-09-02 19:36:58 UTC) #15
cathiechentx
On 2016/09/02 19:36:58, skobes wrote: > Thanks for looking at this. > > If I ...
4 years, 3 months ago (2016-09-04 01:28:31 UTC) #16
cathiechentx
On 2016/09/04 01:28:31, cathiechentx wrote: > On 2016/09/02 19:36:58, skobes wrote: > > Thanks for ...
4 years, 3 months ago (2016-09-06 10:33:44 UTC) #17
skobes
On 2016/09/06 10:33:44, cathiechentx wrote: > I read the code again. Maybe "retaining superclusters across ...
4 years, 3 months ago (2016-09-06 18:03:44 UTC) #18
cathiechentx
On 2016/09/06 18:03:44, skobes wrote: > On 2016/09/06 10:33:44, cathiechentx wrote: > > I read ...
4 years, 2 months ago (2016-10-18 11:35:08 UTC) #19
cathiechentx
Hi skobes, As this patch changes a lot, I like to clarify something here. Main ...
4 years, 1 month ago (2016-11-08 03:52:55 UTC) #24
skobes
Sorry for the delay. Overall approach seems reasonable but would like pdr@ to have a ...
4 years, 1 month ago (2016-11-09 03:11:39 UTC) #26
cathiechentx
Thanks for review, skobes. That is really inspiring:) Looking forward to the review of pdr. ...
4 years, 1 month ago (2016-11-09 12:58:47 UTC) #27
pdr.
Thanks for taking the time to work on this tough area of code. This is ...
4 years, 1 month ago (2016-11-10 06:04:09 UTC) #28
pdr.
On 2016/11/10 at 06:04:09, pdr. wrote: > I'm thinking something along these lines: Ah, realized ...
4 years, 1 month ago (2016-11-10 06:19:12 UTC) #29
cathiechentx
Thanks for review, pdr:) The point you worried about is the hardest part I faced... ...
4 years, 1 month ago (2016-11-11 09:34:13 UTC) #30
cathiechentx
solution trigger cost Bottom up ( LayoutText to root) StyleInheritedData 1. When new text added, ...
4 years, 1 month ago (2016-11-11 09:36:08 UTC) #31
cathiechentx
solution trigger cost Bottom up ( LayoutText to root) StyleInheritedData 1. When new text added, ...
4 years, 1 month ago (2016-11-11 09:36:09 UTC) #32
cathiechentx
On 2016/11/11 09:34:13, cathiechentx wrote: > Thanks for review, pdr:) The point you worried about ...
4 years, 1 month ago (2016-11-11 11:55:07 UTC) #33
cathiechentx
https://docs.google.com/document/d/14WpGRZd4UTGAyOVW9dvIG7Rn5tiY9JtfK2ochHuRvw0/edit?userstoinvite=cathiechen727@gmail.com&ts=5829310a&actionButton=1 Just found an easy way to share document;) I think maybe LayoutObjectBitfields is a ...
4 years, 1 month ago (2016-11-14 03:43:34 UTC) #34
pdr.
In writing a response, I tried creating a proof-of-concept and found my suggested approach will ...
4 years, 1 month ago (2016-11-15 04:00:58 UTC) #35
cathiechentx
On 2016/11/15 04:00:58, pdr. wrote: > In writing a response, I tried creating a proof-of-concept ...
4 years, 1 month ago (2016-11-15 04:30:23 UTC) #36
pdr.
On 2016/11/15 at 04:30:23, cathiechen wrote: > On 2016/11/15 04:00:58, pdr. wrote: > > In ...
4 years, 1 month ago (2016-11-15 06:09:56 UTC) #37
cathiechentx
> Question to make sure I understand your patch: you've modified Supercluster so > that ...
4 years, 1 month ago (2016-11-16 09:54:05 UTC) #38
pdr.
(Sorry for the slow review, got caught up with some other work. I won't be ...
4 years, 1 month ago (2016-11-17 22:23:36 UTC) #39
cathiechentx
On 2016/11/17 22:23:36, pdr. wrote: > (Sorry for the slow review, got caught up with ...
4 years, 1 month ago (2016-11-18 03:09:51 UTC) #40
pdr.
https://codereview.chromium.org/2299213003/diff/80001/third_party/WebKit/Source/core/layout/LayoutText.cpp File third_party/WebKit/Source/core/layout/LayoutText.cpp (right): https://codereview.chromium.org/2299213003/diff/80001/third_party/WebKit/Source/core/layout/LayoutText.cpp#newcode215 third_party/WebKit/Source/core/layout/LayoutText.cpp:215: if (!oldStyle && textAutosizer) This approach of calling newNodeAdded ...
4 years, 1 month ago (2016-11-20 06:38:14 UTC) #41
cathiechentx
https://codereview.chromium.org/2299213003/diff/80001/third_party/WebKit/Source/core/layout/LayoutText.cpp File third_party/WebKit/Source/core/layout/LayoutText.cpp (right): https://codereview.chromium.org/2299213003/diff/80001/third_party/WebKit/Source/core/layout/LayoutText.cpp#newcode215 third_party/WebKit/Source/core/layout/LayoutText.cpp:215: if (!oldStyle && textAutosizer) On 2016/11/20 06:38:13, pdr. wrote: ...
4 years, 1 month ago (2016-11-22 08:14:48 UTC) #42
pdr.
I think this looks good at a high level. There are some smaller layout-related issues. ...
4 years ago (2016-12-03 00:01:57 UTC) #43
skobes
https://codereview.chromium.org/2299213003/diff/120001/third_party/WebKit/Source/core/layout/TextAutosizer.cpp File third_party/WebKit/Source/core/layout/TextAutosizer.cpp (right): https://codereview.chromium.org/2299213003/diff/120001/third_party/WebKit/Source/core/layout/TextAutosizer.cpp#newcode543 third_party/WebKit/Source/core/layout/TextAutosizer.cpp:543: block = parent->containingBlock(); containingBlock() is a bit different from ...
4 years ago (2016-12-06 01:00:40 UTC) #44
cathiechentx
Hey guys, Thanks very very much for your time and patient:) There's one more thing ...
4 years ago (2016-12-13 13:31:30 UTC) #45
skobes
Thanks, just a few nits left. https://codereview.chromium.org/2299213003/diff/160001/third_party/WebKit/Source/core/layout/TextAutosizer.cpp File third_party/WebKit/Source/core/layout/TextAutosizer.cpp (right): https://codereview.chromium.org/2299213003/diff/160001/third_party/WebKit/Source/core/layout/TextAutosizer.cpp#newcode544 third_party/WebKit/Source/core/layout/TextAutosizer.cpp:544: Supercluster* lastSupercluser = ...
4 years ago (2016-12-14 21:40:37 UTC) #46
cathiechentx
https://codereview.chromium.org/2299213003/diff/160001/third_party/WebKit/Source/core/layout/TextAutosizer.cpp File third_party/WebKit/Source/core/layout/TextAutosizer.cpp (right): https://codereview.chromium.org/2299213003/diff/160001/third_party/WebKit/Source/core/layout/TextAutosizer.cpp#newcode544 third_party/WebKit/Source/core/layout/TextAutosizer.cpp:544: Supercluster* lastSupercluser = nullptr; On 2016/12/14 21:40:36, skobes wrote: ...
4 years ago (2016-12-15 03:03:23 UTC) #47
skobes
lgtm
4 years ago (2016-12-15 03:09:19 UTC) #48
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2299213003/180001
4 years ago (2016-12-15 03:18:20 UTC) #50
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/199692)
4 years ago (2016-12-15 04:53:02 UTC) #52
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2299213003/180001
4 years ago (2016-12-15 05:22:26 UTC) #54
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/199750)
4 years ago (2016-12-15 06:46:12 UTC) #56
cathiechentx
On 2016/12/15 06:46:12, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years ago (2016-12-15 13:32:24 UTC) #57
skobes
still lgtm
4 years ago (2016-12-15 16:48:37 UTC) #58
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2299213003/200001
4 years ago (2016-12-16 01:46:02 UTC) #60
commit-bot: I haz the power
Failed to apply patch for third_party/WebKit/Source/core/layout/TextAutosizer.h: While running git apply --index -p1; error: patch failed: ...
4 years ago (2016-12-16 04:14:30 UTC) #62
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2299213003/220001
4 years ago (2016-12-16 10:15:05 UTC) #65
commit-bot: I haz the power
Committed patchset #12 (id:220001)
4 years ago (2016-12-16 12:36:19 UTC) #68
commit-bot: I haz the power
4 years ago (2016-12-16 12:38:15 UTC) #70
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/bf9901feb0c46cefbd5e7af40fe252a6a92d52cb
Cr-Commit-Position: refs/heads/master@{#439093}

Powered by Google App Engine
This is Rietveld 408576698