<?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>80835</bug_id>
          
          <creation_ts>2012-03-12 07:26:16 -0700</creation_ts>
          <short_desc>Style checker complains about naming parameter with default values</short_desc>
          <delta_ts>2012-12-28 08:34:33 -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>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</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="Antonio Gomes">tonikitoo</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>ap</cc>
    
    <cc>zan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>576111</commentid>
    <comment_count>0</comment_count>
    <who name="Antonio Gomes">tonikitoo</who>
    <bug_when>2012-03-12 07:26:16 -0700</bug_when>
    <thetext>It happened in https://bugs.webkit.org/show_bug.cgi?id=79611#c4

Code looks like this:

- void calculateScrollbarModesForLayout(ScrollbarMode&amp; hMode, ScrollbarMode&amp; vMode);
+ void calculateScrollbarModesForLayout(ScrollbarMode&amp; hMode, ScrollbarMode&amp; vMode, ScrollbarModesCalculationStrategy strategy = AnyRule);

and the code style checker complained that &apos;strategy&apos; added not value:

&gt;&gt; Source/WebCore/page/FrameView.h:283:  The parameter name &quot;strategy&quot; adds no information, so it should be removed.  [readability/parameter_name] [5]

However it is needed, given the default value.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>576210</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2012-03-12 10:04:33 -0700</bug_when>
    <thetext>Actually, this should work:

+ void calculateScrollbarModesForLayout(ScrollbarMode&amp; hMode, ScrollbarMode&amp; vMode, ScrollbarModesCalculationStrategy = AnyRule);</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>576237</commentid>
    <comment_count>2</comment_count>
    <who name="Antonio Gomes">tonikitoo</who>
    <bug_when>2012-03-12 10:24:39 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; Actually, this should work:
&gt; 
&gt; + void calculateScrollbarModesForLayout(ScrollbarMode&amp; hMode, ScrollbarMode&amp; vMode, ScrollbarModesCalculationStrategy = AnyRule);

oh thanks, so this is INVALID.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>797911</commentid>
    <comment_count>3</comment_count>
    <who name="David Levin">levin</who>
    <bug_when>2012-12-28 08:34:33 -0800</bug_when>
    <thetext>*** Bug 105831 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>