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

Side by Side Diff: Source/core/css/CSSParser.h

Issue 19037003: Re-use CSSParser logic to parse keyframe keys (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 7 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 | 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 PassRefPtr<StyleKeyframe> parseKeyframeRule(StyleSheetContents*, const Strin g&); 100 PassRefPtr<StyleKeyframe> parseKeyframeRule(StyleSheetContents*, const Strin g&);
101 bool parseSupportsCondition(const String&); 101 bool parseSupportsCondition(const String&);
102 static bool parseValue(MutableStylePropertySet*, CSSPropertyID, const String &, bool important, CSSParserMode, StyleSheetContents*); 102 static bool parseValue(MutableStylePropertySet*, CSSPropertyID, const String &, bool important, CSSParserMode, StyleSheetContents*);
103 static bool parseColor(RGBA32& color, const String&, bool strict = false); 103 static bool parseColor(RGBA32& color, const String&, bool strict = false);
104 static bool parseSystemColor(RGBA32& color, const String&, Document*); 104 static bool parseSystemColor(RGBA32& color, const String&, Document*);
105 static PassRefPtr<CSSValueList> parseFontFaceValue(const AtomicString&); 105 static PassRefPtr<CSSValueList> parseFontFaceValue(const AtomicString&);
106 PassRefPtr<CSSPrimitiveValue> parseValidPrimitive(CSSValueID ident, CSSParse rValue*); 106 PassRefPtr<CSSPrimitiveValue> parseValidPrimitive(CSSValueID ident, CSSParse rValue*);
107 bool parseDeclaration(MutableStylePropertySet*, const String&, SourceDataHan dler*, StyleSheetContents* contextStyleSheet); 107 bool parseDeclaration(MutableStylePropertySet*, const String&, SourceDataHan dler*, StyleSheetContents* contextStyleSheet);
108 static PassRefPtr<ImmutableStylePropertySet> parseInlineStyleDeclaration(con st String&, Element*); 108 static PassRefPtr<ImmutableStylePropertySet> parseInlineStyleDeclaration(con st String&, Element*);
109 PassRefPtr<MediaQuerySet> parseMediaQueryList(const String&); 109 PassRefPtr<MediaQuerySet> parseMediaQueryList(const String&);
110 PassOwnPtr<Vector<float> > parseKeyframeKeyList(const String&);
110 111
111 void addPropertyWithPrefixingVariant(CSSPropertyID, PassRefPtr<CSSValue>, bo ol important, bool implicit = false); 112 void addPropertyWithPrefixingVariant(CSSPropertyID, PassRefPtr<CSSValue>, bo ol important, bool implicit = false);
112 void addProperty(CSSPropertyID, PassRefPtr<CSSValue>, bool important, bool i mplicit = false); 113 void addProperty(CSSPropertyID, PassRefPtr<CSSValue>, bool important, bool i mplicit = false);
113 void rollbackLastProperties(int num); 114 void rollbackLastProperties(int num);
114 bool hasProperties() const { return !m_parsedProperties.isEmpty(); } 115 bool hasProperties() const { return !m_parsedProperties.isEmpty(); }
115 void addExpandedPropertyForValue(CSSPropertyID propId, PassRefPtr<CSSValue>, bool); 116 void addExpandedPropertyForValue(CSSPropertyID propId, PassRefPtr<CSSValue>, bool);
116 void setCurrentProperty(CSSPropertyID); 117 void setCurrentProperty(CSSPropertyID);
117 118
118 bool parseValue(CSSPropertyID, bool important); 119 bool parseValue(CSSPropertyID, bool important);
119 bool parseShorthand(CSSPropertyID, const StylePropertyShorthand&, bool impor tant); 120 bool parseShorthand(CSSPropertyID, const StylePropertyShorthand&, bool impor tant);
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after
742 } 743 }
743 744
744 inline int cssyylex(void* yylval, CSSParser* parser) 745 inline int cssyylex(void* yylval, CSSParser* parser)
745 { 746 {
746 return parser->lex(yylval); 747 return parser->lex(yylval);
747 } 748 }
748 749
749 } // namespace WebCore 750 } // namespace WebCore
750 751
751 #endif // CSSParser_h 752 #endif // CSSParser_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698