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

Side by Side Diff: Source/core/css/parser/BisonCSSParser.h

Issue 330043003: Add support for case-insensitive attribute value selectors (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Move zero-initialization of m_bits to RareData constructor (explicitly). Created 6 years, 4 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
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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 static bool parseValue(MutableStylePropertySet*, CSSPropertyID, const String &, bool important, CSSParserMode, StyleSheetContents*); 95 static bool parseValue(MutableStylePropertySet*, CSSPropertyID, const String &, bool important, CSSParserMode, StyleSheetContents*);
96 static bool parseColor(RGBA32& color, const String&, bool strict = false); 96 static bool parseColor(RGBA32& color, const String&, bool strict = false);
97 static StyleColor colorFromRGBColorString(const String&); 97 static StyleColor colorFromRGBColorString(const String&);
98 static bool parseSystemColor(RGBA32& color, const String&); 98 static bool parseSystemColor(RGBA32& color, const String&);
99 static PassRefPtrWillBeRawPtr<CSSValueList> parseFontFaceValue(const AtomicS tring&); 99 static PassRefPtrWillBeRawPtr<CSSValueList> parseFontFaceValue(const AtomicS tring&);
100 static PassRefPtrWillBeRawPtr<CSSValue> parseAnimationTimingFunctionValue(co nst String&); 100 static PassRefPtrWillBeRawPtr<CSSValue> parseAnimationTimingFunctionValue(co nst String&);
101 bool parseDeclaration(MutableStylePropertySet*, const String&, CSSParserObse rver*, StyleSheetContents* contextStyleSheet); 101 bool parseDeclaration(MutableStylePropertySet*, const String&, CSSParserObse rver*, StyleSheetContents* contextStyleSheet);
102 static PassRefPtrWillBeRawPtr<ImmutableStylePropertySet> parseInlineStyleDec laration(const String&, Element*); 102 static PassRefPtrWillBeRawPtr<ImmutableStylePropertySet> parseInlineStyleDec laration(const String&, Element*);
103 PassRefPtrWillBeRawPtr<MediaQuerySet> parseMediaQueryList(const String&); 103 PassRefPtrWillBeRawPtr<MediaQuerySet> parseMediaQueryList(const String&);
104 PassOwnPtr<Vector<double> > parseKeyframeKeyList(const String&); 104 PassOwnPtr<Vector<double> > parseKeyframeKeyList(const String&);
105 bool parseAttributeMatchType(CSSSelector::AttributeMatchType&, const String& );
105 106
106 static bool parseValue(MutableStylePropertySet*, CSSPropertyID, const String &, bool important, const Document&); 107 static bool parseValue(MutableStylePropertySet*, CSSPropertyID, const String &, bool important, const Document&);
107 108
108 bool parseValue(CSSPropertyID, bool important); 109 bool parseValue(CSSPropertyID, bool important);
109 void parseSelector(const String&, CSSSelectorList&); 110 void parseSelector(const String&, CSSSelectorList&);
110 111
111 CSSParserSelector* createFloatingSelector(); 112 CSSParserSelector* createFloatingSelector();
112 CSSParserSelector* createFloatingSelectorWithTagName(const QualifiedName&); 113 CSSParserSelector* createFloatingSelectorWithTagName(const QualifiedName&);
113 PassOwnPtr<CSSParserSelector> sinkFloatingSelector(CSSParserSelector*); 114 PassOwnPtr<CSSParserSelector> sinkFloatingSelector(CSSParserSelector*);
114 115
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 inline int cssyylex(void* yylval, BisonCSSParser* parser) 321 inline int cssyylex(void* yylval, BisonCSSParser* parser)
321 { 322 {
322 return parser->m_tokenizer.lex(yylval); 323 return parser->m_tokenizer.lex(yylval);
323 } 324 }
324 325
325 bool isValidNthToken(const CSSParserString&); 326 bool isValidNthToken(const CSSParserString&);
326 327
327 } // namespace blink 328 } // namespace blink
328 329
329 #endif // BisonCSSParser_h 330 #endif // BisonCSSParser_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698