OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2006 Allan Sandfeld Jensen (kde@carewolf.com) | 4 * (C) 2006 Allan Sandfeld Jensen (kde@carewolf.com) |
5 * (C) 2006 Samuel Weinig (sam.weinig@gmail.com) | 5 * (C) 2006 Samuel Weinig (sam.weinig@gmail.com) |
6 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights
reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights
reserved. |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 | 78 |
79 void paint(const PaintInfo&, const LayoutPoint&) final; | 79 void paint(const PaintInfo&, const LayoutPoint&) final; |
80 | 80 |
81 void layout() override; | 81 void layout() override; |
82 bool updateImageLoadingPriorities() final; | 82 bool updateImageLoadingPriorities() final; |
83 | 83 |
84 bool isOfType(LayoutObjectType type) const override { return type == LayoutO
bjectLayoutImage || LayoutReplaced::isOfType(type); } | 84 bool isOfType(LayoutObjectType type) const override { return type == LayoutO
bjectLayoutImage || LayoutReplaced::isOfType(type); } |
85 | 85 |
86 void willBeDestroyed() override; | 86 void willBeDestroyed() override; |
87 | 87 |
| 88 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override
; |
| 89 |
88 private: | 90 private: |
89 bool isImage() const override { return true; } | 91 bool isImage() const override { return true; } |
90 | 92 |
91 void paintReplaced(const PaintInfo&, const LayoutPoint&) override; | 93 void paintReplaced(const PaintInfo&, const LayoutPoint&) override; |
92 | 94 |
93 bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect, unsigned
maxDepthToTest) const final; | 95 bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect, unsigned
maxDepthToTest) const final; |
94 bool computeBackgroundIsKnownToBeObscured() final; | 96 bool computeBackgroundIsKnownToBeObscured() final; |
95 | 97 |
96 bool backgroundShouldAlwaysBeClipped() const override { return true; } | 98 bool backgroundShouldAlwaysBeClipped() const override { return true; } |
97 | 99 |
(...skipping 14 matching lines...) Expand all Loading... |
112 bool m_didIncrementVisuallyNonEmptyPixelCount; | 114 bool m_didIncrementVisuallyNonEmptyPixelCount; |
113 bool m_isGeneratedContent; | 115 bool m_isGeneratedContent; |
114 float m_imageDevicePixelRatio; | 116 float m_imageDevicePixelRatio; |
115 }; | 117 }; |
116 | 118 |
117 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutImage, isLayoutImage()); | 119 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutImage, isLayoutImage()); |
118 | 120 |
119 } // namespace blink | 121 } // namespace blink |
120 | 122 |
121 #endif // LayoutImage_h | 123 #endif // LayoutImage_h |
OLD | NEW |