Index: compiled/CSSPropertyFilter.cpp |
=================================================================== |
new file mode 100644 |
--- /dev/null |
+++ b/compiled/CSSPropertyFilter.cpp |
@@ -0,0 +1,25 @@ |
+#include "CSSPropertyFilter.h" |
+#include "RegExpFilter.h" |
+ |
+CSSPropertyFilter::CSSPropertyFilter(const String& text, |
+ String::size_type domainsEnd, String::size_type selectorStart, |
+ String::size_type prefixEnd, String::size_type regexpStart, |
+ String::size_type regexpEnd, String::size_type suffixStart) |
+ : ElemHideBase(text, domainsEnd, selectorStart), |
+ mPrefix(String(mText, selectorStart, prefixEnd - selectorStart)), |
+ mSuffix(String(mText, suffixStart)), |
+ mRegexpSource(String(mText, regexpStart, regexpEnd - regexpStart)) |
+{ |
+ if (IsGeneric()) |
+ throw u"No active domain specified for CSS property filter"_str; |
+} |
+ |
+Filter::Type CSSPropertyFilter::GetType() const |
+{ |
+ return Type::CSSPROPERTY; |
+} |
+ |
+String CSSPropertyFilter::GetRegExpString() |
+{ |
+ return RegExpFilter::RegExpFromSource(mRegexpSource); |
+} |