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..98a5c4cec3ab32bab312f398af85034719c6ef1f 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) { |
+WebStyleSheetId 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); |
+} |
+ |
+void WebDocument::RemoveInsertedStyleSheet(WebStyleSheetId stylesheet_id) { |
+ Unwrap<Document>()->GetStyleEngine().RemoveInjectedAuthorSheet(stylesheet_id); |
} |
void WebDocument::WatchCSSSelectors(const WebVector<WebString>& web_selectors) { |