DescriptionRefactoring: Separate MarkupAccumulator into MarkupFormatter and MarkupAccumulator
Now MarkupAccumulator has two functions; one is to format a DOM node to
a string and the other is to accumulate the result of formatting. This
CL separates MarkupAccumulator into MarkupFormatter and
MarkupAccumulator for respective functions. MarkupFormatter only formats
nodes to texts, and (new) MarkupAccumulator uses MarkupFormatter and
accumulates the result. Now most of MarkupAccumulator functions
delegates their work to MarkupFormatter just by calling the samely named
functions. I plan to refactor those classes further more by reducing
redundant function calls.
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. StyledMarkupAccumulator
is now using MarkupAccumulator, and I plan to change this to use
MarkupFormatter.
BUG=n/a
TEST=n/a; no behavior change
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196448
Patch Set 1 #Patch Set 2 : rebase #
Messages
Total messages: 11 (5 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||