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: Created Feb. 12, 2018, 11:52 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
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') | test/compiled/StringMap.cpp » ('J')

Powered by Google App Engine
This is Rietveld