Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1444)

Unified Diff: Source/core/page/UserContentURLPattern.cpp

Issue 20294002: Fix trailing whitespace in .cpp, .h, and .idl files (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/page/UserContentURLPattern.h ('k') | Source/core/page/UserStyleSheet.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/UserContentURLPattern.cpp
diff --git a/Source/core/page/UserContentURLPattern.cpp b/Source/core/page/UserContentURLPattern.cpp
index 49c0a3c3b90015cb64970454a1dfe2263bc06c4d..1ebf43fdb03fd5768f6ddd1c3a141496349af2cc 100644
--- a/Source/core/page/UserContentURLPattern.cpp
+++ b/Source/core/page/UserContentURLPattern.cpp
@@ -20,7 +20,7 @@
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "config.h"
@@ -152,10 +152,10 @@ struct MatchTester
{
const String m_pattern;
unsigned m_patternIndex;
-
+
const String m_test;
unsigned m_testIndex;
-
+
MatchTester(const String& pattern, const String& test)
: m_pattern(pattern)
, m_patternIndex(0)
@@ -163,7 +163,7 @@ struct MatchTester
, m_testIndex(0)
{
}
-
+
bool testStringFinished() const { return m_testIndex >= m_test.length(); }
bool patternStringFinished() const { return m_patternIndex >= m_pattern.length(); }
@@ -175,7 +175,7 @@ struct MatchTester
m_patternIndex++;
}
}
-
+
void eatSameChars()
{
while (!patternStringFinished() && !testStringFinished()) {
@@ -201,15 +201,15 @@ struct MatchTester
return true;
return false;
}
-
+
// Pattern is empty but not string, this is not a match.
if (patternStringFinished())
return false;
-
+
// If we don't encounter a *, then we're hosed.
if (m_pattern[m_patternIndex] != '*')
return false;
-
+
while (!testStringFinished()) {
MatchTester nextMatch(*this);
nextMatch.m_patternIndex++;
« no previous file with comments | « Source/core/page/UserContentURLPattern.h ('k') | Source/core/page/UserStyleSheet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698