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 const ElemHideData& data) | 5 const ElemHideData& data) |
6 : ElemHideBase(text, data), CSSPropertyFilterData(data) | 6 : ElemHideBase(Type::CSSPROPERTY, text, data), mPropertyData(data) |
7 { | 7 { |
8 } | |
9 | |
10 Filter::Type CSSPropertyFilter::GetType() const | |
11 { | |
12 return Type::CSSPROPERTY; | |
13 } | 8 } |
14 | 9 |
15 OwnedString CSSPropertyFilter::GetRegExpString() const | 10 OwnedString CSSPropertyFilter::GetRegExpString() const |
16 { | 11 { |
17 return RegExpFilter::RegExpFromSource(GetRegExpSource(mText)); | 12 return RegExpFilter::RegExpFromSource(mPropertyData.GetRegExpSource(mText)); |
18 } | 13 } |
LEFT | RIGHT |