| Index: compiled/filter/ElemHideBase.h |
| =================================================================== |
| --- a/compiled/filter/ElemHideBase.h |
| +++ b/compiled/filter/ElemHideBase.h |
| @@ -63,8 +63,18 @@ public: |
| const DependentString BINDINGS_EXPORTED GetSelector() const |
| { |
| return mData.GetSelector(mText); |
| } |
| OwnedString BINDINGS_EXPORTED GetSelectorDomain() const; |
| }; |
| + |
| + |
| +template<> |
| +inline ElemHideBase* Filter::As<ElemHideBase>() |
| +{ |
| + if ((mType & Type::ELEMHIDEBASE) == Type::ELEMHIDEBASE) |
| + return nullptr; |
| + |
| + return static_cast<ElemHideBase*>(this); |
| +} |