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

Issue 699213003: RenderTreeBuilder => RenderTreeBuilderForElement and RenderTreeBuilderForText (Closed)

Created:
6 years, 1 month ago by Xianzhu
Modified:
6 years, 1 month ago
Reviewers:
esprehn
CC:
blink-reviews, blink-reviews-dom_chromium.org, dglazkov+blink, eae+blinkwatch, rwlbuis, sof
Project:
blink
Visibility:
Public.

Description

RenderTreeBuilder => RenderTreeBuilderForElement and RenderTreeBuilderForText Previously RenderTreeBuilder::createRendererForTextIfNeeded() and RenderTreeBuilder::createRendererForElementIfNeeded() are called from Element and Text, respectively. This refactoring separates logics needed for creating renderer for Element and for Text, reducing isElement and isText checks. More importantly, this refactoring exposes RenderTreeBuilderForText::createRenderer() so that we can test Text::textRendererIsNeeded() only once when we reattach whitespace siblings (for https://codereview.chromium.org/684633006/). BUG=482997 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=185407

Patch Set 1 : #

Total comments: 2

Patch Set 2 : Avoid virtual #

Patch Set 3 : Avoid virtual and access RenderTreeBuilder with renderer created #

Patch Set 4 : Rebase #

Patch Set 5 : #

Patch Set 6 : Revert change about Element::styleForRenderer (caused reference counting error) #

Patch Set 7 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -77 lines) Patch
M Source/core/dom/Element.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/RenderTreeBuilder.h View 1 2 3 4 5 6 1 chunk +52 lines, -6 lines 0 comments Download
M Source/core/dom/RenderTreeBuilder.cpp View 1 2 3 4 5 6 5 chunks +35 lines, -69 lines 0 comments Download
M Source/core/dom/Text.cpp View 1 2 3 4 5 6 2 chunks +9 lines, -1 line 0 comments Download

Messages

Total messages: 25 (10 generated)
Xianzhu
PTAL.
6 years, 1 month ago (2014-11-05 01:30:34 UTC) #4
esprehn
I'm not sure this is the right approach, you don't want to create a Builder ...
6 years, 1 month ago (2014-11-05 23:20:26 UTC) #5
Xianzhu
PTAL. The new patch - moves shouldCreateRenderer logic for text out of RenderTreeBuilder into Text; ...
6 years, 1 month ago (2014-11-06 01:26:23 UTC) #6
Xianzhu
ping...
6 years, 1 month ago (2014-11-12 18:58:44 UTC) #7
Xianzhu
On 2014/11/12 18:58:44, Xianzhu wrote: > ping... ping...
6 years, 1 month ago (2014-11-14 17:05:11 UTC) #8
esprehn
Your description is wrong, but the patch looks good. Please fix before landing. lgtm
6 years, 1 month ago (2014-11-14 21:58:09 UTC) #9
Xianzhu
On 2014/11/14 21:58:09, esprehn wrote: > Your description is wrong, but the patch looks good. ...
6 years, 1 month ago (2014-11-14 22:18:34 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/699213003/100001
6 years, 1 month ago (2014-11-14 22:19:54 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/30970)
6 years, 1 month ago (2014-11-14 22:41:39 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/699213003/120001
6 years, 1 month ago (2014-11-15 00:44:23 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/33771)
6 years, 1 month ago (2014-11-15 01:45:59 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/699213003/140001
6 years, 1 month ago (2014-11-15 05:49:59 UTC) #20
commit-bot: I haz the power
Failed to apply patch for Source/core/dom/RenderTreeBuilder.cpp: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 1 month ago (2014-11-15 05:50:09 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/699213003/160001
6 years, 1 month ago (2014-11-15 06:32:34 UTC) #24
commit-bot: I haz the power
6 years, 1 month ago (2014-11-15 07:46:45 UTC) #25
Message was sent while issue was closed.
Committed patchset #7 (id:160001) as 185407

Powered by Google App Engine
This is Rietveld 408576698