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

Side by Side Diff: Source/core/css/CSSParser.h

Issue 15317009: Fix for CSS Variables tokenisation not checking CSS identifier length (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/css/CSSParser.cpp » ('j') | Source/core/css/CSSParser.cpp » ('J')
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, 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 458 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 template <typename CharacterType> 469 template <typename CharacterType>
470 inline void detectMediaQueryToken(int); 470 inline void detectMediaQueryToken(int);
471 template <typename CharacterType> 471 template <typename CharacterType>
472 inline void detectNumberToken(CharacterType*, int); 472 inline void detectNumberToken(CharacterType*, int);
473 template <typename CharacterType> 473 template <typename CharacterType>
474 inline void detectDashToken(int); 474 inline void detectDashToken(int);
475 template <typename CharacterType> 475 template <typename CharacterType>
476 inline void detectAtToken(int, bool); 476 inline void detectAtToken(int, bool);
477 template <typename CharacterType> 477 template <typename CharacterType>
478 inline void detectSupportsToken(int); 478 inline void detectSupportsToken(int);
479 template <typename CharacterType>
480 inline bool detectCSSVariablesToken(int);
479 481
480 void setStyleSheet(StyleSheetContents* styleSheet) { m_styleSheet = styleShe et; } 482 void setStyleSheet(StyleSheetContents* styleSheet) { m_styleSheet = styleShe et; }
481 483
482 inline bool inStrictMode() const { return m_context.mode == CSSStrictMode || m_context.mode == SVGAttributeMode; } 484 inline bool inStrictMode() const { return m_context.mode == CSSStrictMode || m_context.mode == SVGAttributeMode; }
483 inline bool inQuirksMode() const { return m_context.mode == CSSQuirksMode; } 485 inline bool inQuirksMode() const { return m_context.mode == CSSQuirksMode; }
484 486
485 KURL completeURL(const String& url) const; 487 KURL completeURL(const String& url) const;
486 488
487 void recheckAtKeyword(const UChar* str, int len); 489 void recheckAtKeyword(const UChar* str, int len);
488 490
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
704 } 706 }
705 707
706 inline int cssyylex(void* yylval, CSSParser* parser) 708 inline int cssyylex(void* yylval, CSSParser* parser)
707 { 709 {
708 return parser->lex(yylval); 710 return parser->lex(yylval);
709 } 711 }
710 712
711 } // namespace WebCore 713 } // namespace WebCore
712 714
713 #endif // CSSParser_h 715 #endif // CSSParser_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/css/CSSParser.cpp » ('j') | Source/core/css/CSSParser.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698