| 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 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 526 inline void detectDashToken(int); | 526 inline void detectDashToken(int); |
| 527 template <typename CharacterType> | 527 template <typename CharacterType> |
| 528 inline void detectAtToken(int, bool); | 528 inline void detectAtToken(int, bool); |
| 529 template <typename CharacterType> | 529 template <typename CharacterType> |
| 530 inline void detectSupportsToken(int); | 530 inline void detectSupportsToken(int); |
| 531 template <typename CharacterType> | 531 template <typename CharacterType> |
| 532 inline void detectCSSVariableDefinitionToken(int); | 532 inline void detectCSSVariableDefinitionToken(int); |
| 533 | 533 |
| 534 void setStyleSheet(StyleSheetContents* styleSheet) { m_styleSheet = styleShe
et; } | 534 void setStyleSheet(StyleSheetContents* styleSheet) { m_styleSheet = styleShe
et; } |
| 535 | 535 |
| 536 inline bool inStrictMode() const { return m_context.mode == CSSStrictMode ||
m_context.mode == SVGAttributeMode; } | 536 inline bool inStrictMode() const { return isStrictParserMode(m_context.mode)
; } |
| 537 inline bool inQuirksMode() const { return m_context.mode == CSSQuirksMode; } | 537 inline bool inQuirksMode() const { return m_context.mode == CSSQuirksMode; } |
| 538 | 538 |
| 539 KURL completeURL(const String& url) const; | 539 KURL completeURL(const String& url) const; |
| 540 | 540 |
| 541 void recheckAtKeyword(const UChar* str, int len); | 541 void recheckAtKeyword(const UChar* str, int len); |
| 542 | 542 |
| 543 template<unsigned prefixLength, unsigned suffixLength> | 543 template<unsigned prefixLength, unsigned suffixLength> |
| 544 inline void setupParser(const char (&prefix)[prefixLength], const String& st
ring, const char (&suffix)[suffixLength]) | 544 inline void setupParser(const char (&prefix)[prefixLength], const String& st
ring, const char (&suffix)[suffixLength]) |
| 545 { | 545 { |
| 546 setupParser(prefix, prefixLength - 1, string, suffix, suffixLength - 1); | 546 setupParser(prefix, prefixLength - 1, string, suffix, suffixLength - 1); |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 757 } | 757 } |
| 758 | 758 |
| 759 inline int cssyylex(void* yylval, CSSParser* parser) | 759 inline int cssyylex(void* yylval, CSSParser* parser) |
| 760 { | 760 { |
| 761 return parser->lex(yylval); | 761 return parser->lex(yylval); |
| 762 } | 762 } |
| 763 | 763 |
| 764 } // namespace WebCore | 764 } // namespace WebCore |
| 765 | 765 |
| 766 #endif // CSSParser_h | 766 #endif // CSSParser_h |
| OLD | NEW |