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

Unified Diff: compiled/ElemHideEmulation.cpp

Issue 29695640: Issue 6281 - Don't return deleted entries (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore/
Patch Set: Remove mistakenly added characters. Created Feb. 13, 2018, 3:08 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
« no previous file with comments | « compiled/ElemHide.cpp ('k') | compiled/Map.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiled/ElemHideEmulation.cpp
===================================================================
--- a/compiled/ElemHideEmulation.cpp
+++ b/compiled/ElemHideEmulation.cpp
@@ -36,16 +36,15 @@
}
ElemHideEmulation_FilterList* ElemHideEmulation::GetRulesForDomain(const ElemHide& elemHide, DependentString& domain)
{
intrusive_ptr<ElemHideEmulation_FilterList> result(new ElemHideEmulation_FilterList());
for (const auto& entry: mFilters)
{
DependentString docDomain(domain);
- if (!(entry.is_deleted() || entry.is_invalid()) &&
- entry.second->IsActiveOnDomain(docDomain) &&
+ if (entry.second->IsActiveOnDomain(docDomain) &&
!elemHide.GetException(*entry.second, domain))
result->push_back(entry.second);
}
return result.release();
}
« no previous file with comments | « compiled/ElemHide.cpp ('k') | compiled/Map.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld