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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 virtual void paintReplaced(const PaintInfo&, const LayoutPoint&) override; | 92 virtual void paintReplaced(const PaintInfo&, const LayoutPoint&) override; |
93 | 93 |
94 virtual bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect,
unsigned maxDepthToTest) const override final; | 94 virtual bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect,
unsigned maxDepthToTest) const override final; |
95 virtual bool computeBackgroundIsKnownToBeObscured() override final; | 95 virtual bool computeBackgroundIsKnownToBeObscured() override final; |
96 | 96 |
97 virtual bool backgroundShouldAlwaysBeClipped() const override { return true;
} | 97 virtual bool backgroundShouldAlwaysBeClipped() const override { return true;
} |
98 | 98 |
99 virtual LayoutUnit minimumReplacedHeight() const override; | 99 virtual LayoutUnit minimumReplacedHeight() const override; |
100 | 100 |
101 virtual void notifyFinished(Resource*) override final; | 101 virtual void notifyFinished(Resource*) override final; |
102 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes
tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct
ion) override final; | 102 virtual bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInCo
ntainer, const LayoutPoint& accumulatedOffset, HitTestAction) override final; |
103 | 103 |
104 virtual bool boxShadowShouldBeAppliedToBackground(BackgroundBleedAvoidance,
InlineFlowBox*) const override final; | 104 virtual bool boxShadowShouldBeAppliedToBackground(BackgroundBleedAvoidance,
InlineFlowBox*) const override final; |
105 | 105 |
106 void invalidatePaintAndMarkForLayoutIfNeeded(); | 106 void invalidatePaintAndMarkForLayoutIfNeeded(); |
107 void updateIntrinsicSizeIfNeeded(const LayoutSize&); | 107 void updateIntrinsicSizeIfNeeded(const LayoutSize&); |
108 // Update the size of the image to be rendered. Object-fit may cause this to
be different from the CSS box's content rect. | 108 // Update the size of the image to be rendered. Object-fit may cause this to
be different from the CSS box's content rect. |
109 void updateInnerContentRect(); | 109 void updateInnerContentRect(); |
110 | 110 |
111 // Returns true if the image intersects the viewport visible to the user. | 111 // Returns true if the image intersects the viewport visible to the user. |
112 bool intersectsVisibleViewport(); | 112 bool intersectsVisibleViewport(); |
113 | 113 |
114 // Text to display as long as the image isn't available. | 114 // Text to display as long as the image isn't available. |
115 OwnPtr<LayoutImageResource> m_imageResource; | 115 OwnPtr<LayoutImageResource> m_imageResource; |
116 bool m_didIncrementVisuallyNonEmptyPixelCount; | 116 bool m_didIncrementVisuallyNonEmptyPixelCount; |
117 bool m_isGeneratedContent; | 117 bool m_isGeneratedContent; |
118 float m_imageDevicePixelRatio; | 118 float m_imageDevicePixelRatio; |
119 }; | 119 }; |
120 | 120 |
121 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutImage, isLayoutImage()); | 121 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutImage, isLayoutImage()); |
122 | 122 |
123 } // namespace blink | 123 } // namespace blink |
124 | 124 |
125 #endif // LayoutImage_h | 125 #endif // LayoutImage_h |
OLD | NEW |