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

Side by Side Diff: compiled/filter/ElemHideBase.cpp

Issue 29383816: Issue 4989 - [emscripten] Move filter class files into a separate directory (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore
Patch Set: Created March 14, 2017, 3:34 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/filter/ElemHideBase.h ('k') | compiled/filter/ElemHideEmulationFilter.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #include "ElemHideBase.h" 1 #include "ElemHideBase.h"
2 #include "StringScanner.h" 2 #include "../StringScanner.h"
3 3
4 namespace 4 namespace
5 { 5 {
6 void NormalizeWhitespace(DependentString& text, String::size_type& domainsEnd, 6 void NormalizeWhitespace(DependentString& text, String::size_type& domainsEnd,
7 String::size_type& selectorStart) 7 String::size_type& selectorStart)
8 { 8 {
9 // For element hiding filters we only want to remove spaces preceding the 9 // For element hiding filters we only want to remove spaces preceding the
10 // selector part. The positions we've determined already have to be adjusted 10 // selector part. The positions we've determined already have to be adjusted
11 // accordingly. 11 // accordingly.
12 12
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 if (it->second && !it->first.empty()) 121 if (it->second && !it->first.empty())
122 { 122 {
123 if (!result.empty()) 123 if (!result.empty())
124 result.append(u','); 124 result.append(u',');
125 result.append(it->first); 125 result.append(it->first);
126 } 126 }
127 } 127 }
128 } 128 }
129 return result; 129 return result;
130 } 130 }
OLDNEW
« no previous file with comments | « compiled/filter/ElemHideBase.h ('k') | compiled/filter/ElemHideEmulationFilter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld