webengine/osswebengine/WebCore/loader/CachedXBLDocument.cpp
changeset 5 10e98eab6f85
parent 0 dd21522fd290
equal deleted inserted replaced
1:7c90e6132015 5:10e98eab6f85
    38 #include "loader.h"
    38 #include "loader.h"
    39 #include <wtf/Vector.h>
    39 #include <wtf/Vector.h>
    40 
    40 
    41 namespace WebCore {
    41 namespace WebCore {
    42 
    42 
    43 CachedXBLDocument::CachedXBLDocument(DocLoader* dl, const String &url)
    43 CachedXBLDocument::CachedXBLDocument(const String &url)
    44 : CachedResource(url, XBL), m_document(0)
    44 : CachedResource(url, XBL), m_document(0)
    45 {
    45 {
    46     // It's XML we want.
    46     // It's XML we want.
    47     setAccept("text/xml, application/xml, application/xhtml+xml, text/xsl, application/rss+xml, application/atom+xml");
    47     setAccept("text/xml, application/xml, application/xhtml+xml, text/xsl, application/rss+xml, application/atom+xml");
    48     
    48     
    49     // Load the file
       
    50     Cache::loader()->load(dl, this, false);
       
    51     m_loading = true;
       
    52     m_decoder = new TextResourceDecoder("application/xml");
    49     m_decoder = new TextResourceDecoder("application/xml");
    53 }
    50 }
    54 
    51 
    55 CachedXBLDocument::~CachedXBLDocument()
    52 CachedXBLDocument::~CachedXBLDocument()
    56 {
    53 {