<html>
    <head>
      <base href="https://bugs.webkit.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - WebKit::nsTextAlignmentFromTextAlignment() falls through ASSERT_NOT_REACHED()"
   href="https://bugs.webkit.org/show_bug.cgi?id=234989">234989</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>WebKit::nsTextAlignmentFromTextAlignment() falls through ASSERT_NOT_REACHED()
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>WebKit Nightly Build
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>WebKit2
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned@lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>ddkilzer@webkit.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>kkinnunen@apple.com, webkit-bug-importer@group.apple.com
          </td>
        </tr>

        <tr>
          <th>Depends on</th>
          <td>234932
          </td>
        </tr></table>
      <p>
        <div>
        <pre>WebKit::nsTextAlignmentFromTextAlignment() falls through ASSERT_NOT_REACHED().

In the `default` case, `nsTextAlignment` is returned uninitialized.

static NSTextAlignment nsTextAlignmentFromTextAlignment(TextAlignment textAlignment)
{   
    NSTextAlignment nsTextAlignment;
    switch (textAlignment) {
    case NoAlignment:
        nsTextAlignment = NSTextAlignmentNatural;
        break;
    case LeftAlignment: 
        nsTextAlignment = NSTextAlignmentLeft;
        break;
    case RightAlignment:
        nsTextAlignment = NSTextAlignmentRight;
        break;
    case CenterAlignment: 
        nsTextAlignment = NSTextAlignmentCenter;
        break;
    case JustifiedAlignment:
        nsTextAlignment = NSTextAlignmentJustified;
        break;
    default:
        ASSERT_NOT_REACHED();
    }

    return nsTextAlignment;
}

See Source/WebKit/UIProcess/Cocoa/WebViewImpl.mm.</pre>
        </div>
      </p>

        <div id="referenced">
          <hr style="border: 1px dashed #969696">
          <b>Referenced Bugs:</b>
          <ul>
              <li>
                [<a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - check-webkit-style: add checker for unexpected fall through after ASSERT_NOT_REACHED() statements"
   href="https://bugs.webkit.org/show_bug.cgi?id=234932">Bug 234932</a>] check-webkit-style: add checker for unexpected fall through after ASSERT_NOT_REACHED() statements
              </li>
          </ul>
        </div>
        <br>

      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>