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: Fixed annotation for hash buffers Created Jan. 28, 2016, 5:07 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
« no previous file with comments | « compiled/CSSPropertyFilter.h ('k') | compiled/CommentFilter.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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()
23 {
24 return RegExpFilter::RegExpFromSource(mRegexpSource);
25 }
OLDNEW
« no previous file with comments | « compiled/CSSPropertyFilter.h ('k') | compiled/CommentFilter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld