Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 Loading... | |
| 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 |
| OLD | NEW |