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

Side by Side Diff: sky/engine/core/css/parser/CSSPropertyParser.h

Issue 1078883003: remove 'page' and 'size' since those are for printing, and that's obsolete in our world now (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: merge with trunk Created 5 years, 8 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 | « sky/engine/core/css/CSSProperties.in ('k') | sky/engine/core/css/parser/CSSPropertyParser.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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 215
216 PassRefPtr<CSSPrimitiveValue> createPrimitiveNumericValue(CSSParserValue*); 216 PassRefPtr<CSSPrimitiveValue> createPrimitiveNumericValue(CSSParserValue*);
217 PassRefPtr<CSSPrimitiveValue> createPrimitiveStringValue(CSSParserValue*); 217 PassRefPtr<CSSPrimitiveValue> createPrimitiveStringValue(CSSParserValue*);
218 218
219 PassRefPtr<CSSValue> createCSSImageValueWithReferrer(const String& rawValue, const KURL&); 219 PassRefPtr<CSSValue> createCSSImageValueWithReferrer(const String& rawValue, const KURL&);
220 220
221 bool validWidthOrHeight(CSSParserValue*); 221 bool validWidthOrHeight(CSSParserValue*);
222 222
223 PassRefPtr<CSSBasicShape> parseInsetRoundedCorners(PassRefPtr<CSSBasicShapeI nset>, CSSParserValueList*); 223 PassRefPtr<CSSBasicShape> parseInsetRoundedCorners(PassRefPtr<CSSBasicShapeI nset>, CSSParserValueList*);
224 224
225 enum SizeParameterType {
226 None,
227 Auto,
228 Length,
229 PageSize,
230 Orientation,
231 };
232
233 bool parsePage(CSSPropertyID propId);
234 bool parseSize(CSSPropertyID propId);
235 SizeParameterType parseSizeParameter(CSSValueList* parsedValues, CSSParserVa lue*, SizeParameterType prevParamType);
236
237 bool parseFontFaceSrcURI(CSSValueList*); 225 bool parseFontFaceSrcURI(CSSValueList*);
238 bool parseFontFaceSrcLocal(CSSValueList*); 226 bool parseFontFaceSrcLocal(CSSValueList*);
239 227
240 class ImplicitScope { 228 class ImplicitScope {
241 STACK_ALLOCATED(); 229 STACK_ALLOCATED();
242 WTF_MAKE_NONCOPYABLE(ImplicitScope); 230 WTF_MAKE_NONCOPYABLE(ImplicitScope);
243 public: 231 public:
244 ImplicitScope(CSSPropertyParser* parser) 232 ImplicitScope(CSSPropertyParser* parser)
245 : m_parser(parser) 233 : m_parser(parser)
246 { 234 {
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 CSSPropertyID cssPropertyID(const CSSParserString&); 327 CSSPropertyID cssPropertyID(const CSSParserString&);
340 CSSPropertyID cssPropertyID(const String&); 328 CSSPropertyID cssPropertyID(const String&);
341 CSSValueID cssValueKeywordID(const CSSParserString&); 329 CSSValueID cssValueKeywordID(const CSSParserString&);
342 330
343 bool isKeywordPropertyID(CSSPropertyID); 331 bool isKeywordPropertyID(CSSPropertyID);
344 bool isValidKeywordPropertyAndValue(CSSPropertyID, CSSValueID, const CSSParserCo ntext&); 332 bool isValidKeywordPropertyAndValue(CSSPropertyID, CSSValueID, const CSSParserCo ntext&);
345 333
346 } // namespace blink 334 } // namespace blink
347 335
348 #endif // SKY_ENGINE_CORE_CSS_PARSER_CSSPROPERTYPARSER_H_ 336 #endif // SKY_ENGINE_CORE_CSS_PARSER_CSSPROPERTYPARSER_H_
OLDNEW
« no previous file with comments | « sky/engine/core/css/CSSProperties.in ('k') | sky/engine/core/css/parser/CSSPropertyParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698