summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/frame/web_local_frame_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/core/frame/web_local_frame_impl.cc')
-rw-r--r--chromium/third_party/blink/renderer/core/frame/web_local_frame_impl.cc14
1 files changed, 8 insertions, 6 deletions
diff --git a/chromium/third_party/blink/renderer/core/frame/web_local_frame_impl.cc b/chromium/third_party/blink/renderer/core/frame/web_local_frame_impl.cc
index befb059483c..be174d24a7b 100644
--- a/chromium/third_party/blink/renderer/core/frame/web_local_frame_impl.cc
+++ b/chromium/third_party/blink/renderer/core/frame/web_local_frame_impl.cc
@@ -2486,14 +2486,16 @@ static String CreateMarkupInRect(LocalFrame* frame,
if (!start_position.GetDocument() || !end_position.GetDocument())
return String();
+ const CreateMarkupOptions create_markup_options =
+ CreateMarkupOptions::Builder()
+ .SetShouldAnnotateForInterchange(true)
+ .SetShouldResolveURLs(kResolveNonLocalURLs)
+ .Build();
+
if (start_position.CompareTo(end_position) <= 0) {
- return CreateMarkup(start_position, end_position, kAnnotateForInterchange,
- ConvertBlocksToInlines::kNotConvert,
- kResolveNonLocalURLs);
+ return CreateMarkup(start_position, end_position, create_markup_options);
}
- return CreateMarkup(end_position, start_position, kAnnotateForInterchange,
- ConvertBlocksToInlines::kNotConvert,
- kResolveNonLocalURLs);
+ return CreateMarkup(end_position, start_position, create_markup_options);
}
void WebLocalFrameImpl::AdvanceFocusInForm(WebFocusType focus_type) {