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

Unified Diff: third_party/WebKit/Source/core/css/parser/CSSTokenizerInputStream.cpp

Issue 2160943002: Use CSSTokenizerInputStream::peekWithoutReplacement instead of peek(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: checks. Created 4 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 | « third_party/WebKit/Source/core/css/parser/CSSTokenizerInputStream.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/parser/CSSTokenizerInputStream.cpp
diff --git a/third_party/WebKit/Source/core/css/parser/CSSTokenizerInputStream.cpp b/third_party/WebKit/Source/core/css/parser/CSSTokenizerInputStream.cpp
index b01628426d8fad8656057df485c1120b1d203cd5..30c3185af357a086b7e77bd3ce04f5c492c72091 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSTokenizerInputStream.cpp
+++ b/third_party/WebKit/Source/core/css/parser/CSSTokenizerInputStream.cpp
@@ -5,7 +5,6 @@
#include "core/css/parser/CSSTokenizerInputStream.h"
#include "core/html/parser/HTMLParserIdioms.h"
-#include "core/html/parser/InputStreamPreprocessor.h"
#include "wtf/text/StringToNumber.h"
namespace blink {
@@ -17,14 +16,6 @@ CSSTokenizerInputStream::CSSTokenizerInputStream(String input)
{
}
-UChar CSSTokenizerInputStream::peek(unsigned lookaheadOffset) const
-{
- if ((m_offset + lookaheadOffset) >= m_stringLength)
- return kEndOfFileMarker;
- UChar result = (*m_string)[m_offset + lookaheadOffset];
- return result ? result : 0xFFFD;
-}
-
void CSSTokenizerInputStream::advanceUntilNonWhitespace()
{
// Using HTML space here rather than CSS space since we don't do preprocessing
« no previous file with comments | « third_party/WebKit/Source/core/css/parser/CSSTokenizerInputStream.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698