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

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: Added check for extra CSS identifier character plus assert 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 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 template <typename CharacterType> 493 template <typename CharacterType>
494 inline void detectMediaQueryToken(int); 494 inline void detectMediaQueryToken(int);
495 template <typename CharacterType> 495 template <typename CharacterType>
496 inline void detectNumberToken(CharacterType*, int); 496 inline void detectNumberToken(CharacterType*, int);
497 template <typename CharacterType> 497 template <typename CharacterType>
498 inline void detectDashToken(int); 498 inline void detectDashToken(int);
499 template <typename CharacterType> 499 template <typename CharacterType>
500 inline void detectAtToken(int, bool); 500 inline void detectAtToken(int, bool);
501 template <typename CharacterType> 501 template <typename CharacterType>
502 inline void detectSupportsToken(int); 502 inline void detectSupportsToken(int);
503 template <typename CharacterType>
504 inline bool detectCSSVariablesToken(int);
503 505
504 void setStyleSheet(StyleSheetContents* styleSheet) { m_styleSheet = styleShe et; } 506 void setStyleSheet(StyleSheetContents* styleSheet) { m_styleSheet = styleShe et; }
505 507
506 inline bool inStrictMode() const { return m_context.mode == CSSStrictMode || m_context.mode == SVGAttributeMode; } 508 inline bool inStrictMode() const { return m_context.mode == CSSStrictMode || m_context.mode == SVGAttributeMode; }
507 inline bool inQuirksMode() const { return m_context.mode == CSSQuirksMode; } 509 inline bool inQuirksMode() const { return m_context.mode == CSSQuirksMode; }
508 510
509 KURL completeURL(const String& url) const; 511 KURL completeURL(const String& url) const;
510 512
511 void recheckAtKeyword(const UChar* str, int len); 513 void recheckAtKeyword(const UChar* str, int len);
512 514
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
730 } 732 }
731 733
732 inline int cssyylex(void* yylval, CSSParser* parser) 734 inline int cssyylex(void* yylval, CSSParser* parser)
733 { 735 {
734 return parser->lex(yylval); 736 return parser->lex(yylval);
735 } 737 }
736 738
737 } // namespace WebCore 739 } // namespace WebCore
738 740
739 #endif // CSSParser_h 741 #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