<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 - Subpixel rendering: pixel snapping rounds to wrong position."
   href="https://bugs.webkit.org/show_bug.cgi?id=146273">146273</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Subpixel rendering: pixel snapping rounds to wrong position.
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>528+ (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>Layout and Rendering
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>zalan&#64;apple.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>RenderLayer::paintForegroundForFragmentsWithPhase() gets a fragment with a foregroundRect of, say:

(WebCore::LayoutRect) $23 = (m_location = { x = -96452px (-6172928), y = 0px (0) }, m_size = { width = 146px (9344), height = 310px (19840) })

where -96452 is the left edge of the layer (negative, because we're in vertical-rl content).

snapRectToDevicePixels() is converting that to:

(const WebCore::FloatRect) $24 = {
  m_location = (m_x = -96451.5, m_y = 0)
  m_size = (m_width = 146, m_height = 310)
}</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>