summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/editing/serializers/create_markup_options.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/core/editing/serializers/create_markup_options.cc')
-rw-r--r--chromium/third_party/blink/renderer/core/editing/serializers/create_markup_options.cc36
1 files changed, 36 insertions, 0 deletions
diff --git a/chromium/third_party/blink/renderer/core/editing/serializers/create_markup_options.cc b/chromium/third_party/blink/renderer/core/editing/serializers/create_markup_options.cc
new file mode 100644
index 00000000000..d726657e2aa
--- /dev/null
+++ b/chromium/third_party/blink/renderer/core/editing/serializers/create_markup_options.cc
@@ -0,0 +1,36 @@
+// Copyright 2019 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "third_party/blink/renderer/core/editing/serializers/create_markup_options.h"
+
+namespace blink {
+
+CreateMarkupOptions::Builder&
+CreateMarkupOptions::Builder::SetConstrainingAncestor(const Node* node) {
+ data_.constraining_ancestor_ = node;
+ return *this;
+}
+
+CreateMarkupOptions::Builder&
+CreateMarkupOptions::Builder::SetShouldResolveURLs(
+ AbsoluteURLs should_resolve_urls) {
+ data_.should_resolve_urls_ = should_resolve_urls;
+ return *this;
+}
+
+CreateMarkupOptions::Builder&
+CreateMarkupOptions::Builder::SetShouldAnnotateForInterchange(
+ bool annotate_for_interchange) {
+ data_.should_annotate_for_interchange_ = annotate_for_interchange;
+ return *this;
+}
+
+CreateMarkupOptions::Builder&
+CreateMarkupOptions::Builder::SetShouldConvertBlocksToInlines(
+ bool convert_blocks_to_inlines) {
+ data_.should_convert_blocks_to_inlines_ = convert_blocks_to_inlines;
+ return *this;
+}
+
+} // namespace blink