WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
212051
Replace TextIndicatorOptions with OptionSet<TextIndicatorOption>
https://bugs.webkit.org/show_bug.cgi?id=212051
Summary
Replace TextIndicatorOptions with OptionSet<TextIndicatorOption>
David Kilzer (:ddkilzer)
Reported
2020-05-18 15:41:39 PDT
Replace TextIndicatorOptions with OptionSet<TextIndicatorOption>. Also change enum TextIndicatorOption to an enum class while we're here.
Attachments
Patch v1
(45.78 KB, patch)
2020-05-18 17:22 PDT
,
David Kilzer (:ddkilzer)
no flags
Details
Formatted Diff
Diff
Patch v2
(45.79 KB, patch)
2020-05-18 18:46 PDT
,
David Kilzer (:ddkilzer)
simon.fraser
: review+
Details
Formatted Diff
Diff
Patch for landing
(47.26 KB, patch)
2020-05-18 20:17 PDT
,
David Kilzer (:ddkilzer)
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2020-05-18 16:43:01 PDT
<
rdar://problem/63368556
>
David Kilzer (:ddkilzer)
Comment 2
2020-05-18 17:22:46 PDT
Created
attachment 399686
[details]
Patch v1
David Kilzer (:ddkilzer)
Comment 3
2020-05-18 17:24:44 PDT
Style bot complains about using "{ ... }" in an Objectve-C argument list: ERROR: Source/WebKitLegacy/mac/WebView/WebImmediateActionController.mm:565: Missing space before { [whitespace/braces] [5] ERROR: Source/WebKitLegacy/mac/WebView/WebHTMLView.mm:5908: Missing space before { [whitespace/braces] [5]
David Kilzer (:ddkilzer)
Comment 4
2020-05-18 17:39:28 PDT
Comment on
attachment 399686
[details]
Patch v1 Oops! Need to compile for iOS, too.
David Kilzer (:ddkilzer)
Comment 5
2020-05-18 18:46:37 PDT
Created
attachment 399694
[details]
Patch v2
Simon Fraser (smfr)
Comment 6
2020-05-18 19:50:40 PDT
Comment on
attachment 399694
[details]
Patch v2 View in context:
https://bugs.webkit.org/attachment.cgi?id=399694&action=review
> Source/WebCore/platform/ios/DragImageIOS.mm:148 > + constexpr OptionSet<TextIndicatorOption> defaultLinkIndicatorOptions { TextIndicatorOption::TightlyFitContent, TextIndicatorOption::RespectTextColor, TextIndicatorOption::UseBoundingRectAndPaintAllContentForComplexRanges, TextIndicatorOption::ExpandClipBeyondVisibleRect, TextIndicatorOption::ComputeEstimatedBackgroundColor };
Maybe put these one per line.
> Source/WebCore/platform/ios/DragImageIOS.mm:168 > +constexpr OptionSet<TextIndicatorOption> defaultSelectionDragImageTextIndicatorOptions { TextIndicatorOption::ExpandClipBeyondVisibleRect, TextIndicatorOption::PaintAllContent, TextIndicatorOption::UseSelectionRectForSizing, TextIndicatorOption::ComputeEstimatedBackgroundColor };
Ditto
> Source/WebCore/testing/Internals.h:966 > + OptionSet<WebCore::TextIndicatorOption> core()
core() is a really weird name.
> Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm:1010 > + constexpr OptionSet<TextIndicatorOption> defaultTextIndicatorOptionsForEditDrag { TextIndicatorOption::IncludeSnapshotOfAllVisibleContentWithoutSelection, TextIndicatorOption::ExpandClipBeyondVisibleRect, TextIndicatorOption::PaintAllContent, TextIndicatorOption::IncludeMarginIfRangeMatchesSelection, TextIndicatorOption::PaintBackgrounds, TextIndicatorOption::ComputeEstimatedBackgroundColor, TextIndicatorOption::UseSelectionRectForSizing, TextIndicatorOption::IncludeSnapshotWithSelectionHighlight };
One per line
> Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm:2607 > + { TextIndicatorOption::TightlyFitContent, TextIndicatorOption::RespectTextColor, TextIndicatorOption::PaintBackgrounds, TextIndicatorOption::UseBoundingRectAndPaintAllContentForComplexRanges, TextIndicatorOption::IncludeMarginIfRangeMatchesSelection, TextIndicatorOption::ComputeEstimatedBackgroundColor },
One per line
> Source/WebKitLegacy/mac/DOM/DOM.mm:526 > + constexpr OptionSet<TextIndicatorOption> options { TextIndicatorOption::TightlyFitContent, TextIndicatorOption::RespectTextColor, TextIndicatorOption::PaintBackgrounds, TextIndicatorOption::UseBoundingRectAndPaintAllContentForComplexRanges, TextIndicatorOption::IncludeMarginIfRangeMatchesSelection };
One per line
> Source/WebKitLegacy/mac/WebView/WebView.mm:1964 > + constexpr OptionSet<WebCore::TextIndicatorOption> defaultEditDragTextIndicatorOptions { WebCore::TextIndicatorOption::IncludeSnapshotOfAllVisibleContentWithoutSelection, WebCore::TextIndicatorOption::ExpandClipBeyondVisibleRect, WebCore::TextIndicatorOption::PaintAllContent, WebCore::TextIndicatorOption::IncludeMarginIfRangeMatchesSelection, WebCore::TextIndicatorOption::PaintBackgrounds, WebCore::TextIndicatorOption::UseSelectionRectForSizing, WebCore::TextIndicatorOption::IncludeSnapshotWithSelectionHighlight, WebCore::TextIndicatorOption::RespectTextColor };
One per line
David Kilzer (:ddkilzer)
Comment 7
2020-05-18 20:01:54 PDT
Comment on
attachment 399694
[details]
Patch v2 View in context:
https://bugs.webkit.org/attachment.cgi?id=399694&action=review
Will make the other multi-line changes as well before landing.
>> Source/WebCore/testing/Internals.h:966 >> + OptionSet<WebCore::TextIndicatorOption> core() > > core() is a really weird name.
Changed to coreOptions().
David Kilzer (:ddkilzer)
Comment 8
2020-05-18 20:17:26 PDT
Created
attachment 399703
[details]
Patch for landing
EWS
Comment 9
2020-05-18 21:59:20 PDT
Committed
r261848
: <
https://trac.webkit.org/changeset/261848
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 399703
[details]
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug