| 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 Apple Inc. All rights reserved. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 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 25 matching lines...) Expand all Loading... |
| 36 // a dedicated heap. | 36 // a dedicated heap. |
| 37 GC_PLUGIN_IGNORE("crbug.com/443854") | 37 GC_PLUGIN_IGNORE("crbug.com/443854") |
| 38 void* operator new(size_t size) | 38 void* operator new(size_t size) |
| 39 { | 39 { |
| 40 return allocateObject(size, false); | 40 return allocateObject(size, false); |
| 41 } | 41 } |
| 42 static void* allocateObject(size_t size, bool isEager) | 42 static void* allocateObject(size_t size, bool isEager) |
| 43 { | 43 { |
| 44 ThreadState* state = ThreadStateFor<ThreadingTrait<CSSValue>::Affinity>:
:state(); | 44 ThreadState* state = ThreadStateFor<ThreadingTrait<CSSValue>::Affinity>:
:state(); |
| 45 const char typeName[] = "blink::CSSValue"; | 45 const char typeName[] = "blink::CSSValue"; |
| 46 return Heap::allocateOnArenaIndex(state, size, isEager ? BlinkGC::EagerS
weepArenaIndex : BlinkGC::CSSValueArenaIndex, GCInfoTrait<CSSValue>::index(), ty
peName); | 46 return ThreadHeap::allocateOnArenaIndex(state, size, isEager ? BlinkGC::
EagerSweepArenaIndex : BlinkGC::CSSValueArenaIndex, GCInfoTrait<CSSValue>::index
(), typeName); |
| 47 } | 47 } |
| 48 | 48 |
| 49 String cssText() const; | 49 String cssText() const; |
| 50 | 50 |
| 51 bool isPrimitiveValue() const { return m_classType == PrimitiveClass; } | 51 bool isPrimitiveValue() const { return m_classType == PrimitiveClass; } |
| 52 bool isValuePair() const { return m_classType == ValuePairClass; } | 52 bool isValuePair() const { return m_classType == ValuePairClass; } |
| 53 bool isValueList() const { return m_classType >= ValueListClass; } | 53 bool isValueList() const { return m_classType >= ValueListClass; } |
| 54 | 54 |
| 55 bool isBaseValueList() const { return m_classType == ValueListClass; } | 55 bool isBaseValueList() const { return m_classType == ValueListClass; } |
| 56 | 56 |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 return false; | 261 return false; |
| 262 return first->equals(*second); | 262 return first->equals(*second); |
| 263 } | 263 } |
| 264 | 264 |
| 265 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \ | 265 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \ |
| 266 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, value.predica
te) | 266 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, value.predica
te) |
| 267 | 267 |
| 268 } // namespace blink | 268 } // namespace blink |
| 269 | 269 |
| 270 #endif // CSSValue_h | 270 #endif // CSSValue_h |
| OLD | NEW |