| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008 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 29 matching lines...) Expand all Loading... |
| 40 | 40 |
| 41 struct SizeAndCount { | 41 struct SizeAndCount { |
| 42 SizeAndCount(IntSize newSize = IntSize(), int newCount = 0) | 42 SizeAndCount(IntSize newSize = IntSize(), int newCount = 0) |
| 43 : size(newSize) | 43 : size(newSize) |
| 44 , count(newCount) | 44 , count(newCount) |
| 45 { | 45 { |
| 46 } | 46 } |
| 47 | 47 |
| 48 IntSize size; | 48 IntSize size; |
| 49 int count; | 49 int count; |
| 50 DISALLOW_ALLOCATION(); |
| 50 }; | 51 }; |
| 51 | 52 |
| 52 typedef HashMap<const LayoutObject*, SizeAndCount> LayoutObjectSizeCountMap; | 53 typedef HashMap<const LayoutObject*, SizeAndCount> LayoutObjectSizeCountMap; |
| 53 | 54 |
| 54 class CORE_EXPORT CSSImageGeneratorValue : public CSSValue { | 55 class CORE_EXPORT CSSImageGeneratorValue : public CSSValue { |
| 55 public: | 56 public: |
| 56 ~CSSImageGeneratorValue(); | 57 ~CSSImageGeneratorValue(); |
| 57 | 58 |
| 58 void addClient(LayoutObject*, const IntSize&); | 59 void addClient(LayoutObject*, const IntSize&); |
| 59 void removeClient(LayoutObject*); | 60 void removeClient(LayoutObject*); |
| (...skipping 26 matching lines...) Expand all Loading... |
| 86 // there are clients in the LayoutObjectSizeCountMap. | 87 // there are clients in the LayoutObjectSizeCountMap. |
| 87 SelfKeepAlive<CSSImageGeneratorValue> m_keepAlive; | 88 SelfKeepAlive<CSSImageGeneratorValue> m_keepAlive; |
| 88 #endif | 89 #endif |
| 89 }; | 90 }; |
| 90 | 91 |
| 91 DEFINE_CSS_VALUE_TYPE_CASTS(CSSImageGeneratorValue, isImageGeneratorValue()); | 92 DEFINE_CSS_VALUE_TYPE_CASTS(CSSImageGeneratorValue, isImageGeneratorValue()); |
| 92 | 93 |
| 93 } // namespace blink | 94 } // namespace blink |
| 94 | 95 |
| 95 #endif // CSSImageGeneratorValue_h | 96 #endif // CSSImageGeneratorValue_h |
| OLD | NEW |