[Webkit-unassigned] [Bug 36903] Implement BlobBuilder internal class for BlobBuilder support as defined in FileWriter

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jun 9 14:59:20 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=36903


Jian Li <jianli at chromium.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #58260|review?                     |review-
               Flag|                            |




--- Comment #11 from Jian Li <jianli at chromium.org>  2010-06-09 14:59:18 PST ---
(From update of attachment 58260)
WebCore/html/Blob.h:74
 +      Blob(const String& type, const BlobItemList& items);
'items' can be omitted.

WebCore/html/Blob.cpp:94
 +      return Blob::create(contentType, items);
// FIXME: Pass content type when we add it to slice's arguments.
return Blob::create(String(), items);

WebCore/html/BlobBuilder.cpp:39
 +  #include "StringHash.h"
Is this include needed?

WebCore/html/BlobBuilder.cpp:41
 +  #include <wtf/HashMap.h>
Is this include needed?

WebCore/html/BlobBuilder.cpp:81
 +      if (!blob)
Probably it is simpler to say:
    if (blob)
        for (...)
            ...
    return true;

WebCore/html/BlobBuilder.h:37
 +  #include "ExceptionCode.h"
Including ExceptionCode.h is not needed.

WebCore/html/BlobBuilder.h:51
 +      bool appendString(const WebCore::String& text, const WebCore::String& ending, ExceptionCode& ec);
The namespace WebCore is not necessary.

WebCore/html/BlobBuilder.h:54
 +      PassRefPtr<Blob> getBlob(const WebCore::String& contentType) const;
ditto.

WebCore/platform/BlobItem.cpp:135
 +  #else
How about CR in mac?

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list