Index: compiled/filter/ElemHideFilter.h |
=================================================================== |
--- a/compiled/filter/ElemHideFilter.h |
+++ b/compiled/filter/ElemHideFilter.h |
@@ -22,8 +22,17 @@ |
#include "Filter.h" |
#include "ElemHideBase.h" |
class ElemHideFilter: public ElemHideBase |
{ |
public: |
explicit ElemHideFilter(const String& text, const ElemHideData& data); |
}; |
+ |
+template<> |
+inline ElemHideFilter* Filter::As<ElemHideFilter>() |
+{ |
+ if ((mType & Type::ELEMHIDE) == Type::ELEMHIDE) |
+ return nullptr; |
+ |
+ return static_cast<ElemHideFilter*>(this); |
+} |