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 8dfe2b6a37518a6f5fa511a6a67adeb0edbb2128..6f423cb0df31d34f571c7d68e91059a999730e19 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) { |