Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: compiled/ElemHideBase.h

Issue 29383799: Issue 4988 - [emscripten] Adjust API for Element Hiding Emulation filters (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore
Patch Set: Created March 14, 2017, 2:42 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | compiled/ElemHideBase.cpp » ('j') | compiled/ElemHideBase.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiled/ElemHideBase.h
===================================================================
--- a/compiled/ElemHideBase.h
+++ b/compiled/ElemHideBase.h
@@ -1,15 +1,15 @@
#pragma once
#include <cstddef>
#include "ActiveFilter.h"
-struct ElemHideBaseData
+struct ElemHideData
{
String::size_type mDomainsEnd;
String::size_type mSelectorStart;
bool HasDomains() const
{
return mDomainsEnd != 0;
}
@@ -30,24 +30,22 @@ struct ElemHideBaseData
}
const DependentString GetSelector(const String& text) const
{
return DependentString(text, mSelectorStart);
}
};
-struct ElemHideData;
-
class ElemHideBase : public ActiveFilter
{
protected:
- ElemHideBaseData mData;
+ ElemHideData mData;
public:
- explicit ElemHideBase(Type type, const String& text, const ElemHideBaseData& data);
+ explicit ElemHideBase(Type type, const String& text, const ElemHideData& data);
static Type Parse(DependentString& text, ElemHideData& data);
EMSCRIPTEN_KEEPALIVE const DependentString GetSelector() const
{
return mData.GetSelector(mText);
}
EMSCRIPTEN_KEEPALIVE OwnedString GetSelectorDomain() const;
« no previous file with comments | « no previous file | compiled/ElemHideBase.cpp » ('j') | compiled/ElemHideBase.cpp » ('J')

Powered by Google App Engine
This is Rietveld