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

Side by Side Diff: third_party/WebKit/Source/core/css/parser/CSSPropertyParser.h

Issue 1380083004: Move viewport descriptor handling into CSSPropertyParser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Slight cleanup Created 5 years, 2 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 private: 91 private:
92 CSSPropertyParser(CSSParserValueList*, const CSSParserTokenRange&, const CSS ParserContext&, 92 CSSPropertyParser(CSSParserValueList*, const CSSParserTokenRange&, const CSS ParserContext&,
93 WillBeHeapVector<CSSProperty, 256>&, StyleRule::Type); 93 WillBeHeapVector<CSSProperty, 256>&, StyleRule::Type);
94 94
95 bool parseValue(CSSPropertyID, bool important); 95 bool parseValue(CSSPropertyID, bool important);
96 PassRefPtrWillBeRawPtr<CSSValue> parseSingleValue(CSSPropertyID); 96 PassRefPtrWillBeRawPtr<CSSValue> parseSingleValue(CSSPropertyID);
97 97
98 bool inShorthand() const { return m_inParseShorthand; } 98 bool inShorthand() const { return m_inParseShorthand; }
99 bool inQuirksMode() const { return isQuirksModeBehavior(m_context.mode()); } 99 bool inQuirksMode() const { return isQuirksModeBehavior(m_context.mode()); }
100 100
101 bool parseViewportProperty(CSSPropertyID propId, bool important); 101 bool parseViewportDescriptor(CSSPropertyID propId, bool important);
102 bool parseViewportShorthand(CSSPropertyID propId, CSSPropertyID first, CSSPr opertyID second, bool important);
103 bool parseFontFaceDescriptor(CSSPropertyID); 102 bool parseFontFaceDescriptor(CSSPropertyID);
104 103
105 KURL completeURL(const String& url) const; 104 KURL completeURL(const String& url) const;
106 105
107 void addProperty(CSSPropertyID, PassRefPtrWillBeRawPtr<CSSValue>, bool impor tant, bool implicit = false); 106 void addProperty(CSSPropertyID, PassRefPtrWillBeRawPtr<CSSValue>, bool impor tant, bool implicit = false);
108 void rollbackLastProperties(int num); 107 void rollbackLastProperties(int num);
109 void addExpandedPropertyForValue(CSSPropertyID propId, PassRefPtrWillBeRawPt r<CSSValue>, bool); 108 void addExpandedPropertyForValue(CSSPropertyID propId, PassRefPtrWillBeRawPt r<CSSValue>, bool);
110 109
111 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseValidPrimitive(CSSValueID ide nt, CSSParserValue*); 110 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseValidPrimitive(CSSValueID ide nt, CSSParserValue*);
112 111
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 bool m_implicitShorthand; 379 bool m_implicitShorthand;
381 RefPtrWillBeMember<CSSCalcValue> m_parsedCalculation; 380 RefPtrWillBeMember<CSSCalcValue> m_parsedCalculation;
382 }; 381 };
383 382
384 CSSPropertyID unresolvedCSSPropertyID(const CSSParserString&); 383 CSSPropertyID unresolvedCSSPropertyID(const CSSParserString&);
385 CSSValueID cssValueKeywordID(const CSSParserString&); 384 CSSValueID cssValueKeywordID(const CSSParserString&);
386 385
387 } // namespace blink 386 } // namespace blink
388 387
389 #endif // CSSPropertyParser_h 388 #endif // CSSPropertyParser_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698