Index: Source/WebKit/chromium/src/WebDocument.cpp |
=================================================================== |
--- Source/WebKit/chromium/src/WebDocument.cpp (revision 135773) |
+++ Source/WebKit/chromium/src/WebDocument.cpp (working copy) |
@@ -194,12 +194,13 @@ |
return WebDocumentType(constUnwrap<Document>()->doctype()); |
} |
-void WebDocument::insertUserStyleSheet(const WebString& sourceCode, UserStyleLevel level) |
+void WebDocument::insertUserStyleSheet(const WebString& sourceCode, UserStyleLevel) |
{ |
RefPtr<Document> document = unwrap<Document>(); |
+ // FIXME: We currently ignore the passed in UserStyleLevel. http://crbug.com/162096 |
RefPtr<StyleSheetContents> parsedSheet = StyleSheetContents::create(document.get()); |
- parsedSheet->setIsUserStyleSheet(level == UserStyleUserLevel); |
+ parsedSheet->setIsUserStyleSheet(true); |
parsedSheet->parseString(sourceCode); |
document->styleSheetCollection()->addUserSheet(parsedSheet.release()); |
} |