Index: chrome/renderer/render_view.cc |
=================================================================== |
--- chrome/renderer/render_view.cc (revision 25988) |
+++ chrome/renderer/render_view.cc (working copy) |
@@ -2709,12 +2709,13 @@ |
} |
void RenderView::InsertCSS(const std::wstring& frame_xpath, |
- const std::string& css) { |
+ const std::string& css, |
+ const std::string& id) { |
WebFrame* web_frame = GetChildFrame(frame_xpath); |
if (!web_frame) |
return; |
- web_frame->insertStyleText(WebString::fromUTF8(css)); |
+ web_frame->insertStyleText(WebString::fromUTF8(css), WebString::fromUTF8(id)); |
} |
void RenderView::OnScriptEvalRequest(const std::wstring& frame_xpath, |
@@ -2723,8 +2724,9 @@ |
} |
void RenderView::OnCSSInsertRequest(const std::wstring& frame_xpath, |
- const std::string& css) { |
- InsertCSS(frame_xpath, css); |
+ const std::string& css, |
+ const std::string& id) { |
+ InsertCSS(frame_xpath, css, id); |
// Notify RenderViewHost that css has been inserted into the frame. |
Send(new ViewHostMsg_OnCSSInserted(routing_id_)); |