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

Side by Side Diff: Source/core/css/parser/CSSParserValues.cpp

Issue 825063004: CSS Parser: Support CDO and CDC tokens (<!--, -->) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@lang
Patch Set: Created 5 years, 11 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 unified diff | Download patch
« no previous file with comments | « Source/core/css/parser/CSSParserToken.h ('k') | Source/core/css/parser/CSSTokenizer.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 /* 1 /*
2 * Copyright (C) 2003 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2003 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2008 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006, 2008 Apple Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 value.setFromOperator('{'); 175 value.setFromOperator('{');
176 break; 176 break;
177 case RightBraceToken: 177 case RightBraceToken:
178 value.setFromOperator('}'); 178 value.setFromOperator('}');
179 break; 179 break;
180 case WhitespaceToken: 180 case WhitespaceToken:
181 case CommentToken: 181 case CommentToken:
182 continue; 182 continue;
183 case EOFToken: 183 case EOFToken:
184 ASSERT_NOT_REACHED(); 184 ASSERT_NOT_REACHED();
185 case CDOToken:
186 case CDCToken:
185 case AtKeywordToken: 187 case AtKeywordToken:
186 case IncludeMatchToken: 188 case IncludeMatchToken:
187 case DashMatchToken: 189 case DashMatchToken:
188 case PrefixMatchToken: 190 case PrefixMatchToken:
189 case SuffixMatchToken: 191 case SuffixMatchToken:
190 case SubstringMatchToken: 192 case SubstringMatchToken:
191 case ColumnToken: 193 case ColumnToken:
192 case BadStringToken: 194 case BadStringToken:
193 case BadUrlToken: 195 case BadUrlToken:
194 case ColonToken: 196 case ColonToken:
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 bool CSSParserSelector::hasHostPseudoSelector() const 339 bool CSSParserSelector::hasHostPseudoSelector() const
338 { 340 {
339 for (CSSParserSelector* selector = const_cast<CSSParserSelector*>(this); sel ector; selector = selector->tagHistory()) { 341 for (CSSParserSelector* selector = const_cast<CSSParserSelector*>(this); sel ector; selector = selector->tagHistory()) {
340 if (selector->pseudoType() == CSSSelector::PseudoHost || selector->pseud oType() == CSSSelector::PseudoHostContext) 342 if (selector->pseudoType() == CSSSelector::PseudoHost || selector->pseud oType() == CSSSelector::PseudoHostContext)
341 return true; 343 return true;
342 } 344 }
343 return false; 345 return false;
344 } 346 }
345 347
346 } // namespace blink 348 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/css/parser/CSSParserToken.h ('k') | Source/core/css/parser/CSSTokenizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698