equal
deleted
inserted
replaced
35 #include "loader.h" |
35 #include "loader.h" |
36 #include <wtf/Vector.h> |
36 #include <wtf/Vector.h> |
37 |
37 |
38 namespace WebCore { |
38 namespace WebCore { |
39 |
39 |
40 CachedCSSStyleSheet::CachedCSSStyleSheet(DocLoader* dl, const String& url, const String& charset, bool skipCanLoadCheck, bool sendResourceLoadCallbacks) |
40 CachedCSSStyleSheet::CachedCSSStyleSheet(const String& url, const String& charset) |
41 : CachedResource(url, CSSStyleSheet, true, sendResourceLoadCallbacks) |
41 : CachedResource(url, CSSStyleSheet) |
42 , m_decoder(new TextResourceDecoder("text/css", charset)) |
42 , m_decoder(new TextResourceDecoder("text/css", charset)) |
43 { |
43 { |
44 // Prefer text/css but accept any type (dell.com serves a stylesheet |
44 // Prefer text/css but accept any type (dell.com serves a stylesheet |
45 // as text/html; see <http://bugs.webkit.org/show_bug.cgi?id=11451>). |
45 // as text/html; see <http://bugs.webkit.org/show_bug.cgi?id=11451>). |
46 setAccept("text/css,*/*;q=0.1"); |
46 setAccept("text/css,*/*;q=0.1"); |
47 cache()->loader()->load(dl, this, false, skipCanLoadCheck, sendResourceLoadCallbacks); |
|
48 m_loading = true; |
|
49 } |
47 } |
50 |
48 |
51 CachedCSSStyleSheet::~CachedCSSStyleSheet() |
49 CachedCSSStyleSheet::~CachedCSSStyleSheet() |
52 { |
50 { |
53 } |
51 } |