Index: Source/web/WebDocument.cpp |
diff --git a/Source/web/WebDocument.cpp b/Source/web/WebDocument.cpp |
index 4e55b5fb1d9baaf3a310b97c7ac1734811ea7d47..51046f7c2a05cd862620420df2276e73c3cc0411 100644 |
--- a/Source/web/WebDocument.cpp |
+++ b/Source/web/WebDocument.cpp |
@@ -46,6 +46,7 @@ |
#include "core/accessibility/AXObjectCache.h" |
#include "core/css/CSSParserMode.h" |
#include "core/css/StyleSheetContents.h" |
+#include "core/dom/CSSSelectorWatch.h" |
#include "core/dom/Document.h" |
#include "core/dom/DocumentType.h" |
#include "core/dom/Element.h" |
@@ -213,6 +214,14 @@ void WebDocument::insertUserStyleSheet(const WebString& sourceCode, UserStyleLev |
document->styleEngine()->addAuthorSheet(parsedSheet); |
} |
+void WebDocument::watchCSSSelectors(const WebVector<WebString>& webSelectors) |
+{ |
+ RefPtr<Document> document = unwrap<Document>(); |
+ Vector<String> selectors; |
+ selectors.append(webSelectors.data(), webSelectors.size()); |
+ CSSSelectorWatch::from(*document).watchCSSSelectors(selectors); |
+} |
+ |
void WebDocument::cancelFullScreen() |
{ |
if (FullscreenElementStack* fullscreen = FullscreenElementStack::fromIfExists(unwrap<Document>())) |