| 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 12 matching lines...) Expand all Loading... |
| 23 | 23 |
| 24 #include "platform/heap/Handle.h" | 24 #include "platform/heap/Handle.h" |
| 25 #include "platform/weborigin/KURL.h" | 25 #include "platform/weborigin/KURL.h" |
| 26 #include "wtf/HashMap.h" | 26 #include "wtf/HashMap.h" |
| 27 #include "wtf/ListHashSet.h" | 27 #include "wtf/ListHashSet.h" |
| 28 #include "wtf/RefCounted.h" | 28 #include "wtf/RefCounted.h" |
| 29 #include "wtf/RefPtr.h" | 29 #include "wtf/RefPtr.h" |
| 30 | 30 |
| 31 namespace blink { | 31 namespace blink { |
| 32 | 32 |
| 33 enum CSSTextFormattingFlags { QuoteCSSStringIfNeeded, AlwaysQuoteCSSString }; | |
| 34 | |
| 35 class CSSValue : public RefCountedWillBeGarbageCollectedFinalized<CSSValue> { | 33 class CSSValue : public RefCountedWillBeGarbageCollectedFinalized<CSSValue> { |
| 36 public: | 34 public: |
| 37 // Override RefCounted's deref() to ensure operator delete is called on | 35 // Override RefCounted's deref() to ensure operator delete is called on |
| 38 // the appropriate subclass type. | 36 // the appropriate subclass type. |
| 39 // When oilpan is enabled the finalize method is called by the garbage | 37 // When oilpan is enabled the finalize method is called by the garbage |
| 40 // collector and not immediately when deref reached zero. | 38 // collector and not immediately when deref reached zero. |
| 41 #if !ENABLE(OILPAN) | 39 #if !ENABLE(OILPAN) |
| 42 void deref() | 40 void deref() |
| 43 { | 41 { |
| 44 if (derefBase()) | 42 if (derefBase()) |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 { | 216 { |
| 219 return first ? second && first->equals(*second) : !second; | 217 return first ? second && first->equals(*second) : !second; |
| 220 } | 218 } |
| 221 | 219 |
| 222 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \ | 220 #define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \ |
| 223 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, value.predica
te) | 221 DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, value.predica
te) |
| 224 | 222 |
| 225 } // namespace blink | 223 } // namespace blink |
| 226 | 224 |
| 227 #endif // CSSValue_h | 225 #endif // CSSValue_h |
| OLD | NEW |