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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 bool isInside() const; | 46 bool isInside() const; |
47 | 47 |
48 void updateMarginsAndContent(); | 48 void updateMarginsAndContent(); |
49 | 49 |
50 private: | 50 private: |
51 RenderListMarker(RenderListItem*); | 51 RenderListMarker(RenderListItem*); |
52 | 52 |
53 virtual const char* renderName() const OVERRIDE { return "RenderListMarker";
} | 53 virtual const char* renderName() const OVERRIDE { return "RenderListMarker";
} |
54 virtual void computePreferredLogicalWidths() OVERRIDE; | 54 virtual void computePreferredLogicalWidths() OVERRIDE; |
55 | 55 |
56 virtual bool isListMarker() const OVERRIDE { return true; } | 56 virtual bool isOfType(RenderObjectType type) const OVERRIDE { return type ==
RenderObjectListMarker || RenderBox::isOfType(type); } |
57 | 57 |
58 virtual void paint(PaintInfo&, const LayoutPoint&) OVERRIDE; | 58 virtual void paint(PaintInfo&, const LayoutPoint&) OVERRIDE; |
59 | 59 |
60 virtual void layout() OVERRIDE; | 60 virtual void layout() OVERRIDE; |
61 | 61 |
62 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0) OVERRIDE; | 62 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0) OVERRIDE; |
63 | 63 |
64 virtual InlineBox* createInlineBox() OVERRIDE; | 64 virtual InlineBox* createInlineBox() OVERRIDE; |
65 | 65 |
66 virtual LayoutUnit lineHeight(bool firstLine, LineDirectionMode, LinePositio
nMode = PositionOnContainingLine) const OVERRIDE; | 66 virtual LayoutUnit lineHeight(bool firstLine, LineDirectionMode, LinePositio
nMode = PositionOnContainingLine) const OVERRIDE; |
(...skipping 18 matching lines...) Expand all Loading... |
85 String m_text; | 85 String m_text; |
86 RefPtr<StyleImage> m_image; | 86 RefPtr<StyleImage> m_image; |
87 RawPtrWillBeMember<RenderListItem> m_listItem; | 87 RawPtrWillBeMember<RenderListItem> m_listItem; |
88 }; | 88 }; |
89 | 89 |
90 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderListMarker, isListMarker()); | 90 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderListMarker, isListMarker()); |
91 | 91 |
92 } // namespace blink | 92 } // namespace blink |
93 | 93 |
94 #endif // RenderListMarker_h | 94 #endif // RenderListMarker_h |
OLD | NEW |