Chromium Code Reviews
Help | Chromium Project | Gerrit Changes | Sign in
(27)

Issue 1177323005: Move StyledMarkupAccumulator::shouldApplyWrappingStyle to its serializer (Closed)

Created:
4 years, 10 months ago by hajimehoshi
Modified:
4 years, 10 months ago
Reviewers:
tkent, yosin_UTC9
CC:
blink-reviews, blink-reviews-style_chromium.org
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Move StyledMarkupAccumulator::shouldApplyWrappingStyle to its serializer Now a node's parent is taken with Node::parent. To have the accumulator work on the composed tree, we need to use EditingInComposedTree::parent instead. This CL moves the code using parentElement for appendText to StyledMarkupSerializer, that is already templatized to switch the editing strategies. This patch is result of collaboration work with yosin@chromium.org for selection of web components. We've already prepared the new node-traversal usages at crrev.com/1134473004. BUG=275851 TEST=n/a; no behavior change Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197246

Patch Set 1 #

Total comments: 7

Patch Set 2 : yosin's review #

Total comments: 8

Patch Set 3 : yosin's review #

Total comments: 2

Patch Set 4 : rebase #

Patch Set 5 : #

Patch Set 6 : rebase #

Patch Set 7 : rebase #

Total comments: 4

Patch Set 8 : yosin's review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -68 lines) Patch
M Source/core/editing/StyledMarkupAccumulator.h View 1 2 3 4 5 6 2 chunks +4 lines, -14 lines 0 comments Download
M Source/core/editing/StyledMarkupAccumulator.cpp View 1 2 3 4 5 6 5 chunks +13 lines, -30 lines 0 comments Download
M Source/core/editing/StyledMarkupSerializer.h View 1 2 3 4 5 6 2 chunks +5 lines, -2 lines 0 comments Download
M Source/core/editing/StyledMarkupSerializer.cpp View 1 2 3 4 5 6 7 9 chunks +37 lines, -22 lines 0 comments Download

Messages

Total messages: 16 (5 generated)
yosin_UTC9
https://codereview.chromium.org/1177323005/diff/1/Source/core/editing/StyledMarkupAccumulator.h File Source/core/editing/StyledMarkupAccumulator.h (right): https://codereview.chromium.org/1177323005/diff/1/Source/core/editing/StyledMarkupAccumulator.h#newcode52 Source/core/editing/StyledMarkupAccumulator.h:52: void appendTextWithWrappingStyle(Text&); how about to call this function |appendTextWithInlineStyle|? ...
4 years, 10 months ago (2015-06-12 12:09:55 UTC) #2
hajimehoshi
https://codereview.chromium.org/1177323005/diff/1/Source/core/editing/StyledMarkupAccumulator.h File Source/core/editing/StyledMarkupAccumulator.h (right): https://codereview.chromium.org/1177323005/diff/1/Source/core/editing/StyledMarkupAccumulator.h#newcode52 Source/core/editing/StyledMarkupAccumulator.h:52: void appendTextWithWrappingStyle(Text&); On 2015/06/12 12:09:55, Yosi_UTC9 wrote: > how ...
4 years, 10 months ago (2015-06-16 07:03:27 UTC) #3
hajimehoshi
Thank you! https://codereview.chromium.org/1177323005/diff/1/Source/core/editing/StyledMarkupAccumulator.h File Source/core/editing/StyledMarkupAccumulator.h (right): https://codereview.chromium.org/1177323005/diff/1/Source/core/editing/StyledMarkupAccumulator.h#newcode52 Source/core/editing/StyledMarkupAccumulator.h:52: void appendTextWithWrappingStyle(Text&); On 2015/06/16 07:03:27, hajimehoshi wrote: ...
4 years, 10 months ago (2015-06-16 08:15:18 UTC) #4
yosin_UTC9
https://codereview.chromium.org/1177323005/diff/20001/Source/core/editing/StyledMarkupAccumulator.cpp File Source/core/editing/StyledMarkupAccumulator.cpp (right): https://codereview.chromium.org/1177323005/diff/20001/Source/core/editing/StyledMarkupAccumulator.cpp#newcode97 Source/core/editing/StyledMarkupAccumulator.cpp:97: void StyledMarkupAccumulator::appendTextWithInlineStyle(Text& text, PassRefPtrWillBeRawPtr<EditingStyle> style) better to use |inlineStyle| ...
4 years, 10 months ago (2015-06-16 08:23:57 UTC) #5
hajimehoshi
Thank you! https://codereview.chromium.org/1177323005/diff/20001/Source/core/editing/StyledMarkupAccumulator.cpp File Source/core/editing/StyledMarkupAccumulator.cpp (right): https://codereview.chromium.org/1177323005/diff/20001/Source/core/editing/StyledMarkupAccumulator.cpp#newcode97 Source/core/editing/StyledMarkupAccumulator.cpp:97: void StyledMarkupAccumulator::appendTextWithInlineStyle(Text& text, PassRefPtrWillBeRawPtr<EditingStyle> style) On 2015/06/16 ...
4 years, 10 months ago (2015-06-16 08:58:18 UTC) #8
hajimehoshi
https://codereview.chromium.org/1177323005/diff/80001/Source/core/editing/StyledMarkupAccumulator.cpp File Source/core/editing/StyledMarkupAccumulator.cpp (right): https://codereview.chromium.org/1177323005/diff/80001/Source/core/editing/StyledMarkupAccumulator.cpp#newcode235 Source/core/editing/StyledMarkupAccumulator.cpp:235: bool StyledMarkupAccumulator::shouldApplyWrappingStyle(const Node& node) const TODO: Remove this
4 years, 10 months ago (2015-06-16 10:07:52 UTC) #9
hajimehoshi
https://codereview.chromium.org/1177323005/diff/80001/Source/core/editing/StyledMarkupAccumulator.cpp File Source/core/editing/StyledMarkupAccumulator.cpp (right): https://codereview.chromium.org/1177323005/diff/80001/Source/core/editing/StyledMarkupAccumulator.cpp#newcode235 Source/core/editing/StyledMarkupAccumulator.cpp:235: bool StyledMarkupAccumulator::shouldApplyWrappingStyle(const Node& node) const On 2015/06/16 10:07:51, hajimehoshi ...
4 years, 10 months ago (2015-06-16 10:56:47 UTC) #10
yosin_UTC9
lgtm w/ nits https://codereview.chromium.org/1177323005/diff/160001/Source/core/editing/StyledMarkupSerializer.cpp File Source/core/editing/StyledMarkupSerializer.cpp (right): https://codereview.chromium.org/1177323005/diff/160001/Source/core/editing/StyledMarkupSerializer.cpp#newcode342 Source/core/editing/StyledMarkupSerializer.cpp:342: return; s/return/break/ https://codereview.chromium.org/1177323005/diff/160001/Source/core/editing/StyledMarkupSerializer.cpp#newcode355 Source/core/editing/StyledMarkupSerializer.cpp:355: } case ...
4 years, 10 months ago (2015-06-17 07:45:21 UTC) #11
hajimehoshi
Thank you! https://codereview.chromium.org/1177323005/diff/160001/Source/core/editing/StyledMarkupSerializer.cpp File Source/core/editing/StyledMarkupSerializer.cpp (right): https://codereview.chromium.org/1177323005/diff/160001/Source/core/editing/StyledMarkupSerializer.cpp#newcode342 Source/core/editing/StyledMarkupSerializer.cpp:342: return; On 2015/06/17 07:45:21, Yosi_UTC9 wrote: > ...
4 years, 10 months ago (2015-06-17 07:49:32 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1177323005/180001
4 years, 10 months ago (2015-06-17 07:50:08 UTC) #15
commit-bot: I haz the power
4 years, 10 months ago (2015-06-17 09:18:30 UTC) #16
Message was sent while issue was closed.
Committed patchset #8 (id:180001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=197246

Powered by Google App Engine
This is Rietveld 408576698