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

Unified Diff: content/renderer/render_view_impl.cc

Issue 154113008: Switch from WebDocument::insertUserStyleSheet() to insertStyleSheet(). (Closed) Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: split line Created 6 years, 10 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 | « chrome/renderer/extensions/user_script_scheduler.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index aae7438c44b354b30018895299bfe3f4d123b6ef..2e4388edf1206370563ceecf6fc57dd37595916f 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -4615,9 +4615,7 @@ void RenderViewImpl::OnCSSInsertRequest(const base::string16& frame_xpath,
if (!frame)
return;
- frame->document().insertUserStyleSheet(
- WebString::fromUTF8(css),
- WebDocument::UserStyleAuthorLevel);
+ frame->document().insertStyleSheet(WebString::fromUTF8(css));
}
void RenderViewImpl::OnAllowBindings(int enabled_bindings_flags) {
« no previous file with comments | « chrome/renderer/extensions/user_script_scheduler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698