• andersca@apple.com's avatar
    Implement encoding of arrays of objects · 01434c4e
    andersca@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=124091
    
    Reviewed by Beth Dakin.
    
    Source/WebCore:
    
    * history/HistoryItem.cpp:
    (WebCore::HistoryItem::encodeBackForwardTreeNode):
    Encode the rest of the members.
    
    * platform/KeyedCoding.h:
    (WebCore::KeyedEncoder::encodeObjects):
    Call beginArray, then beginArrayElement/endArrayElement for every element and lastly endArray.
    
    Source/WebKit2:
    
    Add a new array stack and push and pop from it accordingly.
    
    * Shared/cf/KeyedEncoder.cpp:
    (WebKit::KeyedEncoder::~KeyedEncoder):
    (WebKit::KeyedEncoder::encodeBytes):
    (WebKit::KeyedEncoder::encodeUInt32):
    (WebKit::KeyedEncoder::encodeInt32):
    (WebKit::KeyedEncoder::encodeInt64):
    (WebKit::KeyedEncoder::encodeFloat):
    (WebKit::KeyedEncoder::beginArray):
    (WebKit::KeyedEncoder::beginArrayElement):
    (WebKit::KeyedEncoder::endArrayElement):
    (WebKit::KeyedEncoder::endArray):
    * Shared/cf/KeyedEncoder.h:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158984 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    01434c4e
ChangeLog 205 KB