| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 void updateMarginsAndContent(); | 48 void updateMarginsAndContent(); |
| 49 | 49 |
| 50 IntRect getRelativeMarkerRect(); | 50 IntRect getRelativeMarkerRect(); |
| 51 LayoutRect localSelectionRect(); | 51 LayoutRect localSelectionRect(); |
| 52 virtual bool isImage() const override; | 52 virtual bool isImage() const override; |
| 53 const StyleImage* image() { return m_image.get(); } | 53 const StyleImage* image() { return m_image.get(); } |
| 54 const RenderListItem* listItem() { return m_listItem.get(); } | 54 const RenderListItem* listItem() { return m_listItem.get(); } |
| 55 | 55 |
| 56 static UChar listMarkerSuffix(EListStyleType, int value); | 56 static UChar listMarkerSuffix(EListStyleType, int value); |
| 57 | 57 |
| 58 void listItemStyleDidChange(); |
| 59 |
| 58 private: | 60 private: |
| 59 RenderListMarker(RenderListItem*); | 61 RenderListMarker(RenderListItem*); |
| 60 | 62 |
| 61 virtual const char* renderName() const override { return "RenderListMarker";
} | 63 virtual const char* renderName() const override { return "RenderListMarker";
} |
| 62 virtual void computePreferredLogicalWidths() override; | 64 virtual void computePreferredLogicalWidths() override; |
| 63 | 65 |
| 64 virtual bool isListMarker() const override { return true; } | 66 virtual bool isListMarker() const override { return true; } |
| 65 | 67 |
| 66 virtual void paint(PaintInfo&, const LayoutPoint&) override; | 68 virtual void paint(PaintInfo&, const LayoutPoint&) override; |
| 67 | 69 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 89 String m_text; | 91 String m_text; |
| 90 RefPtr<StyleImage> m_image; | 92 RefPtr<StyleImage> m_image; |
| 91 RawPtrWillBeMember<RenderListItem> m_listItem; | 93 RawPtrWillBeMember<RenderListItem> m_listItem; |
| 92 }; | 94 }; |
| 93 | 95 |
| 94 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderListMarker, isListMarker()); | 96 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderListMarker, isListMarker()); |
| 95 | 97 |
| 96 } // namespace blink | 98 } // namespace blink |
| 97 | 99 |
| 98 #endif // RenderListMarker_h | 100 #endif // RenderListMarker_h |
| OLD | NEW |