OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) |
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) | 3 * (C) 2000 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
5 * Copyright (C) 2003, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 CSSValue* ComputedCSSValue() const override; | 44 CSSValue* ComputedCSSValue() const override; |
45 | 45 |
46 LayoutSize ImageSize(const LayoutObject&, | 46 LayoutSize ImageSize(const LayoutObject&, |
47 float multiplier, | 47 float multiplier, |
48 const LayoutSize& default_object_size) const override; | 48 const LayoutSize& default_object_size) const override; |
49 bool ImageHasRelativeSize() const override { return !fixed_size_; } | 49 bool ImageHasRelativeSize() const override { return !fixed_size_; } |
50 bool UsesImageContainerSize() const override { return !fixed_size_; } | 50 bool UsesImageContainerSize() const override { return !fixed_size_; } |
51 void AddClient(LayoutObject*) override; | 51 void AddClient(LayoutObject*) override; |
52 void RemoveClient(LayoutObject*) override; | 52 void RemoveClient(LayoutObject*) override; |
53 PassRefPtr<Image> GetImage(const LayoutObject&, | 53 PassRefPtr<Image> GetImage(const LayoutObject&, |
54 const IntSize&, | 54 const IntSize&) const override; |
55 float) const override; | |
56 bool KnownToBeOpaque(const LayoutObject&) const override; | 55 bool KnownToBeOpaque(const LayoutObject&) const override; |
57 | 56 |
58 DECLARE_VIRTUAL_TRACE(); | 57 DECLARE_VIRTUAL_TRACE(); |
59 | 58 |
60 private: | 59 private: |
61 StyleGeneratedImage(const CSSImageGeneratorValue&); | 60 StyleGeneratedImage(const CSSImageGeneratorValue&); |
62 | 61 |
63 // TODO(sashab): Replace this with <const CSSImageGeneratorValue> once | 62 // TODO(sashab): Replace this with <const CSSImageGeneratorValue> once |
64 // Member<> supports const types. | 63 // Member<> supports const types. |
65 Member<CSSImageGeneratorValue> image_generator_value_; | 64 Member<CSSImageGeneratorValue> image_generator_value_; |
66 const bool fixed_size_; | 65 const bool fixed_size_; |
67 }; | 66 }; |
68 | 67 |
69 DEFINE_STYLE_IMAGE_TYPE_CASTS(StyleGeneratedImage, IsGeneratedImage()); | 68 DEFINE_STYLE_IMAGE_TYPE_CASTS(StyleGeneratedImage, IsGeneratedImage()); |
70 | 69 |
71 } // namespace blink | 70 } // namespace blink |
72 #endif | 71 #endif |
OLD | NEW |