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

Side by Side Diff: compiled/CSSPropertyFilter.cpp

Issue 29333474: Issue 4125 - [emscripten] Convert filter classes to C++ (Closed)
Patch Set: Reworked JS binding generation Created Feb. 1, 2016, 9:14 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 #include "CSSPropertyFilter.h"
2 #include "RegExpFilter.h"
3
4 CSSPropertyFilter::CSSPropertyFilter(const String& text,
5 String::size_type domainsEnd, String::size_type selectorStart,
6 String::size_type prefixEnd, String::size_type regexpStart,
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 {
13 if (IsGeneric())
14 throw u"No active domain specified for CSS property filter"_str;
15 }
16
17 Filter::Type CSSPropertyFilter::GetType() const
18 {
19 return Type::CSSPROPERTY;
20 }
21
22 String CSSPropertyFilter::GetRegExpString() const
23 {
24 return RegExpFilter::RegExpFromSource(mRegexpSource);
25 }
OLDNEW

Powered by Google App Engine
This is Rietveld