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

Side by Side Diff: Source/core/css/parser/BisonCSSParser.h

Issue 213743018: Fix for CSS identifier related assert (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added explanation in a comment. Created 6 years, 8 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
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, 2009, 2010 Apple Inc. All rights reserv ed. 3 * Copyright (C) 2004, 2005, 2006, 2008, 2009, 2010 Apple Inc. All rights reserv ed.
4 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> 4 * Copyright (C) 2008 Eric Seidel <eric@webkit.org>
5 * Copyright (C) 2009 - 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserve d. 5 * Copyright (C) 2009 - 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserve d.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 void startProperty(); 211 void startProperty();
212 void endProperty(bool isImportantFound, bool isPropertyParsed, CSSParserErro r = NoCSSError); 212 void endProperty(bool isImportantFound, bool isPropertyParsed, CSSParserErro r = NoCSSError);
213 void startEndUnknownRule(); 213 void startEndUnknownRule();
214 214
215 void endInvalidRuleHeader(); 215 void endInvalidRuleHeader();
216 void reportError(const CSSParserLocation&, CSSParserError = GeneralCSSError) ; 216 void reportError(const CSSParserLocation&, CSSParserError = GeneralCSSError) ;
217 void resumeErrorLogging() { m_ignoreErrors = false; } 217 void resumeErrorLogging() { m_ignoreErrors = false; }
218 void setLocationLabel(const CSSParserLocation& location) { m_locationLabel = location; } 218 void setLocationLabel(const CSSParserLocation& location) { m_locationLabel = location; }
219 const CSSParserLocation& lastLocationLabel() const { return m_locationLabel; } 219 const CSSParserLocation& lastLocationLabel() const { return m_locationLabel; }
220 220
221 void tokenToLowerCase(const CSSParserString& token); 221 void tokenToLowerCase(CSSParserString& token);
222 222
223 void markViewportRuleBodyStart() { m_inViewport = true; } 223 void markViewportRuleBodyStart() { m_inViewport = true; }
224 void markViewportRuleBodyEnd() { m_inViewport = false; } 224 void markViewportRuleBodyEnd() { m_inViewport = false; }
225 StyleRuleBase* createViewportRule(); 225 StyleRuleBase* createViewportRule();
226 226
227 CSSParserLocation currentLocation() { return m_tokenizer.currentLocation(); } 227 CSSParserLocation currentLocation() { return m_tokenizer.currentLocation(); }
228 228
229 private: 229 private:
230 class StyleDeclarationScope { 230 class StyleDeclarationScope {
231 STACK_ALLOCATED(); 231 STACK_ALLOCATED();
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 inline int cssyylex(void* yylval, BisonCSSParser* parser) 321 inline int cssyylex(void* yylval, BisonCSSParser* parser)
322 { 322 {
323 return parser->m_tokenizer.lex(yylval); 323 return parser->m_tokenizer.lex(yylval);
324 } 324 }
325 325
326 bool isValidNthToken(const CSSParserString&); 326 bool isValidNthToken(const CSSParserString&);
327 327
328 } // namespace WebCore 328 } // namespace WebCore
329 329
330 #endif // BisonCSSParser_h 330 #endif // BisonCSSParser_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698