[Webkit-unassigned] [Bug 105745] New: FindOptions exists in WebKit2 and WebCore with overlapping unrelated values
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Dec 25 12:12:40 PST 2012
https://bugs.webkit.org/show_bug.cgi?id=105745
Summary: FindOptions exists in WebKit2 and WebCore with
overlapping unrelated values
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: WebKit2
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: timothy_horton at apple.com
CC: ap at webkit.org, sam at webkit.org,
timothy_horton at apple.com
I'm also slightly concerned about the fact that we have WebKit::FindOptions and WebCore::FindOptions with overlapping unrelated values:
In WebCore:
enum FindOptionFlag {
CaseInsensitive = 1 << 0,
AtWordStarts = 1 << 1,
// When combined with AtWordStarts, accepts a match in the middle of a word if the match begins with
// an uppercase letter followed by a lowercase or non-letter. Accepts several other intra-word matches.
TreatMedialCapitalAsWordStart = 1 << 2,
Backwards = 1 << 3,
WrapAround = 1 << 4,
StartInSelection = 1 << 5
};
typedef unsigned FindOptions;
In WebKit2:
enum FindOptions {
FindOptionsCaseInsensitive = 1 << 0,
FindOptionsAtWordStarts = 1 << 1,
FindOptionsTreatMedialCapitalAsWordStart = 1 << 2,
FindOptionsBackwards = 1 << 3,
FindOptionsWrapAround = 1 << 4,
FindOptionsShowOverlay = 1 << 5,
FindOptionsShowFindIndicator = 1 << 6,
FindOptionsShowHighlight = 1 << 7
};
(Note that StartInSelection and ShowOverlay have the same value. A bit scary/unfortunate, probably not problematic.)
Alexey thinks we should rename one of these -- I don't know which/what to use.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list