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

Unified Diff: public/web/WebDocument.h

Issue 66383005: Remove the concept of user stylesheets. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix WebFrameCSSCallbackTest tests Created 7 years, 1 month 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 | « public/testing/WebPreferences.h ('k') | public/web/WebSettings.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebDocument.h
diff --git a/public/web/WebDocument.h b/public/web/WebDocument.h
index 943f025b67a7d0ad3afb8026545dd380c3e38b5a..d0eba00d1ee690df9616502ce21b25b8f359ea68 100644
--- a/public/web/WebDocument.h
+++ b/public/web/WebDocument.h
@@ -65,8 +65,8 @@ class WebURL;
// Provides readonly access to some properties of a DOM document.
class WebDocument : public WebNode {
public:
+ // FIXME: Stop using this from Chromium code and get rid of this enum.
enum UserStyleLevel {
- UserStyleUserLevel,
UserStyleAuthorLevel
};
@@ -129,11 +129,10 @@ public:
// Gets the accessibility object for an object on this page by ID.
BLINK_EXPORT WebAXObject accessibilityObjectFromID(int axID) const;
- // Inserts the given CSS source code as a user stylesheet in the document.
- // Meant for programatic/one-off injection, as opposed to
- // WebView::addUserStyleSheet which inserts styles for the lifetime of the
- // WebView.
+ // Inserts the given CSS source code as a stylesheet in the document.
+ // FIXME: Delete insertUserStyleSheet once Chromium code stops calling it.
BLINK_EXPORT void insertUserStyleSheet(const WebString& sourceCode, UserStyleLevel);
+ BLINK_EXPORT void insertStyleSheet(const WebString& sourceCode);
// Arranges to call WebFrameClient::didMatchCSS(frame(), ...) when one of
// the selectors matches or stops matching an element in this document.
« no previous file with comments | « public/testing/WebPreferences.h ('k') | public/web/WebSettings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698