| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 }; | 50 }; |
| 51 | 51 |
| 52 using LayoutObjectSizeCountMap = HashMap<const LayoutObject*, SizeAndCount>; | 52 using LayoutObjectSizeCountMap = HashMap<const LayoutObject*, SizeAndCount>; |
| 53 | 53 |
| 54 class CORE_EXPORT CSSImageGeneratorValue : public CSSValue { | 54 class CORE_EXPORT CSSImageGeneratorValue : public CSSValue { |
| 55 public: | 55 public: |
| 56 ~CSSImageGeneratorValue(); | 56 ~CSSImageGeneratorValue(); |
| 57 | 57 |
| 58 void AddClient(const LayoutObject*, const IntSize&); | 58 void AddClient(const LayoutObject*, const IntSize&); |
| 59 void RemoveClient(const LayoutObject*); | 59 void RemoveClient(const LayoutObject*); |
| 60 PassRefPtr<Image> GetImage(const LayoutObject&, const IntSize&, float zoom); | 60 PassRefPtr<Image> GetImage(const LayoutObject&, const IntSize&); |
| 61 | 61 |
| 62 bool IsFixedSize() const; | 62 bool IsFixedSize() const; |
| 63 IntSize FixedSize(const LayoutObject&, const FloatSize& default_object_size); | 63 IntSize FixedSize(const LayoutObject&, const FloatSize& default_object_size); |
| 64 | 64 |
| 65 bool IsPending() const; | 65 bool IsPending() const; |
| 66 bool KnownToBeOpaque(const LayoutObject&) const; | 66 bool KnownToBeOpaque(const LayoutObject&) const; |
| 67 | 67 |
| 68 void LoadSubimages(const Document&); | 68 void LoadSubimages(const Document&); |
| 69 | 69 |
| 70 CSSImageGeneratorValue* ValueWithURLsMadeAbsolute(); | 70 CSSImageGeneratorValue* ValueWithURLsMadeAbsolute(); |
| (...skipping 21 matching lines...) Expand all Loading... |
| 92 // where we keep a persistent to the instance as long as there are clients in | 92 // where we keep a persistent to the instance as long as there are clients in |
| 93 // the LayoutObjectSizeCountMap. | 93 // the LayoutObjectSizeCountMap. |
| 94 SelfKeepAlive<CSSImageGeneratorValue> keep_alive_; | 94 SelfKeepAlive<CSSImageGeneratorValue> keep_alive_; |
| 95 }; | 95 }; |
| 96 | 96 |
| 97 DEFINE_CSS_VALUE_TYPE_CASTS(CSSImageGeneratorValue, IsImageGeneratorValue()); | 97 DEFINE_CSS_VALUE_TYPE_CASTS(CSSImageGeneratorValue, IsImageGeneratorValue()); |
| 98 | 98 |
| 99 } // namespace blink | 99 } // namespace blink |
| 100 | 100 |
| 101 #endif // CSSImageGeneratorValue_h | 101 #endif // CSSImageGeneratorValue_h |
| OLD | NEW |