| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011, 2012 Apple Inc. All rights reserved. | 2 * Copyright (C) 2011, 2012 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 #include "core/CoreExport.h" | 31 #include "core/CoreExport.h" |
| 32 #include "core/css/CSSColorValue.h" | 32 #include "core/css/CSSColorValue.h" |
| 33 #include "core/css/CSSCustomIdentValue.h" | 33 #include "core/css/CSSCustomIdentValue.h" |
| 34 #include "core/css/CSSFontFamilyValue.h" | 34 #include "core/css/CSSFontFamilyValue.h" |
| 35 #include "core/css/CSSIdentifierValue.h" | 35 #include "core/css/CSSIdentifierValue.h" |
| 36 #include "core/css/CSSInheritedValue.h" | 36 #include "core/css/CSSInheritedValue.h" |
| 37 #include "core/css/CSSInitialValue.h" | 37 #include "core/css/CSSInitialValue.h" |
| 38 #include "core/css/CSSPrimitiveValue.h" | 38 #include "core/css/CSSPrimitiveValue.h" |
| 39 #include "core/css/CSSUnsetValue.h" | 39 #include "core/css/CSSUnsetValue.h" |
| 40 #include "core/css/CSSValueList.h" | 40 #include "core/css/CSSValueList.h" |
| 41 #include "wtf/HashMap.h" | 41 #include "platform/wtf/HashMap.h" |
| 42 #include "wtf/RefPtr.h" | 42 #include "platform/wtf/RefPtr.h" |
| 43 #include "wtf/text/AtomicStringHash.h" | 43 #include "platform/wtf/text/AtomicStringHash.h" |
| 44 | 44 |
| 45 namespace blink { | 45 namespace blink { |
| 46 | 46 |
| 47 class CORE_EXPORT CSSValuePool | 47 class CORE_EXPORT CSSValuePool |
| 48 : public GarbageCollectedFinalized<CSSValuePool> { | 48 : public GarbageCollectedFinalized<CSSValuePool> { |
| 49 WTF_MAKE_NONCOPYABLE(CSSValuePool); | 49 WTF_MAKE_NONCOPYABLE(CSSValuePool); |
| 50 | 50 |
| 51 public: | 51 public: |
| 52 // TODO(sashab): Make all the value pools store const CSSValues. | 52 // TODO(sashab): Make all the value pools store const CSSValues. |
| 53 static const int kMaximumCacheableIntegerValue = 255; | 53 static const int kMaximumCacheableIntegerValue = 255; |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 FontFamilyValueCache font_family_value_cache_; | 145 FontFamilyValueCache font_family_value_cache_; |
| 146 | 146 |
| 147 friend CORE_EXPORT CSSValuePool& CssValuePool(); | 147 friend CORE_EXPORT CSSValuePool& CssValuePool(); |
| 148 }; | 148 }; |
| 149 | 149 |
| 150 CORE_EXPORT CSSValuePool& CssValuePool(); | 150 CORE_EXPORT CSSValuePool& CssValuePool(); |
| 151 | 151 |
| 152 } // namespace blink | 152 } // namespace blink |
| 153 | 153 |
| 154 #endif | 154 #endif |
| OLD | NEW |