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

Issue 845453006: Add ASSERT childNeedsDistributionRecalc in ComposedTreeTraversal (Closed)

Created:
5 years, 11 months ago by kojii
Modified:
5 years, 11 months ago
Reviewers:
hayato
CC:
blink-reviews, webcomponents-bugzilla_chromium.org, sof, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Add ASSERT childNeedsDistributionRecalc in ComposedTreeTraversal Bug 450115 is about changing behaviors of some attributes to use the composed trees when used in Shadow DOM. We'll need to change some NodeTraversal to ComposedTreeTraversal, but before doing so, this patch adds necessary but currently missing ASSERT to ComposedTreeTraversal, matching its ASSERTs to the one in NodeRenderingTraversal. The fix to Text::textRendererIsNeeded() supresses, under rare condition, its memory opmitization to avoid creating Renderer when it's not needed. The comment suggests it's not essential, and it's very rare to hit this condition; one such example is when a JS handler of DOMNodeInsertedIntoDocument modifies text. BUG=450115 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=188852

Patch Set 1 #

Patch Set 2 : fix ifdef include does not build #

Patch Set 3 : fix for fast\images\element-gcd-while-generating-alt-content.html #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -0 lines) Patch
M Source/core/dom/Text.cpp View 1 2 1 chunk +4 lines, -0 lines 2 comments Download
M Source/core/dom/shadow/ComposedTreeTraversal.h View 1 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
kojii
PTAL!
5 years, 11 months ago (2015-01-23 03:50:48 UTC) #2
hayato
Thanks. https://codereview.chromium.org/845453006/diff/40001/Source/core/dom/Text.cpp File Source/core/dom/Text.cpp (right): https://codereview.chromium.org/845453006/diff/40001/Source/core/dom/Text.cpp#newcode281 Source/core/dom/Text.cpp:281: if (document().childNeedsDistributionRecalc()) Could you help me to understand ...
5 years, 11 months ago (2015-01-23 04:06:31 UTC) #3
kojii
https://codereview.chromium.org/845453006/diff/40001/Source/core/dom/Text.cpp File Source/core/dom/Text.cpp (right): https://codereview.chromium.org/845453006/diff/40001/Source/core/dom/Text.cpp#newcode281 Source/core/dom/Text.cpp:281: if (document().childNeedsDistributionRecalc()) On 2015/01/23 04:06:30, hayato wrote: > Could ...
5 years, 11 months ago (2015-01-23 04:23:13 UTC) #4
kojii
On 2015/01/23 04:23:13, koji wrote: > https://codereview.chromium.org/845453006/diff/40001/Source/core/dom/Text.cpp > File Source/core/dom/Text.cpp (right): > > https://codereview.chromium.org/845453006/diff/40001/Source/core/dom/Text.cpp#newcode281 > ...
5 years, 11 months ago (2015-01-23 04:48:30 UTC) #5
hayato
Thank you for the explanation. lgtm.
5 years, 11 months ago (2015-01-23 04:52:32 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/845453006/40001
5 years, 11 months ago (2015-01-23 04:53:58 UTC) #8
commit-bot: I haz the power
5 years, 11 months ago (2015-01-23 04:57:12 UTC) #9
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=188852

Powered by Google App Engine
This is Rietveld 408576698