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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 static UChar listMarkerSuffix(EListStyleType, int value); | 56 static UChar listMarkerSuffix(EListStyleType, int value); |
57 | 57 |
58 void listItemStyleDidChange(); | 58 void listItemStyleDidChange(); |
59 | 59 |
60 private: | 60 private: |
61 RenderListMarker(RenderListItem*); | 61 RenderListMarker(RenderListItem*); |
62 | 62 |
63 virtual const char* renderName() const override { return "RenderListMarker";
} | 63 virtual const char* renderName() const override { return "RenderListMarker";
} |
64 virtual void computePreferredLogicalWidths() override; | 64 virtual void computePreferredLogicalWidths() override; |
65 | 65 |
66 virtual bool isListMarker() const override { return true; } | 66 virtual bool isOfType(RenderObjectType type) const override { return type ==
RenderObjectListMarker || RenderBox::isOfType(type); } |
67 | 67 |
68 virtual void paint(PaintInfo&, const LayoutPoint&) override; | 68 virtual void paint(PaintInfo&, const LayoutPoint&) override; |
69 | 69 |
70 virtual void layout() override; | 70 virtual void layout() override; |
71 | 71 |
72 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0) override; | 72 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0) override; |
73 | 73 |
74 virtual InlineBox* createInlineBox() override; | 74 virtual InlineBox* createInlineBox() override; |
75 | 75 |
76 virtual LayoutUnit lineHeight(bool firstLine, LineDirectionMode, LinePositio
nMode = PositionOnContainingLine) const override; | 76 virtual LayoutUnit lineHeight(bool firstLine, LineDirectionMode, LinePositio
nMode = PositionOnContainingLine) const override; |
(...skipping 14 matching lines...) Expand all Loading... |
91 String m_text; | 91 String m_text; |
92 RefPtr<StyleImage> m_image; | 92 RefPtr<StyleImage> m_image; |
93 RawPtrWillBeMember<RenderListItem> m_listItem; | 93 RawPtrWillBeMember<RenderListItem> m_listItem; |
94 }; | 94 }; |
95 | 95 |
96 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderListMarker, isListMarker()); | 96 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderListMarker, isListMarker()); |
97 | 97 |
98 } // namespace blink | 98 } // namespace blink |
99 | 99 |
100 #endif // RenderListMarker_h | 100 #endif // RenderListMarker_h |
OLD | NEW |