Bug 235993 - Delete SelectionAcrossShadowBoundariesEnabled
Summary: Delete SelectionAcrossShadowBoundariesEnabled
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Ryosuke Niwa
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-02-01 17:50 PST by Ryosuke Niwa
Modified: 2022-02-04 11:34 PST (History)
7 users (show)

See Also:


Attachments
Patch (15.02 KB, patch)
2022-02-01 17:54 PST, Ryosuke Niwa
no flags Details | Formatted Diff | Diff
Patch (14.96 KB, patch)
2022-02-03 15:52 PST, Ryosuke Niwa
no flags Details | Formatted Diff | Diff
Patch for landing (14.95 KB, patch)
2022-02-03 21:48 PST, Ryosuke Niwa
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ryosuke Niwa 2022-02-01 17:50:55 PST
This runtime flag is always on.
Comment 1 Ryosuke Niwa 2022-02-01 17:54:04 PST
Created attachment 450598 [details]
Patch
Comment 2 Darin Adler 2022-02-03 03:58:14 PST
Comment on attachment 450598 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=450598&action=review

> Source/WebCore/editing/gtk/EditorGtk.cpp:120
> +    pasteboardContent.markup = serializePreservingVisualAppearance(m_document.selection().selection(), ResolveURLs::YesExcludingLocalFileURLsForPrivacy, SerializeComposedTree::Yes : SerializeComposedTree::No);

Editing mistake here. Left behind “: SerializedComposedTree::No”.

> Source/WebCore/editing/libwpe/EditorLibWPE.cpp:68
> +    pasteboardContent.markup = serializePreservingVisualAppearance(m_document.selection().selection(), ResolveURLs::YesExcludingLocalFileURLsForPrivacy, SerializeComposedTree::Yes : SerializeComposedTree::No);

Ditto.
Comment 3 Ryosuke Niwa 2022-02-03 15:52:35 PST
Created attachment 450832 [details]
Patch
Comment 4 Darin Adler 2022-02-03 16:37:33 PST
Comment on attachment 450832 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=450832&action=review

> Source/WebCore/editing/Editor.cpp:3313
> +    return selectedText(OptionSet { TextIteratorBehavior::EmitsImageAltText } | TextIteratorBehavior::TraversesFlatTree);

Should use commas here instead:

    return selectedText({ TextIteratorBehavior::EmitsImageAltText, TextIteratorBehavior::TraversesFlatTree });
Comment 5 Ryosuke Niwa 2022-02-03 21:47:25 PST
(In reply to Darin Adler from comment #4)
> Comment on attachment 450832 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=450832&action=review
> 
> > Source/WebCore/editing/Editor.cpp:3313
> > +    return selectedText(OptionSet { TextIteratorBehavior::EmitsImageAltText } | TextIteratorBehavior::TraversesFlatTree);
> 
> Should use commas here instead:
> 
>     return selectedText({ TextIteratorBehavior::EmitsImageAltText,
> TextIteratorBehavior::TraversesFlatTree });

Sure, will fix.
Comment 6 Ryosuke Niwa 2022-02-03 21:48:12 PST
Created attachment 450865 [details]
Patch for landing
Comment 7 EWS 2022-02-03 22:38:26 PST
Committed r289104 (246801@main): <https://commits.webkit.org/246801@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 450865 [details].
Comment 8 Radar WebKit Bug Importer 2022-02-03 22:39:25 PST
<rdar://problem/88474922>
Comment 9 Darin Adler 2022-02-04 08:15:21 PST
Comment on attachment 450865 [details]
Patch for landing

View in context: https://bugs.webkit.org/attachment.cgi?id=450865&action=review

> Source/WebCore/editing/Editor.cpp:3313
> +    return selectedText(OptionSet { TextIteratorBehavior::EmitsImageAltText, TextIteratorBehavior::TraversesFlatTree });

Maybe we can omit OptionSet here? I guess not because you would have tried that?
Comment 10 Ryosuke Niwa 2022-02-04 11:34:55 PST
(In reply to Darin Adler from comment #9)
> Comment on attachment 450865 [details]
> Patch for landing
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=450865&action=review
> 
> > Source/WebCore/editing/Editor.cpp:3313
> > +    return selectedText(OptionSet { TextIteratorBehavior::EmitsImageAltText, TextIteratorBehavior::TraversesFlatTree });
> 
> Maybe we can omit OptionSet here? I guess not because you would have tried
> that?

No, it didn't work.