Skip to content
  • psolanki@apple.com's avatar
    SharedBuffer m_segments and m_dataArray must be exclusive · 262a9905
    psolanki@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=77715
    
    Patch by Pratik Solanki <pratik.solanki@gmail.com> on 2013-08-29
    Reviewed by Benjamin Poulain.
    
    When USE(NETWORK_CFDATA_ARRAY_CALLBACK) is enabled, we use m_dataArray to hold the incoming
    data. We do not use m_segments. Since they are exclusive in practice, do not define or use
    m_segments when NETWORK_CFDATA_ARRAY_CALLBACK is enabled.
    
    No new tests because no functional changes.
    
    * platform/SharedBuffer.cpp:
    (WebCore::SharedBuffer::append):
    (WebCore::SharedBuffer::clear):
    (WebCore::SharedBuffer::copy):
    (WebCore::SharedBuffer::buffer):
    (WebCore::SharedBuffer::getSomeData):
    * platform/SharedBuffer.h:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154823 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    262a9905