| 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 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2009 Apple Inc. All rights reserv
ed. | 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2009 Apple Inc. All rights reserv
ed. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 virtual const char* name() const override { return "LayoutListItem"; } | 63 virtual const char* name() const override { return "LayoutListItem"; } |
| 64 | 64 |
| 65 private: | 65 private: |
| 66 virtual bool isOfType(LayoutObjectType type) const override { return type ==
LayoutObjectListItem || LayoutBlockFlow::isOfType(type); } | 66 virtual bool isOfType(LayoutObjectType type) const override { return type ==
LayoutObjectListItem || LayoutBlockFlow::isOfType(type); } |
| 67 | 67 |
| 68 virtual void willBeDestroyed() override; | 68 virtual void willBeDestroyed() override; |
| 69 | 69 |
| 70 virtual void insertedIntoTree() override; | 70 virtual void insertedIntoTree() override; |
| 71 virtual void willBeRemovedFromTree() override; | 71 virtual void willBeRemovedFromTree() override; |
| 72 | 72 |
| 73 virtual void handleSubtreeModifications() override; |
| 74 |
| 73 virtual void paint(const PaintInfo&, const LayoutPoint&) override; | 75 virtual void paint(const PaintInfo&, const LayoutPoint&) override; |
| 74 | 76 |
| 75 virtual void layout() override; | 77 virtual void layout() override; |
| 76 | 78 |
| 77 // Returns true if we re-attached and updated the location of the marker. | 79 // Returns true if we re-attached and updated the location of the marker. |
| 78 bool updateMarkerLocation(); | 80 bool updateMarkerLocation(); |
| 79 void updateMarkerLocationAndInvalidateWidth(); | 81 void updateMarkerLocationAndInvalidateWidth(); |
| 80 | 82 |
| 81 void positionListMarker(); | 83 void positionListMarker(LayoutListMarker*); |
| 82 | 84 |
| 83 virtual void styleDidChange(StyleDifference, const ComputedStyle* oldStyle)
override; | 85 virtual void styleDidChange(StyleDifference, const ComputedStyle* oldStyle)
override; |
| 84 | 86 |
| 85 virtual void addOverflowFromChildren() override; | 87 virtual void addOverflowFromChildren() override; |
| 86 | 88 |
| 87 inline int calcValue() const; | 89 inline int calcValue() const; |
| 88 void updateValueNow() const; | 90 void updateValueNow() const; |
| 89 void explicitValueChanged(); | 91 void explicitValueChanged(); |
| 90 | 92 |
| 91 int m_explicitValue; | 93 int m_explicitValue; |
| 92 LayoutListMarker* m_marker; | 94 LayoutListMarker* m_marker; |
| 93 mutable int m_value; | 95 mutable int m_value; |
| 94 | 96 |
| 95 bool m_hasExplicitValue : 1; | 97 bool m_hasExplicitValue : 1; |
| 96 mutable bool m_isValueUpToDate : 1; | 98 mutable bool m_isValueUpToDate : 1; |
| 97 bool m_notInList : 1; | 99 bool m_notInList : 1; |
| 98 }; | 100 }; |
| 99 | 101 |
| 100 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutListItem, isListItem()); | 102 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutListItem, isListItem()); |
| 101 | 103 |
| 102 } // namespace blink | 104 } // namespace blink |
| 103 | 105 |
| 104 #endif // LayoutListItem_h | 106 #endif // LayoutListItem_h |
| OLD | NEW |