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 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
337 | 337 |
338 bool m_hasFontFaceOnlyValues; | 338 bool m_hasFontFaceOnlyValues; |
339 bool m_hadSyntacticallyValidCSSRule; | 339 bool m_hadSyntacticallyValidCSSRule; |
340 | 340 |
341 AtomicString m_defaultNamespace; | 341 AtomicString m_defaultNamespace; |
342 | 342 |
343 // tokenizer methods and data | 343 // tokenizer methods and data |
344 size_t m_parsedTextPrefixLength; | 344 size_t m_parsedTextPrefixLength; |
345 SourceRange m_propertyRange; | 345 SourceRange m_propertyRange; |
346 OwnPtr<RuleSourceDataList> m_currentRuleDataStack; | 346 OwnPtr<RuleSourceDataList> m_currentRuleDataStack; |
| 347 RefPtr<CSSRuleSourceData> m_currentRuleData; |
347 RuleSourceDataList* m_ruleSourceDataResult; | 348 RuleSourceDataList* m_ruleSourceDataResult; |
348 | 349 |
349 void fixUnparsedPropertyRanges(CSSRuleSourceData*); | 350 void fixUnparsedPropertyRanges(CSSRuleSourceData*); |
350 void markRuleHeaderStart(CSSRuleSourceData::Type); | 351 void markRuleHeaderStart(CSSRuleSourceData::Type); |
351 void markRuleHeaderEnd(); | 352 void markRuleHeaderEnd(); |
352 void markRuleBodyStart(); | 353 void markRuleBodyStart(); |
353 void markRuleBodyEnd(); | 354 void markRuleBodyEnd(); |
354 void markPropertyStart(); | 355 void markPropertyStart(); |
355 void markPropertyEnd(bool isImportantFound, bool isPropertyParsed); | 356 void markPropertyEnd(bool isImportantFound, bool isPropertyParsed); |
356 void processAndAddNewRuleToSourceTreeIfNeeded(); | 357 void processAndAddNewRuleToSourceTreeIfNeeded(); |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
627 } | 628 } |
628 | 629 |
629 inline int cssyylex(void* yylval, CSSParser* parser) | 630 inline int cssyylex(void* yylval, CSSParser* parser) |
630 { | 631 { |
631 return parser->lex(yylval); | 632 return parser->lex(yylval); |
632 } | 633 } |
633 | 634 |
634 } // namespace WebCore | 635 } // namespace WebCore |
635 | 636 |
636 #endif // CSSParser_h | 637 #endif // CSSParser_h |
OLD | NEW |