diff options
author | Simon Hausmann <simon.hausmann@nokia.com> | 2012-05-07 11:21:11 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@nokia.com> | 2012-05-07 11:21:11 +0200 |
commit | 2cf6c8816a73e0132bd8fa3b509d62d7c51b6e47 (patch) | |
tree | 988e8c5b116dd0466244ae2fe5af8ee9be926d76 /Source/WebCore/dom/DOMImplementation.cpp | |
parent | dd91e772430dc294e3bf478c119ef8d43c0a3358 (diff) | |
download | qtwebkit-2cf6c8816a73e0132bd8fa3b509d62d7c51b6e47.tar.gz |
Imported WebKit commit 7e538425aa020340619e927792f3d895061fb54b (http://svn.webkit.org/repository/webkit/trunk@116286)
Diffstat (limited to 'Source/WebCore/dom/DOMImplementation.cpp')
-rw-r--r-- | Source/WebCore/dom/DOMImplementation.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Source/WebCore/dom/DOMImplementation.cpp b/Source/WebCore/dom/DOMImplementation.cpp index 40197b322..66ea0dcab 100644 --- a/Source/WebCore/dom/DOMImplementation.cpp +++ b/Source/WebCore/dom/DOMImplementation.cpp @@ -307,9 +307,9 @@ PassRefPtr<CSSStyleSheet> DOMImplementation::createCSSStyleSheet(const String&, { // FIXME: Title should be set. // FIXME: Media could have wrong syntax, in which case we should generate an exception. - RefPtr<CSSStyleSheet> sheet = CSSStyleSheet::create(); - sheet->setMedia(MediaList::createAllowingDescriptionSyntax(sheet.get(), media)); - return sheet.release(); + RefPtr<CSSStyleSheet> sheet = CSSStyleSheet::create(StyleSheetInternal::create()); + sheet->setMediaQueries(MediaQuerySet::createAllowingDescriptionSyntax(media)); + return sheet; } static const char* const validXMLMIMETypeChars = "[0-9a-zA-Z_\\-+~!$\\^{}|.%'`#&*]"; // per RFCs: 3023, 2045 @@ -386,7 +386,8 @@ PassRefPtr<Document> DOMImplementation::createDocument(const String& type, Frame #if ENABLE(VIDEO) // Check to see if the type can be played by our MediaPlayer, if so create a MediaDocument - if (MediaPlayer::supportsType(ContentType(type))) + // Key system is not applicable here. + if (MediaPlayer::supportsType(ContentType(type), String())) return MediaDocument::create(frame, url); #endif |