Index: compiled/Filter.cpp |
=================================================================== |
--- a/compiled/Filter.cpp |
+++ b/compiled/Filter.cpp |
@@ -2,17 +2,17 @@ |
#include "CommentFilter.h" |
#include "InvalidFilter.h" |
#include "RegExpFilter.h" |
#include "BlockingFilter.h" |
#include "WhitelistFilter.h" |
#include "ElemHideBase.h" |
#include "ElemHideFilter.h" |
#include "ElemHideException.h" |
-#include "CSSPropertyFilter.h" |
+#include "ElemHideEmulationFilter.h" |
#include "StringMap.h" |
namespace |
{ |
StringMap<Filter*> knownFilters(8192); |
void NormalizeWhitespace(DependentString& text) |
{ |
@@ -118,20 +118,20 @@ Filter* Filter::FromText(DependentString |
filter = new WhitelistFilter(text, data.regexp); |
break; |
case Filter::Type::ELEMHIDE: |
filter = new ElemHideFilter(text, data.elemhide); |
break; |
case Filter::Type::ELEMHIDEEXCEPTION: |
filter = new ElemHideException(text, data.elemhide); |
break; |
- case Filter::Type::CSSPROPERTY: |
- filter = new CSSPropertyFilter(text, data.elemhide); |
- if (static_cast<CSSPropertyFilter*>(filter.get())->IsGeneric()) |
- filter = new InvalidFilter(text, u"filter_cssproperty_nodomain"_str); |
+ case Filter::Type::ELEMHIDEEMULATION: |
+ filter = new ElemHideEmulationFilter(text, data.elemhide); |
+ if (static_cast<ElemHideEmulationFilter*>(filter.get())->IsGeneric()) |
+ filter = new InvalidFilter(text, u"filter_elemhideemulation_nodomain"_str); |
break; |
default: |
// This should never happen but just in case |
return nullptr; |
} |
// This is a hack: we looked up the entry using text but create it using |
// filter->mText. This works because both are equal at this point. However, |