| Index: compiled/CSSPropertyFilter.cpp |
| =================================================================== |
| new file mode 100644 |
| --- /dev/null |
| +++ b/compiled/CSSPropertyFilter.cpp |
| @@ -0,0 +1,18 @@ |
| +#include "CSSPropertyFilter.h" |
| +#include "RegExpFilter.h" |
| + |
| +CSSPropertyFilter::CSSPropertyFilter(const std::u16string& text, |
| + const std::u16string& domains, const std::u16string& selector, |
| + const std::u16string& regexpSource, const std::u16string& prefix, |
| + const std::u16string& suffix) |
| + : ElemHideBase(text, domains, selector), prefix(prefix), suffix(suffix), |
| + regexp(RegExpFilter::RegExpFromSource(regexpSource)) |
| +{ |
| + if (IsGeneric()) |
| + throw std::u16string(u"No active domain specified for CSS property filter"); |
| +} |
| + |
| +Filter::Type CSSPropertyFilter::GetType() const |
| +{ |
| + return Type::CSSPROPERTY; |
| +} |