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 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
497 void recheckAtKeyword(const UChar* str, int len); | 497 void recheckAtKeyword(const UChar* str, int len); |
498 | 498 |
499 template<unsigned prefixLength, unsigned suffixLength> | 499 template<unsigned prefixLength, unsigned suffixLength> |
500 inline void setupParser(const char (&prefix)[prefixLength], const String& st
ring, const char (&suffix)[suffixLength]) | 500 inline void setupParser(const char (&prefix)[prefixLength], const String& st
ring, const char (&suffix)[suffixLength]) |
501 { | 501 { |
502 setupParser(prefix, prefixLength - 1, string, suffix, suffixLength - 1); | 502 setupParser(prefix, prefixLength - 1, string, suffix, suffixLength - 1); |
503 } | 503 } |
504 void setupParser(const char* prefix, unsigned prefixLength, const String&, c
onst char* suffix, unsigned suffixLength); | 504 void setupParser(const char* prefix, unsigned prefixLength, const String&, c
onst char* suffix, unsigned suffixLength); |
505 bool inShorthand() const { return m_inParseShorthand; } | 505 bool inShorthand() const { return m_inParseShorthand; } |
506 | 506 |
507 bool validWidth(CSSParserValue*); | 507 bool validWidthOrHeight(CSSParserValue*); |
508 bool validHeight(CSSParserValue*); | |
509 | 508 |
510 void deleteFontFaceOnlyValues(); | 509 void deleteFontFaceOnlyValues(); |
511 | 510 |
512 bool isGeneratedImageValue(CSSParserValue*) const; | 511 bool isGeneratedImageValue(CSSParserValue*) const; |
513 bool parseGeneratedImage(CSSParserValueList*, RefPtr<CSSValue>&); | 512 bool parseGeneratedImage(CSSParserValueList*, RefPtr<CSSValue>&); |
514 | 513 |
515 bool parseValue(StylePropertySet*, CSSPropertyID, const String&, bool import
ant, StyleSheetContents* contextStyleSheet); | 514 bool parseValue(StylePropertySet*, CSSPropertyID, const String&, bool import
ant, StyleSheetContents* contextStyleSheet); |
516 PassRefPtr<StylePropertySet> parseDeclaration(const String&, StyleSheetConte
nts* contextStyleSheet); | 515 PassRefPtr<StylePropertySet> parseDeclaration(const String&, StyleSheetConte
nts* contextStyleSheet); |
517 | 516 |
518 enum SizeParameterType { | 517 enum SizeParameterType { |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
716 } | 715 } |
717 | 716 |
718 inline int cssyylex(void* yylval, CSSParser* parser) | 717 inline int cssyylex(void* yylval, CSSParser* parser) |
719 { | 718 { |
720 return parser->lex(yylval); | 719 return parser->lex(yylval); |
721 } | 720 } |
722 | 721 |
723 } // namespace WebCore | 722 } // namespace WebCore |
724 | 723 |
725 #endif // CSSParser_h | 724 #endif // CSSParser_h |
OLD | NEW |