Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/filterListener.js

Issue 6201308310667264: Issue 521- Inject our stylesheet on per-site basis rather than globally (Closed)
Patch Set: WIP Created June 4, 2014, 5:55 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« lib/contentPolicy.js ('K') | « lib/elemHideHitRegistration.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/filterListener.js
===================================================================
--- a/lib/filterListener.js
+++ b/lib/filterListener.js
@@ -136,17 +136,17 @@ function init()
init();
/**
* Calls ElemHide.apply() if necessary.
*/
function flushElemHide()
{
if (!batchMode && ElemHide.isDirty)
- ElemHide.apply();
+ ElemHide.saveStylesheet();
}
/**
* Notifies Matcher instances or ElemHide object about a new filter
* if necessary.
* @param {Filter} filter filter that has been added
*/
function addFilter(filter)
« lib/contentPolicy.js ('K') | « lib/elemHideHitRegistration.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld