Changeset 49816 in webkit


Ignore:
Timestamp:
Oct 19, 2009 3:10:38 PM (15 years ago)
Author:
eric@webkit.org
Message:

2009-10-19 Andrew Scherkus <scherkus@chromium.org>

Reviewed by Eric Seidel.

Replace boolean operator indentation example with an if statement.

https://bugs.webkit.org/show_bug.cgi?id=30538

  • coding/coding-style.html: Replace boolean indenting example to use "if"
Location:
trunk/WebKitSite
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitSite/ChangeLog

    r49719 r49816  
     12009-10-19  Andrew Scherkus  <scherkus@chromium.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        Replace boolean operator indentation example with an if statement.
     6
     7        https://bugs.webkit.org/show_bug.cgi?id=30538
     8
     9        * coding/coding-style.html: Replace boolean indenting example to use "if"
     10
    1112009-10-16  Darin Adler  <darin@apple.com>
    212
  • trunk/WebKitSite/coding/coding-style.html

    r49287 r49816  
    121121<h4 class="right">Right:</h4>
    122122<pre class="code">
    123 return attr->name() == srcAttr
     123if (attr->name() == srcAttr
    124124    || attr->name() == lowsrcAttr
    125     || (attr->name() == usemapAttr && attr->value().domString()[0] != '#');
    126 </pre>
    127 
    128 <h4 class="wrong">Wrong:</h4>
    129 <pre class="code">
    130 return attr->name() == srcAttr ||
     125    || (attr->name() == usemapAttr && attr->value().domString()[0] != '#'))
     126    return;
     127</pre>
     128
     129<h4 class="wrong">Wrong:</h4>
     130<pre class="code">
     131if (attr->name() == srcAttr ||
    131132    attr->name() == lowsrcAttr ||
    132     (attr->name() == usemapAttr && attr->value().domString()[0] != '#');
     133    (attr->name() == usemapAttr && attr->value().domString()[0] != '#'))
     134    return;
    133135</pre>
    134136</li>
Note: See TracChangeset for help on using the changeset viewer.