<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>105745</bug_id>
          
          <creation_ts>2012-12-25 12:14:50 -0800</creation_ts>
          <short_desc>FindOptions exists in WebKit2 and WebCore with overlapping unrelated values</short_desc>
          <delta_ts>2012-12-25 12:14:50 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKit2</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tim Horton">thorton</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>sam</cc>
    
    <cc>thorton</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>797172</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Horton">thorton</who>
    <bug_when>2012-12-25 12:14:50 -0800</bug_when>
    <thetext>I&apos;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 &lt;&lt; 0,
    AtWordStarts = 1 &lt;&lt; 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 &lt;&lt; 2,
    Backwards = 1 &lt;&lt; 3,
    WrapAround = 1 &lt;&lt; 4,
    StartInSelection = 1 &lt;&lt; 5
};

typedef unsigned FindOptions;

In WebKit2:

enum FindOptions {
    FindOptionsCaseInsensitive = 1 &lt;&lt; 0,
    FindOptionsAtWordStarts = 1 &lt;&lt; 1,
    FindOptionsTreatMedialCapitalAsWordStart = 1 &lt;&lt; 2,
    FindOptionsBackwards = 1 &lt;&lt; 3,
    FindOptionsWrapAround = 1 &lt;&lt; 4,
    FindOptionsShowOverlay = 1 &lt;&lt; 5,
    FindOptionsShowFindIndicator = 1 &lt;&lt; 6,
    FindOptionsShowHighlight = 1 &lt;&lt; 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&apos;t know which/what to use.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>