OLD | NEW |
(Empty) | |
| 1 #include "CSSPropertyFilter.h" |
| 2 #include "RegExpFilter.h" |
| 3 |
| 4 CSSPropertyFilter::CSSPropertyFilter(const std::u16string& text, |
| 5 const std::u16string& domains, const std::u16string& selector, |
| 6 const std::u16string& regexpSource, const std::u16string& prefix, |
| 7 const std::u16string& suffix) |
| 8 : ElemHideBase(text, domains, selector), prefix(prefix), suffix(suffix), |
| 9 regexp(RegExpFilter::RegExpFromSource(regexpSource)) |
| 10 { |
| 11 if (IsGeneric()) |
| 12 throw std::u16string(u"No active domain specified for CSS property filter"); |
| 13 } |
| 14 |
| 15 Filter::Type CSSPropertyFilter::GetType() const |
| 16 { |
| 17 return Type::CSSPROPERTY; |
| 18 } |
OLD | NEW |