Changeset 49816 in webkit
- Timestamp:
- Oct 19, 2009 3:10:38 PM (15 years ago)
- Location:
- trunk/WebKitSite
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKitSite/ChangeLog
r49719 r49816 1 2009-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 1 11 2009-10-16 Darin Adler <darin@apple.com> 2 12 -
trunk/WebKitSite/coding/coding-style.html
r49287 r49816 121 121 <h4 class="right">Right:</h4> 122 122 <pre class="code"> 123 returnattr->name() == srcAttr123 if (attr->name() == srcAttr 124 124 || 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"> 131 if (attr->name() == srcAttr || 131 132 attr->name() == lowsrcAttr || 132 (attr->name() == usemapAttr && attr->value().domString()[0] != '#'); 133 (attr->name() == usemapAttr && attr->value().domString()[0] != '#')) 134 return; 133 135 </pre> 134 136 </li>
Note: See TracChangeset
for help on using the changeset viewer.