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

Side by Side Diff: third_party/WebKit/Source/core/css/parser/CSSParserTokenRange.h

Issue 1406993009: Revert "CSS Custom Properties (Variables)" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CSSParserTokenRange_h 5 #ifndef CSSParserTokenRange_h
6 #define CSSParserTokenRange_h 6 #define CSSParserTokenRange_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/css/parser/CSSParserToken.h" 9 #include "core/css/parser/CSSParserToken.h"
10 #include "wtf/Allocator.h" 10 #include "wtf/Allocator.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 void consumeComponentValue(); 59 void consumeComponentValue();
60 60
61 void consumeWhitespace() 61 void consumeWhitespace()
62 { 62 {
63 while (peek().type() == WhitespaceToken) 63 while (peek().type() == WhitespaceToken)
64 ++m_first; 64 ++m_first;
65 } 65 }
66 66
67 String serialize() const; 67 String serialize() const;
68 68
69 // This is only for the inspector integration
69 const CSSParserToken* begin() const { return m_first; } 70 const CSSParserToken* begin() const { return m_first; }
70 71
71 static void initStaticEOFToken(); 72 static void initStaticEOFToken();
72 73
73 private: 74 private:
74 CSSParserTokenRange(const CSSParserToken* first, const CSSParserToken* last) 75 CSSParserTokenRange(const CSSParserToken* first, const CSSParserToken* last)
75 : m_first(first) 76 : m_first(first)
76 , m_last(last) 77 , m_last(last)
77 { } 78 { }
78 79
79 const CSSParserToken* m_first; 80 const CSSParserToken* m_first;
80 const CSSParserToken* m_last; 81 const CSSParserToken* m_last;
81 }; 82 };
82 83
83 } // namespace 84 } // namespace
84 85
85 #endif // CSSParserTokenRange_h 86 #endif // CSSParserTokenRange_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698