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

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

Issue 12470005: Merge 144626 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1410/
Patch Set: Created 7 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 | « Source/WebCore/css/CSSComputedStyleDeclaration.cpp ('k') | Source/WebCore/css/CSSParser.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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 PassRefPtr<StyleKeyframe> parseKeyframeRule(StyleSheetContents*, const Strin g&); 82 PassRefPtr<StyleKeyframe> parseKeyframeRule(StyleSheetContents*, const Strin g&);
83 static bool parseValue(StylePropertySet*, CSSPropertyID, const String&, bool important, CSSParserMode, StyleSheetContents*); 83 static bool parseValue(StylePropertySet*, CSSPropertyID, const String&, bool important, CSSParserMode, StyleSheetContents*);
84 static bool parseColor(RGBA32& color, const String&, bool strict = false); 84 static bool parseColor(RGBA32& color, const String&, bool strict = false);
85 static bool parseSystemColor(RGBA32& color, const String&, Document*); 85 static bool parseSystemColor(RGBA32& color, const String&, Document*);
86 static PassRefPtr<CSSValueList> parseFontFaceValue(const AtomicString&); 86 static PassRefPtr<CSSValueList> parseFontFaceValue(const AtomicString&);
87 PassRefPtr<CSSPrimitiveValue> parseValidPrimitive(int ident, CSSParserValue* ); 87 PassRefPtr<CSSPrimitiveValue> parseValidPrimitive(int ident, CSSParserValue* );
88 bool parseDeclaration(StylePropertySet*, const String&, PassRefPtr<CSSRuleSo urceData>, StyleSheetContents* contextStyleSheet); 88 bool parseDeclaration(StylePropertySet*, const String&, PassRefPtr<CSSRuleSo urceData>, StyleSheetContents* contextStyleSheet);
89 static PassRefPtr<StylePropertySet> parseInlineStyleDeclaration(const String &, Element*); 89 static PassRefPtr<StylePropertySet> parseInlineStyleDeclaration(const String &, Element*);
90 PassOwnPtr<MediaQuery> parseMediaQuery(const String&); 90 PassOwnPtr<MediaQuery> parseMediaQuery(const String&);
91 91
92 void addPropertyWithPrefixingVariant(CSSPropertyID, PassRefPtr<CSSValue>, bo ol important, bool implicit = false);
92 void addProperty(CSSPropertyID, PassRefPtr<CSSValue>, bool important, bool i mplicit = false); 93 void addProperty(CSSPropertyID, PassRefPtr<CSSValue>, bool important, bool i mplicit = false);
93 void rollbackLastProperties(int num); 94 void rollbackLastProperties(int num);
94 bool hasProperties() const { return !m_parsedProperties.isEmpty(); } 95 bool hasProperties() const { return !m_parsedProperties.isEmpty(); }
95 void addExpandedPropertyForValue(CSSPropertyID propId, PassRefPtr<CSSValue>, bool); 96 void addExpandedPropertyForValue(CSSPropertyID propId, PassRefPtr<CSSValue>, bool);
96 97
97 bool parseValue(CSSPropertyID, bool important); 98 bool parseValue(CSSPropertyID, bool important);
98 bool parseShorthand(CSSPropertyID, const StylePropertyShorthand&, bool impor tant); 99 bool parseShorthand(CSSPropertyID, const StylePropertyShorthand&, bool impor tant);
99 bool parse4Values(CSSPropertyID, const CSSPropertyID* properties, bool impor tant); 100 bool parse4Values(CSSPropertyID, const CSSPropertyID* properties, bool impor tant);
100 bool parseContent(CSSPropertyID, bool important); 101 bool parseContent(CSSPropertyID, bool important);
101 bool parseQuotes(CSSPropertyID, bool important); 102 bool parseQuotes(CSSPropertyID, bool important);
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 PassRefPtr<CSSValue> parseAnimationFillMode(); 140 PassRefPtr<CSSValue> parseAnimationFillMode();
140 PassRefPtr<CSSValue> parseAnimationIterationCount(); 141 PassRefPtr<CSSValue> parseAnimationIterationCount();
141 PassRefPtr<CSSValue> parseAnimationName(); 142 PassRefPtr<CSSValue> parseAnimationName();
142 PassRefPtr<CSSValue> parseAnimationPlayState(); 143 PassRefPtr<CSSValue> parseAnimationPlayState();
143 PassRefPtr<CSSValue> parseAnimationProperty(bool& allowAnimationProperty); 144 PassRefPtr<CSSValue> parseAnimationProperty(bool& allowAnimationProperty);
144 PassRefPtr<CSSValue> parseAnimationTimingFunction(); 145 PassRefPtr<CSSValue> parseAnimationTimingFunction();
145 146
146 bool parseTransformOriginShorthand(RefPtr<CSSValue>&, RefPtr<CSSValue>&, Ref Ptr<CSSValue>&); 147 bool parseTransformOriginShorthand(RefPtr<CSSValue>&, RefPtr<CSSValue>&, Ref Ptr<CSSValue>&);
147 bool parseCubicBezierTimingFunctionValue(CSSParserValueList*& args, double& result); 148 bool parseCubicBezierTimingFunctionValue(CSSParserValueList*& args, double& result);
148 bool parseAnimationProperty(CSSPropertyID, RefPtr<CSSValue>&); 149 bool parseAnimationProperty(CSSPropertyID, RefPtr<CSSValue>&);
149 bool parseTransitionShorthand(bool important); 150 bool parseTransitionShorthand(CSSPropertyID, bool important);
150 bool parseAnimationShorthand(bool important); 151 bool parseAnimationShorthand(bool important);
151 152
152 bool cssGridLayoutEnabled() const; 153 bool cssGridLayoutEnabled() const;
153 bool parseGridTrackList(CSSPropertyID, bool important); 154 bool parseGridTrackList(CSSPropertyID, bool important);
154 bool parseGridTrackGroup(CSSValueList*); 155 bool parseGridTrackGroup(CSSValueList*);
155 bool parseGridTrackMinMax(CSSValueList*); 156 bool parseGridTrackMinMax(CSSValueList*);
156 PassRefPtr<CSSPrimitiveValue> parseGridBreadth(CSSParserValue*); 157 PassRefPtr<CSSPrimitiveValue> parseGridBreadth(CSSParserValue*);
157 158
158 bool parseDashboardRegions(CSSPropertyID, bool important); 159 bool parseDashboardRegions(CSSPropertyID, bool important);
159 160
(...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after
688 } 689 }
689 690
690 inline int cssyylex(void* yylval, CSSParser* parser) 691 inline int cssyylex(void* yylval, CSSParser* parser)
691 { 692 {
692 return parser->lex(yylval); 693 return parser->lex(yylval);
693 } 694 }
694 695
695 } // namespace WebCore 696 } // namespace WebCore
696 697
697 #endif // CSSParser_h 698 #endif // CSSParser_h
OLDNEW
« no previous file with comments | « Source/WebCore/css/CSSComputedStyleDeclaration.cpp ('k') | Source/WebCore/css/CSSParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698