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

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

Issue 14706011: Revert 150468 "Switching CSS Variables over to RuntimeEnabledFea..." (Closed) Base URL: svn://svn.chromium.org/blink/
Patch Set: Created 7 years, 7 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 void addExpandedPropertyForValue(CSSPropertyID propId, PassRefPtr<CSSValue>, bool); 105 void addExpandedPropertyForValue(CSSPropertyID propId, PassRefPtr<CSSValue>, bool);
106 void setCurrentProperty(CSSPropertyID); 106 void setCurrentProperty(CSSPropertyID);
107 107
108 bool parseValue(CSSPropertyID, bool important); 108 bool parseValue(CSSPropertyID, bool important);
109 bool parseShorthand(CSSPropertyID, const StylePropertyShorthand&, bool impor tant); 109 bool parseShorthand(CSSPropertyID, const StylePropertyShorthand&, bool impor tant);
110 bool parse4Values(CSSPropertyID, const CSSPropertyID* properties, bool impor tant); 110 bool parse4Values(CSSPropertyID, const CSSPropertyID* properties, bool impor tant);
111 bool parseContent(CSSPropertyID, bool important); 111 bool parseContent(CSSPropertyID, bool important);
112 bool parseQuotes(CSSPropertyID, bool important); 112 bool parseQuotes(CSSPropertyID, bool important);
113 113
114 static bool parseValue(StylePropertySet*, CSSPropertyID, const String&, bool important, Document*); 114 static bool parseValue(StylePropertySet*, CSSPropertyID, const String&, bool important, Document*);
115 bool cssVariablesEnabled() const;
115 void storeVariableDeclaration(const CSSParserString&, PassOwnPtr<CSSParserVa lueList>, bool important); 116 void storeVariableDeclaration(const CSSParserString&, PassOwnPtr<CSSParserVa lueList>, bool important);
116 117
117 PassRefPtr<CSSValue> parseAttr(CSSParserValueList* args); 118 PassRefPtr<CSSValue> parseAttr(CSSParserValueList* args);
118 119
119 PassRefPtr<CSSValue> parseBackgroundColor(); 120 PassRefPtr<CSSValue> parseBackgroundColor();
120 121
121 bool parseFillImage(CSSParserValueList*, RefPtr<CSSValue>&); 122 bool parseFillImage(CSSParserValueList*, RefPtr<CSSValue>&);
122 123
123 enum FillPositionFlag { InvalidFillPosition = 0, AmbiguousFillPosition = 1, XFillPosition = 2, YFillPosition = 4 }; 124 enum FillPositionFlag { InvalidFillPosition = 0, AmbiguousFillPosition = 1, XFillPosition = 2, YFillPosition = 4 };
124 enum FillPositionParsingMode { ResolveValuesAsPercent = 0, ResolveValuesAsKe yword = 1 }; 125 enum FillPositionParsingMode { ResolveValuesAsPercent = 0, ResolveValuesAsKe yword = 1 };
(...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after
697 } 698 }
698 699
699 inline int cssyylex(void* yylval, CSSParser* parser) 700 inline int cssyylex(void* yylval, CSSParser* parser)
700 { 701 {
701 return parser->lex(yylval); 702 return parser->lex(yylval);
702 } 703 }
703 704
704 } // namespace WebCore 705 } // namespace WebCore
705 706
706 #endif // CSSParser_h 707 #endif // CSSParser_h
OLDNEW
« no previous file with comments | « trunk/Source/WebKit/chromium/src/WebSettingsImpl.cpp ('k') | trunk/Source/core/css/CSSParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698