| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 imageChanged(m_imageResource->imagePtr()); | 67 imageChanged(m_imageResource->imagePtr()); |
| 68 } | 68 } |
| 69 | 69 |
| 70 virtual const char* name() const override { return "LayoutImage"; } | 70 virtual const char* name() const override { return "LayoutImage"; } |
| 71 | 71 |
| 72 protected: | 72 protected: |
| 73 virtual bool needsPreferredWidthsRecalculation() const override final; | 73 virtual bool needsPreferredWidthsRecalculation() const override final; |
| 74 virtual LayoutBox* embeddedContentBox() const override final; | 74 virtual LayoutBox* embeddedContentBox() const override final; |
| 75 virtual void computeIntrinsicRatioInformation(FloatSize& intrinsicSize, doub
le& intrinsicRatio) const override final; | 75 virtual void computeIntrinsicRatioInformation(FloatSize& intrinsicSize, doub
le& intrinsicRatio) const override final; |
| 76 | 76 |
| 77 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0) override; | 77 virtual void imageChanged(WrappedImagePtr, const IntRect* = nullptr) overrid
e; |
| 78 | 78 |
| 79 virtual void paint(const PaintInfo&, const LayoutPoint&) override final; | 79 virtual void paint(const PaintInfo&, const LayoutPoint&) override final; |
| 80 | 80 |
| 81 virtual void layout() override; | 81 virtual void layout() override; |
| 82 virtual bool updateImageLoadingPriorities() override final; | 82 virtual bool updateImageLoadingPriorities() override final; |
| 83 | 83 |
| 84 virtual bool isOfType(LayoutObjectType type) const override { return type ==
LayoutObjectLayoutImage || LayoutReplaced::isOfType(type); } | 84 virtual bool isOfType(LayoutObjectType type) const override { return type ==
LayoutObjectLayoutImage || LayoutReplaced::isOfType(type); } |
| 85 | 85 |
| 86 virtual void willBeDestroyed() override; | 86 virtual void willBeDestroyed() override; |
| 87 | 87 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 112 bool m_didIncrementVisuallyNonEmptyPixelCount; | 112 bool m_didIncrementVisuallyNonEmptyPixelCount; |
| 113 bool m_isGeneratedContent; | 113 bool m_isGeneratedContent; |
| 114 float m_imageDevicePixelRatio; | 114 float m_imageDevicePixelRatio; |
| 115 }; | 115 }; |
| 116 | 116 |
| 117 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutImage, isLayoutImage()); | 117 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutImage, isLayoutImage()); |
| 118 | 118 |
| 119 } // namespace blink | 119 } // namespace blink |
| 120 | 120 |
| 121 #endif // LayoutImage_h | 121 #endif // LayoutImage_h |
| OLD | NEW |