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

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

Issue 13871007: Add CSS parser recovery from errors while parsing @-webkit-keyframes key values. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Introduced + made use of the CSSParserValue::Invalid enum value to avoid overloading isInt Created 7 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/css/CSSParser.cpp ('k') | no next file » | 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 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 struct CSSParserValue { 109 struct CSSParserValue {
110 int id; 110 int id;
111 bool isInt; 111 bool isInt;
112 union { 112 union {
113 double fValue; 113 double fValue;
114 int iValue; 114 int iValue;
115 CSSParserString string; 115 CSSParserString string;
116 CSSParserFunction* function; 116 CSSParserFunction* function;
117 }; 117 };
118 enum { 118 enum {
119 Operator = 0x100000, 119 Invalid = 0x100000,
hayato 2013/04/17 08:22:56 I am wondering why we need to set an explicit valu
120 Function = 0x100001, 120 Operator = 0x100001,
121 Q_EMS = 0x100002 121 Function = 0x100002,
122 Q_EMS = 0x100003
122 }; 123 };
123 int unit; 124 int unit;
124 125
125 126
126 PassRefPtr<CSSValue> createCSSValue(); 127 PassRefPtr<CSSValue> createCSSValue();
127 }; 128 };
128 129
129 class CSSParserValueList { 130 class CSSParserValueList {
130 WTF_MAKE_FAST_ALLOCATED; 131 WTF_MAKE_FAST_ALLOCATED;
131 public: 132 public:
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 }; 212 };
212 213
213 inline bool CSSParserSelector::hasShadowDescendant() const 214 inline bool CSSParserSelector::hasShadowDescendant() const
214 { 215 {
215 return m_selector->relation() == CSSSelector::ShadowDescendant; 216 return m_selector->relation() == CSSSelector::ShadowDescendant;
216 } 217 }
217 218
218 } 219 }
219 220
220 #endif 221 #endif
OLDNEW
« no previous file with comments | « Source/core/css/CSSParser.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698