DescriptionRefactoring: 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
Messages
Total messages: 15 (5 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||