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

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

Issue 201573006: Cleaned up MediaQueryExp creation from BisonCSSParser (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@mqexp_create
Patch Set: Created 6 years, 9 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
« no previous file with comments | « no previous file | Source/core/css/parser/BisonCSSParser-in.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 PassRefPtrWillBeRawPtr<StyleRuleBase> parseRule(StyleSheetContents*, const S tring&); 91 PassRefPtrWillBeRawPtr<StyleRuleBase> parseRule(StyleSheetContents*, const S tring&);
92 PassRefPtr<StyleKeyframe> parseKeyframeRule(StyleSheetContents*, const Strin g&); 92 PassRefPtr<StyleKeyframe> parseKeyframeRule(StyleSheetContents*, const Strin g&);
93 bool parseSupportsCondition(const String&); 93 bool parseSupportsCondition(const String&);
94 static bool parseValue(MutableStylePropertySet*, CSSPropertyID, const String &, bool important, CSSParserMode, StyleSheetContents*); 94 static bool parseValue(MutableStylePropertySet*, CSSPropertyID, const String &, bool important, CSSParserMode, StyleSheetContents*);
95 static bool parseColor(RGBA32& color, const String&, bool strict = false); 95 static bool parseColor(RGBA32& color, const String&, bool strict = false);
96 static bool parseSystemColor(RGBA32& color, const String&); 96 static bool parseSystemColor(RGBA32& color, const String&);
97 static PassRefPtrWillBeRawPtr<CSSValueList> parseFontFaceValue(const AtomicS tring&); 97 static PassRefPtrWillBeRawPtr<CSSValueList> parseFontFaceValue(const AtomicS tring&);
98 static PassRefPtrWillBeRawPtr<CSSValue> parseAnimationTimingFunctionValue(co nst String&); 98 static PassRefPtrWillBeRawPtr<CSSValue> parseAnimationTimingFunctionValue(co nst String&);
99 bool parseDeclaration(MutableStylePropertySet*, const String&, CSSParserObse rver*, StyleSheetContents* contextStyleSheet); 99 bool parseDeclaration(MutableStylePropertySet*, const String&, CSSParserObse rver*, StyleSheetContents* contextStyleSheet);
100 static PassRefPtr<ImmutableStylePropertySet> parseInlineStyleDeclaration(con st String&, Element*); 100 static PassRefPtr<ImmutableStylePropertySet> parseInlineStyleDeclaration(con st String&, Element*);
101 PassRefPtrWillBeRawPtr<MediaQuerySet> parseMediaQueryList(const String&);
102 PassOwnPtr<Vector<double> > parseKeyframeKeyList(const String&); 101 PassOwnPtr<Vector<double> > parseKeyframeKeyList(const String&);
103 102
104 static bool parseValue(MutableStylePropertySet*, CSSPropertyID, const String &, bool important, const Document&); 103 static bool parseValue(MutableStylePropertySet*, CSSPropertyID, const String &, bool important, const Document&);
105 104
106 bool parseValue(CSSPropertyID, bool important); 105 bool parseValue(CSSPropertyID, bool important);
107 void parseSelector(const String&, CSSSelectorList&); 106 void parseSelector(const String&, CSSSelectorList&);
108 107
109 CSSParserSelector* createFloatingSelector(); 108 CSSParserSelector* createFloatingSelector();
110 CSSParserSelector* createFloatingSelectorWithTagName(const QualifiedName&); 109 CSSParserSelector* createFloatingSelectorWithTagName(const QualifiedName&);
111 PassOwnPtr<CSSParserSelector> sinkFloatingSelector(CSSParserSelector*); 110 PassOwnPtr<CSSParserSelector> sinkFloatingSelector(CSSParserSelector*);
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 inline int cssyylex(void* yylval, BisonCSSParser* parser) 319 inline int cssyylex(void* yylval, BisonCSSParser* parser)
321 { 320 {
322 return parser->m_tokenizer.lex(yylval); 321 return parser->m_tokenizer.lex(yylval);
323 } 322 }
324 323
325 bool isValidNthToken(const CSSParserString&); 324 bool isValidNthToken(const CSSParserString&);
326 325
327 } // namespace WebCore 326 } // namespace WebCore
328 327
329 #endif // BisonCSSParser_h 328 #endif // BisonCSSParser_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/css/parser/BisonCSSParser-in.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698