| Index: Source/core/editing/StyledMarkupAccumulator.h
|
| diff --git a/Source/core/editing/StyledMarkupAccumulator.h b/Source/core/editing/StyledMarkupAccumulator.h
|
| index c2555acb08196f748f49b0e35e93e9565556726c..226a75db8f6a777cdbeb5f9753cddfad22903b49 100644
|
| --- a/Source/core/editing/StyledMarkupAccumulator.h
|
| +++ b/Source/core/editing/StyledMarkupAccumulator.h
|
| @@ -40,12 +40,25 @@ class Document;
|
| class StylePropertySet;
|
| class Text;
|
|
|
| +enum class RangeFullySelectsNode {
|
| + DoesSelect,
|
| + DoesNotSelect,
|
| +};
|
| +
|
| +enum class StyleTagType {
|
| + Block,
|
| + Inline,
|
| +};
|
| +
|
| +enum class AddDisplayInline {
|
| + DoesAdd,
|
| + DoesNotAdd,
|
| +};
|
| +
|
| class StyledMarkupAccumulator final {
|
| WTF_MAKE_NONCOPYABLE(StyledMarkupAccumulator);
|
| STACK_ALLOCATED();
|
| public:
|
| - enum RangeFullySelectsNode { DoesFullySelectNode, DoesNotFullySelectNode };
|
| -
|
| StyledMarkupAccumulator(EAbsoluteURLs, const TextOffset& start, const TextOffset& end, const PassRefPtrWillBeRawPtr<Document>, EAnnotateForInterchange, Node*);
|
|
|
| void appendString(const String&);
|
| @@ -55,8 +68,8 @@ public:
|
| void appendEndMarkup(StringBuilder&, const Element&);
|
|
|
| void appendElement(StringBuilder&, Element&, Namespaces*);
|
| - void appendElement(StringBuilder&, Element&, bool, RangeFullySelectsNode);
|
| - void appendStyleNodeOpenTag(StringBuilder&, StylePropertySet*, bool isBlock = false);
|
| + void appendElement(StringBuilder&, Element&, AddDisplayInline, RangeFullySelectsNode);
|
| + void appendStyleNodeOpenTag(StringBuilder&, StylePropertySet*, StyleTagType = StyleTagType::Inline);
|
|
|
| // TODO(hajimehoshi): These functions are called from the serializer, but
|
| // should not.
|
|
|