Index: third_party/WebKit/Source/web/WebDocument.cpp |
diff --git a/third_party/WebKit/Source/web/WebDocument.cpp b/third_party/WebKit/Source/web/WebDocument.cpp |
index 110117fbe358318db101657537c71f416e974150..afaf7803035470f816090767ff56135bbe6da898 100644 |
--- a/third_party/WebKit/Source/web/WebDocument.cpp |
+++ b/third_party/WebKit/Source/web/WebDocument.cpp |
@@ -182,13 +182,17 @@ WebElement WebDocument::FocusedElement() const { |
return WebElement(ConstUnwrap<Document>()->FocusedElement()); |
} |
-void WebDocument::InsertStyleSheet(const WebString& source_code) { |
+int WebDocument::InsertStyleSheet(const WebString& source_code) { |
Document* document = Unwrap<Document>(); |
DCHECK(document); |
StyleSheetContents* parsed_sheet = |
StyleSheetContents::Create(CSSParserContext::Create(*document)); |
parsed_sheet->ParseString(source_code); |
- document->GetStyleEngine().InjectAuthorSheet(parsed_sheet); |
+ return document->GetStyleEngine().InjectAuthorSheet(parsed_sheet); |
+} |
+ |
+bool WebDocument::RemoveInsertedStyleSheet(int id) { |
+ return Unwrap<Document>()->GetStyleEngine().RemoveInjectedAuthorSheet(id); |
} |
void WebDocument::WatchCSSSelectors(const WebVector<WebString>& web_selectors) { |