Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1961)

Unified Diff: Source/web/WebDocument.cpp

Issue 18371008: Add a WebDocument::watchCssSelectors(selectors) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@pinned
Patch Set: Sync Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/web/FrameLoaderClientImpl.cpp ('k') | Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>()))
« no previous file with comments | « Source/web/FrameLoaderClientImpl.cpp ('k') | Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698