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

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

Issue 361543002: Remove SVGPaint (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix tests Created 6 years, 5 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
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 class CSSValue; 55 class CSSValue;
56 class CSSValueList; 56 class CSSValueList;
57 class CSSBasicShape; 57 class CSSBasicShape;
58 class CSSBasicShapeInset; 58 class CSSBasicShapeInset;
59 class Document; 59 class Document;
60 class Element; 60 class Element;
61 class ImmutableStylePropertySet; 61 class ImmutableStylePropertySet;
62 class MediaQueryExp; 62 class MediaQueryExp;
63 class MediaQuerySet; 63 class MediaQuerySet;
64 class MutableStylePropertySet; 64 class MutableStylePropertySet;
65 class StyleColor;
65 class StyleKeyframe; 66 class StyleKeyframe;
66 class StylePropertyShorthand; 67 class StylePropertyShorthand;
67 class StyleRuleBase; 68 class StyleRuleBase;
68 class StyleRuleKeyframes; 69 class StyleRuleKeyframes;
69 class StyleKeyframe; 70 class StyleKeyframe;
70 class StyleSheetContents; 71 class StyleSheetContents;
71 class UseCounter; 72 class UseCounter;
72 73
73 // FIXME: This class is shared with CSSTokenizer so should we rename it to CSSSo urceLocation? 74 // FIXME: This class is shared with CSSTokenizer so should we rename it to CSSSo urceLocation?
74 struct CSSParserLocation { 75 struct CSSParserLocation {
(...skipping 11 matching lines...) Expand all
86 87
87 void rollbackLastProperties(int num); 88 void rollbackLastProperties(int num);
88 void setCurrentProperty(CSSPropertyID); 89 void setCurrentProperty(CSSPropertyID);
89 90
90 void parseSheet(StyleSheetContents*, const String&, const TextPosition& star tPosition = TextPosition::minimumPosition(), CSSParserObserver* = 0, bool = fals e); 91 void parseSheet(StyleSheetContents*, const String&, const TextPosition& star tPosition = TextPosition::minimumPosition(), CSSParserObserver* = 0, bool = fals e);
91 PassRefPtrWillBeRawPtr<StyleRuleBase> parseRule(StyleSheetContents*, const S tring&); 92 PassRefPtrWillBeRawPtr<StyleRuleBase> parseRule(StyleSheetContents*, const S tring&);
92 PassRefPtrWillBeRawPtr<StyleKeyframe> parseKeyframeRule(StyleSheetContents*, const String&); 93 PassRefPtrWillBeRawPtr<StyleKeyframe> parseKeyframeRule(StyleSheetContents*, const String&);
93 bool parseSupportsCondition(const String&); 94 bool parseSupportsCondition(const String&);
94 static bool parseValue(MutableStylePropertySet*, CSSPropertyID, const String &, bool important, CSSParserMode, StyleSheetContents*); 95 static bool parseValue(MutableStylePropertySet*, CSSPropertyID, const String &, bool important, CSSParserMode, StyleSheetContents*);
95 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&);
pdr 2014/06/30 22:39:59 This doesn't feel like the right place for this fu
96 static bool parseSystemColor(RGBA32& color, const String&); 98 static bool parseSystemColor(RGBA32& color, const String&);
97 static PassRefPtrWillBeRawPtr<CSSValueList> parseFontFaceValue(const AtomicS tring&); 99 static PassRefPtrWillBeRawPtr<CSSValueList> parseFontFaceValue(const AtomicS tring&);
98 static PassRefPtrWillBeRawPtr<CSSValue> parseAnimationTimingFunctionValue(co nst String&); 100 static PassRefPtrWillBeRawPtr<CSSValue> parseAnimationTimingFunctionValue(co nst String&);
99 bool parseDeclaration(MutableStylePropertySet*, const String&, CSSParserObse rver*, StyleSheetContents* contextStyleSheet); 101 bool parseDeclaration(MutableStylePropertySet*, const String&, CSSParserObse rver*, StyleSheetContents* contextStyleSheet);
100 static PassRefPtrWillBeRawPtr<ImmutableStylePropertySet> parseInlineStyleDec laration(const String&, Element*); 102 static PassRefPtrWillBeRawPtr<ImmutableStylePropertySet> parseInlineStyleDec laration(const String&, Element*);
101 PassRefPtrWillBeRawPtr<MediaQuerySet> parseMediaQueryList(const String&); 103 PassRefPtrWillBeRawPtr<MediaQuerySet> parseMediaQueryList(const String&);
102 PassOwnPtr<Vector<double> > parseKeyframeKeyList(const String&); 104 PassOwnPtr<Vector<double> > parseKeyframeKeyList(const String&);
103 105
104 static bool parseValue(MutableStylePropertySet*, CSSPropertyID, const String &, bool important, const Document&); 106 static bool parseValue(MutableStylePropertySet*, CSSPropertyID, const String &, bool important, const Document&);
105 107
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 inline int cssyylex(void* yylval, BisonCSSParser* parser) 320 inline int cssyylex(void* yylval, BisonCSSParser* parser)
319 { 321 {
320 return parser->m_tokenizer.lex(yylval); 322 return parser->m_tokenizer.lex(yylval);
321 } 323 }
322 324
323 bool isValidNthToken(const CSSParserString&); 325 bool isValidNthToken(const CSSParserString&);
324 326
325 } // namespace WebCore 327 } // namespace WebCore
326 328
327 #endif // BisonCSSParser_h 329 #endif // BisonCSSParser_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698