Changeset 160021 in webkit


Ignore:
Timestamp:
Dec 3, 2013 11:37:24 AM (10 years ago)
Author:
commit-queue@webkit.org
Message:

Checking second-to-last bit in address is a typo
https://bugs.webkit.org/show_bug.cgi?id=125162

Patch by Myles C. Maxfield <mmaxfield@apple.com> on 2013-12-03
Reviewed by Darin Adler.

After talking with the original author of this line,
is was a typo to make sure that the second-to-last bit
in an address is 0. Instead, we want to make sure that
the address is aligned to a 4-byte boundary

No behavior change, so no test is necessary

  • platform/graphics/cg/ImageBufferCG.cpp:

(WebCore::ImageBuffer::ImageBuffer):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r160014 r160021  
     12013-12-03  Myles C. Maxfield  <mmaxfield@apple.com>
     2
     3        Checking second-to-last bit in address is a typo
     4        https://bugs.webkit.org/show_bug.cgi?id=125162
     5
     6        Reviewed by Darin Adler.
     7
     8        After talking with the original author of this line,
     9        is was a typo to make sure that the second-to-last bit
     10        in an address is 0. Instead, we want to make sure that
     11        the address is aligned to a 4-byte boundary
     12
     13        No behavior change, so no test is necessary
     14
     15        * platform/graphics/cg/ImageBufferCG.cpp:
     16        (WebCore::ImageBuffer::ImageBuffer):
     17
    1182013-12-03  Radu Stavila  <stavila@adobe.com>
    219
  • trunk/Source/WebCore/platform/graphics/cg/ImageBufferCG.cpp

    r159791 r160021  
    159159        if (!tryFastCalloc(height.unsafeGet(), m_data.m_bytesPerRow.unsafeGet()).getValue(m_data.m_data))
    160160            return;
    161         ASSERT(!(reinterpret_cast<size_t>(m_data.m_data) & 2));
     161        ASSERT(!(reinterpret_cast<intptr_t>(m_data.m_data) & 3));
    162162
    163163        m_data.m_bitmapInfo = kCGImageAlphaPremultipliedLast;
Note: See TracChangeset for help on using the changeset viewer.