| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * Copyright (C) 2004, 2005, 2006, 2007, 2009 Apple Inc. All rights reserved. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2009 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 | 59 |
| 60 virtual LayoutUnit minimumReplacedHeight() const { return LayoutUnit(); } | 60 virtual LayoutUnit minimumReplacedHeight() const { return LayoutUnit(); } |
| 61 | 61 |
| 62 virtual void setSelectionState(SelectionState) override final; | 62 virtual void setSelectionState(SelectionState) override final; |
| 63 | 63 |
| 64 bool isSelected() const; | 64 bool isSelected() const; |
| 65 | 65 |
| 66 void setIntrinsicSize(const LayoutSize& intrinsicSize) { m_intrinsicSize = i
ntrinsicSize; } | 66 void setIntrinsicSize(const LayoutSize& intrinsicSize) { m_intrinsicSize = i
ntrinsicSize; } |
| 67 virtual void intrinsicSizeChanged(); | 67 virtual void intrinsicSizeChanged(); |
| 68 | 68 |
| 69 virtual void paint(PaintInfo&, const LayoutPoint&) final; | 69 virtual void paint(PaintInfo&, const LayoutPoint&, Vector<RenderBox*>& layer
s) final; |
| 70 bool shouldPaint(PaintInfo&, const LayoutPoint&); | 70 bool shouldPaint(PaintInfo&, const LayoutPoint&); |
| 71 LayoutRect localSelectionRect(bool checkWhetherSelected = true) const; // Th
is is in local coordinates, but it's a physical rect (so the top left corner is
physical top left). | 71 LayoutRect localSelectionRect(bool checkWhetherSelected = true) const; // Th
is is in local coordinates, but it's a physical rect (so the top left corner is
physical top left). |
| 72 | 72 |
| 73 private: | 73 private: |
| 74 virtual const char* renderName() const override { return "RenderReplaced"; } | 74 virtual const char* renderName() const override { return "RenderReplaced"; } |
| 75 | 75 |
| 76 virtual bool canHaveChildren() const override { return false; } | 76 virtual bool canHaveChildren() const override { return false; } |
| 77 | 77 |
| 78 virtual void computePreferredLogicalWidths() override final; | 78 virtual void computePreferredLogicalWidths() override final; |
| 79 virtual void paintReplaced(PaintInfo&, const LayoutPoint&) { } | 79 virtual void paintReplaced(PaintInfo&, const LayoutPoint&) { } |
| 80 | 80 |
| 81 virtual PositionWithAffinity positionForPoint(const LayoutPoint&) override f
inal; | 81 virtual PositionWithAffinity positionForPoint(const LayoutPoint&) override f
inal; |
| 82 | 82 |
| 83 virtual bool canBeSelectionLeaf() const override { return true; } | 83 virtual bool canBeSelectionLeaf() const override { return true; } |
| 84 | 84 |
| 85 void computeAspectRatioInformationForRenderBox(FloatSize& constrainedSize, d
ouble& intrinsicRatio) const; | 85 void computeAspectRatioInformationForRenderBox(FloatSize& constrainedSize, d
ouble& intrinsicRatio) const; |
| 86 | 86 |
| 87 mutable LayoutSize m_intrinsicSize; | 87 mutable LayoutSize m_intrinsicSize; |
| 88 }; | 88 }; |
| 89 | 89 |
| 90 } | 90 } |
| 91 | 91 |
| 92 #endif // SKY_ENGINE_CORE_RENDERING_RENDERREPLACED_H_ | 92 #endif // SKY_ENGINE_CORE_RENDERING_RENDERREPLACED_H_ |
| OLD | NEW |