OLD | NEW |
1 /* | 1 /* |
2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) | 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) |
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2012 Apple Inc. All rights reserv
ed. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2012 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 return CSSPrimitiveValue::UResolution; | 137 return CSSPrimitiveValue::UResolution; |
138 default: | 138 default: |
139 return CSSPrimitiveValue::UOther; | 139 return CSSPrimitiveValue::UOther; |
140 } | 140 } |
141 } | 141 } |
142 | 142 |
143 bool CSSPrimitiveValue::colorIsDerivedFromElement() const | 143 bool CSSPrimitiveValue::colorIsDerivedFromElement() const |
144 { | 144 { |
145 int valueID = getValueID(); | 145 int valueID = getValueID(); |
146 switch (valueID) { | 146 switch (valueID) { |
147 case CSSValueWebkitText: | 147 case CSSValueInternalQuirkInherit: |
148 case CSSValueWebkitLink: | 148 case CSSValueWebkitLink: |
149 case CSSValueWebkitActivelink: | 149 case CSSValueWebkitActivelink: |
150 case CSSValueCurrentcolor: | 150 case CSSValueCurrentcolor: |
151 return true; | 151 return true; |
152 default: | 152 default: |
153 return false; | 153 return false; |
154 } | 154 } |
155 } | 155 } |
156 | 156 |
157 using CSSTextCache = WillBePersistentHeapHashMap<RawPtrWillBeWeakMember<const CS
SPrimitiveValue>, String>; | 157 using CSSTextCache = WillBePersistentHeapHashMap<RawPtrWillBeWeakMember<const CS
SPrimitiveValue>, String>; |
(...skipping 678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
836 visitor->trace(m_value.calc); | 836 visitor->trace(m_value.calc); |
837 break; | 837 break; |
838 default: | 838 default: |
839 break; | 839 break; |
840 } | 840 } |
841 #endif | 841 #endif |
842 CSSValue::traceAfterDispatch(visitor); | 842 CSSValue::traceAfterDispatch(visitor); |
843 } | 843 } |
844 | 844 |
845 } // namespace blink | 845 } // namespace blink |
OLD | NEW |