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

Issue 1163673005: Refactoring: Remove StyledMarkupAccumulator::RangeFullySelectsNodes (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

Refactoring: Remove StyledMarkupAccumulator::RangeFullySelectsNodes This CL aims to remove an enum StyledMarkupAccumulator:: RangeFullySelectsNodes, which is used like a boolean value. This value is used to create an inline style for appendElement, and this CL exposes a function to create an inline style (createInlineStyle) and has StyledMarkupSerializer call this. There was only one case when the value DoesNotFullySelectNode was used, and this CL moves the logic for this case to the caller of createInlineStyle. I plan to remove another boolean parameter |addDisplayInline| later. 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=n/a TEST=n/a; no behavior change Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196911

Patch Set 1 #

Total comments: 9

Patch Set 2 : rebase #

Patch Set 3 : reduce diff #

Patch Set 4 : rebase #

Patch Set 5 : #

Patch Set 6 : Bug fix: ! operator was missed #

Total comments: 2

Patch Set 7 : yosin's review #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -32 lines) Patch
M Source/core/editing/StyledMarkupAccumulator.h View 1 2 3 4 5 6 3 chunks +6 lines, -8 lines 0 comments Download
M Source/core/editing/StyledMarkupAccumulator.cpp View 1 2 3 4 5 6 5 chunks +18 lines, -15 lines 0 comments Download
M Source/core/editing/StyledMarkupSerializer.h View 1 2 3 4 1 chunk +1 line, -2 lines 1 comment Download
M Source/core/editing/StyledMarkupSerializer.cpp View 1 2 3 4 5 3 chunks +18 lines, -7 lines 0 comments Download

Messages

Total messages: 15 (5 generated)
hajimehoshi
PTAL
4 years, 10 months ago (2015-06-08 10:32:30 UTC) #2
yosin_UTC9
It is better to do this in two patches: 1. Move StyledMarkupAccumulator::wrapWithNode() to StyledMarkupSerailizer() for ...
4 years, 10 months ago (2015-06-09 01:18:11 UTC) #3
hajimehoshi
Committed some parts of this (crrev.com/1177623005, crrev.com/1175913002) and rebased. PTAL https://codereview.chromium.org/1163673005/diff/1/Source/core/editing/StyledMarkupAccumulator.h File Source/core/editing/StyledMarkupAccumulator.h (right): https://codereview.chromium.org/1163673005/diff/1/Source/core/editing/StyledMarkupAccumulator.h#newcode55 ...
4 years, 10 months ago (2015-06-10 10:45:09 UTC) #5
yosin_UTC9
https://codereview.chromium.org/1163673005/diff/120001/Source/core/editing/StyledMarkupAccumulator.cpp File Source/core/editing/StyledMarkupAccumulator.cpp (right): https://codereview.chromium.org/1163673005/diff/120001/Source/core/editing/StyledMarkupAccumulator.cpp#newcode138 Source/core/editing/StyledMarkupAccumulator.cpp:138: void StyledMarkupAccumulator::appendElement(Element& element, bool addDisplayInline, PassRefPtrWillBeRawPtr<EditingStyle> style) It seems ...
4 years, 10 months ago (2015-06-11 01:16:11 UTC) #6
hajimehoshi
https://codereview.chromium.org/1163673005/diff/120001/Source/core/editing/StyledMarkupAccumulator.cpp File Source/core/editing/StyledMarkupAccumulator.cpp (right): https://codereview.chromium.org/1163673005/diff/120001/Source/core/editing/StyledMarkupAccumulator.cpp#newcode138 Source/core/editing/StyledMarkupAccumulator.cpp:138: void StyledMarkupAccumulator::appendElement(Element& element, bool addDisplayInline, PassRefPtrWillBeRawPtr<EditingStyle> style) On 2015/06/11 ...
4 years, 10 months ago (2015-06-11 01:46:24 UTC) #7
yosin_UTC9
lgtm https://codereview.chromium.org/1163673005/diff/140001/Source/core/editing/StyledMarkupSerializer.h File Source/core/editing/StyledMarkupSerializer.h (left): https://codereview.chromium.org/1163673005/diff/140001/Source/core/editing/StyledMarkupSerializer.h#oldcode54 Source/core/editing/StyledMarkupSerializer.h:54: no need to remove this blank line at ...
4 years, 10 months ago (2015-06-11 01:58:35 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1163673005/140001
4 years, 10 months ago (2015-06-11 01:58:57 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/66096)
4 years, 10 months ago (2015-06-11 02:46:11 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1163673005/140001
4 years, 10 months ago (2015-06-11 03:19:59 UTC) #14
commit-bot: I haz the power
4 years, 10 months ago (2015-06-11 05:24:12 UTC) #15
Message was sent while issue was closed.
Committed patchset #7 (id:140001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=196911

Powered by Google App Engine
This is Rietveld 408576698