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