| 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 29 matching lines...) Expand all Loading... |
| 40 updateValueNow(); | 40 updateValueNow(); |
| 41 return m_value; | 41 return m_value; |
| 42 } | 42 } |
| 43 void updateValue(); | 43 void updateValue(); |
| 44 | 44 |
| 45 bool hasExplicitValue() const { return m_hasExplicitValue; } | 45 bool hasExplicitValue() const { return m_hasExplicitValue; } |
| 46 int explicitValue() const { return m_explicitValue; } | 46 int explicitValue() const { return m_explicitValue; } |
| 47 void setExplicitValue(int); | 47 void setExplicitValue(int); |
| 48 void clearExplicitValue(); | 48 void clearExplicitValue(); |
| 49 | 49 |
| 50 void setNotInList(bool); | |
| 51 bool notInList() const { return m_notInList; } | |
| 52 | |
| 53 const String& markerText() const; | 50 const String& markerText() const; |
| 54 | 51 |
| 55 void updateListMarkerNumbers(); | 52 void updateListMarkerNumbers(); |
| 56 | 53 |
| 57 static void updateItemValuesForOrderedList(const HTMLOListElement*); | 54 static void updateItemValuesForOrderedList(const HTMLOListElement*); |
| 58 static unsigned itemCountForOrderedList(const HTMLOListElement*); | 55 static unsigned itemCountForOrderedList(const HTMLOListElement*); |
| 59 | 56 |
| 60 bool isEmpty() const; | 57 bool isEmpty() const; |
| 61 | 58 |
| 62 LayoutListMarker* marker() const { return m_marker; } | 59 LayoutListMarker* marker() const { return m_marker; } |
| (...skipping 24 matching lines...) Expand all Loading... |
| 87 inline int calcValue() const; | 84 inline int calcValue() const; |
| 88 void updateValueNow() const; | 85 void updateValueNow() const; |
| 89 void explicitValueChanged(); | 86 void explicitValueChanged(); |
| 90 | 87 |
| 91 int m_explicitValue; | 88 int m_explicitValue; |
| 92 LayoutListMarker* m_marker; | 89 LayoutListMarker* m_marker; |
| 93 mutable int m_value; | 90 mutable int m_value; |
| 94 | 91 |
| 95 bool m_hasExplicitValue : 1; | 92 bool m_hasExplicitValue : 1; |
| 96 mutable bool m_isValueUpToDate : 1; | 93 mutable bool m_isValueUpToDate : 1; |
| 97 bool m_notInList : 1; | |
| 98 }; | 94 }; |
| 99 | 95 |
| 100 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutListItem, isListItem()); | 96 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutListItem, isListItem()); |
| 101 | 97 |
| 102 } // namespace blink | 98 } // namespace blink |
| 103 | 99 |
| 104 #endif // LayoutListItem_h | 100 #endif // LayoutListItem_h |
| OLD | NEW |