| LEFT | RIGHT | 
|---|
| 1 #include "CSSPropertyFilter.h" | 1 #include "CSSPropertyFilter.h" | 
| 2 #include "RegExpFilter.h" | 2 #include "RegExpFilter.h" | 
| 3 | 3 | 
| 4 CSSPropertyFilter::CSSPropertyFilter(const String& text, | 4 CSSPropertyFilter::CSSPropertyFilter(const String& text, | 
| 5     String::size_type domainsEnd, String::size_type selectorStart, | 5     const ElemHideData& data) | 
| 6     String::size_type prefixEnd, String::size_type regexpStart, | 6     : ElemHideBase(Type::CSSPROPERTY, text, data), mPropertyData(data) | 
| 7     String::size_type regexpEnd, String::size_type suffixStart) |  | 
| 8     : ElemHideBase(text, domainsEnd, selectorStart), |  | 
| 9       mPrefix(String(mText, selectorStart, prefixEnd - selectorStart)), |  | 
| 10       mSuffix(String(mText, suffixStart)), |  | 
| 11       mRegexpSource(String(mText, regexpStart, regexpEnd - regexpStart)) |  | 
| 12 { | 7 { | 
| 13   if (IsGeneric()) |  | 
| 14     throw u"No active domain specified for CSS property filter"_str; |  | 
| 15 } | 8 } | 
| 16 | 9 | 
| 17 Filter::Type CSSPropertyFilter::GetType() const | 10 OwnedString CSSPropertyFilter::GetRegExpString() const | 
| 18 { | 11 { | 
| 19   return Type::CSSPROPERTY; | 12   return RegExpFilter::RegExpFromSource(mPropertyData.GetRegExpSource(mText)); | 
| 20 } | 13 } | 
| 21 |  | 
| 22 String CSSPropertyFilter::GetRegExpString() const |  | 
| 23 { |  | 
| 24   return RegExpFilter::RegExpFromSource(mRegexpSource); |  | 
| 25 } |  | 
| LEFT | RIGHT | 
|---|