| 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 20 matching lines...) Expand all Loading... |
| 31 RenderReplaced(Element*); | 31 RenderReplaced(Element*); |
| 32 RenderReplaced(Element*, const LayoutSize& intrinsicSize); | 32 RenderReplaced(Element*, const LayoutSize& intrinsicSize); |
| 33 virtual ~RenderReplaced(); | 33 virtual ~RenderReplaced(); |
| 34 | 34 |
| 35 virtual LayoutUnit computeReplacedLogicalWidth(ShouldComputePreferred = Com
puteActual) const OVERRIDE; | 35 virtual LayoutUnit computeReplacedLogicalWidth(ShouldComputePreferred = Com
puteActual) const OVERRIDE; |
| 36 virtual LayoutUnit computeReplacedLogicalHeight() const; | 36 virtual LayoutUnit computeReplacedLogicalHeight() const; |
| 37 | 37 |
| 38 bool hasReplacedLogicalWidth() const; | 38 bool hasReplacedLogicalWidth() const; |
| 39 bool hasReplacedLogicalHeight() const; | 39 bool hasReplacedLogicalHeight() const; |
| 40 | 40 |
| 41 virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE; | 41 virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE FINAL; |
| 42 | 42 |
| 43 protected: | 43 protected: |
| 44 virtual void willBeDestroyed(); | 44 virtual void willBeDestroyed(); |
| 45 | 45 |
| 46 virtual void layout(); | 46 virtual void layout(); |
| 47 | 47 |
| 48 virtual LayoutSize intrinsicSize() const OVERRIDE { return m_intrinsicSize;
} | 48 virtual LayoutSize intrinsicSize() const OVERRIDE FINAL { return m_intrinsic
Size; } |
| 49 virtual void computeIntrinsicRatioInformation(FloatSize& intrinsicSize, doub
le& intrinsicRatio, bool& isPercentageIntrinsicSize) const; | 49 virtual void computeIntrinsicRatioInformation(FloatSize& intrinsicSize, doub
le& intrinsicRatio, bool& isPercentageIntrinsicSize) const; |
| 50 | 50 |
| 51 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, Layo
utUnit& maxLogicalWidth) const OVERRIDE; | 51 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, Layo
utUnit& maxLogicalWidth) const OVERRIDE FINAL; |
| 52 | 52 |
| 53 virtual LayoutUnit minimumReplacedHeight() const { return LayoutUnit(); } | 53 virtual LayoutUnit minimumReplacedHeight() const { return LayoutUnit(); } |
| 54 | 54 |
| 55 virtual void setSelectionState(SelectionState); | 55 virtual void setSelectionState(SelectionState); |
| 56 | 56 |
| 57 bool isSelected() const; | 57 bool isSelected() const; |
| 58 | 58 |
| 59 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle); | 59 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle); |
| 60 | 60 |
| 61 void setIntrinsicSize(const LayoutSize& intrinsicSize) { m_intrinsicSize = i
ntrinsicSize; } | 61 void setIntrinsicSize(const LayoutSize& intrinsicSize) { m_intrinsicSize = i
ntrinsicSize; } |
| 62 virtual void intrinsicSizeChanged(); | 62 virtual void intrinsicSizeChanged(); |
| 63 virtual bool hasRelativeIntrinsicLogicalWidth() const { return false; } | 63 virtual bool hasRelativeIntrinsicLogicalWidth() const { return false; } |
| 64 | 64 |
| 65 virtual void paint(PaintInfo&, const LayoutPoint&); | 65 virtual void paint(PaintInfo&, const LayoutPoint&); |
| 66 bool shouldPaint(PaintInfo&, const LayoutPoint&); | 66 bool shouldPaint(PaintInfo&, const LayoutPoint&); |
| 67 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). | 67 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). |
| 68 | 68 |
| 69 private: | 69 private: |
| 70 virtual RenderBox* embeddedContentBox() const { return 0; } | 70 virtual RenderBox* embeddedContentBox() const { return 0; } |
| 71 virtual const char* renderName() const { return "RenderReplaced"; } | 71 virtual const char* renderName() const { return "RenderReplaced"; } |
| 72 | 72 |
| 73 virtual bool canHaveChildren() const { return false; } | 73 virtual bool canHaveChildren() const { return false; } |
| 74 | 74 |
| 75 virtual void computePreferredLogicalWidths(); | 75 virtual void computePreferredLogicalWidths() OVERRIDE FINAL; |
| 76 virtual void paintReplaced(PaintInfo&, const LayoutPoint&) { } | 76 virtual void paintReplaced(PaintInfo&, const LayoutPoint&) { } |
| 77 | 77 |
| 78 virtual LayoutRect clippedOverflowRectForRepaint(const RenderLayerModelObjec
t* repaintContainer) const OVERRIDE; | 78 virtual LayoutRect clippedOverflowRectForRepaint(const RenderLayerModelObjec
t* repaintContainer) const OVERRIDE; |
| 79 | 79 |
| 80 virtual VisiblePosition positionForPoint(const LayoutPoint&); | 80 virtual VisiblePosition positionForPoint(const LayoutPoint&) OVERRIDE FINAL; |
| 81 | 81 |
| 82 virtual bool canBeSelectionLeaf() const { return true; } | 82 virtual bool canBeSelectionLeaf() const { return true; } |
| 83 | 83 |
| 84 virtual LayoutRect selectionRectForRepaint(const RenderLayerModelObject* rep
aintContainer, bool clipToVisibleContent = true) OVERRIDE; | 84 virtual LayoutRect selectionRectForRepaint(const RenderLayerModelObject* rep
aintContainer, bool clipToVisibleContent = true) OVERRIDE FINAL; |
| 85 void computeAspectRatioInformationForRenderBox(RenderBox*, FloatSize& constr
ainedSize, double& intrinsicRatio, bool& isPercentageIntrinsicSize) const; | 85 void computeAspectRatioInformationForRenderBox(RenderBox*, FloatSize& constr
ainedSize, double& intrinsicRatio, bool& isPercentageIntrinsicSize) const; |
| 86 | 86 |
| 87 mutable LayoutSize m_intrinsicSize; | 87 mutable LayoutSize m_intrinsicSize; |
| 88 }; | 88 }; |
| 89 | 89 |
| 90 } | 90 } |
| 91 | 91 |
| 92 #endif | 92 #endif |
| OLD | NEW |