OLD | NEW |
1 /* | 1 /* |
2 * This file is part of the DOM implementation for KDE. | 2 * This file is part of the DOM implementation for KDE. |
3 * | 3 * |
4 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) | 4 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) |
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 22 matching lines...) Expand all Loading... |
33 | 33 |
34 class Position; | 34 class Position; |
35 | 35 |
36 class RenderBR : public RenderText { | 36 class RenderBR : public RenderText { |
37 public: | 37 public: |
38 RenderBR(Node*); | 38 RenderBR(Node*); |
39 virtual ~RenderBR(); | 39 virtual ~RenderBR(); |
40 | 40 |
41 virtual const char* renderName() const { return "RenderBR"; } | 41 virtual const char* renderName() const { return "RenderBR"; } |
42 | 42 |
43 virtual IntRect selectionRectForRepaint(RenderBoxModelObject* /*repaintConta
iner*/, bool /*clipToVisibleContent*/) { return IntRect(); } | 43 virtual IntRect selectionRectForRepaint(RenderBox* /*repaintContainer*/, boo
l /*clipToVisibleContent*/) { return IntRect(); } |
44 | 44 |
45 virtual unsigned width(unsigned /*from*/, unsigned /*len*/, const Font&, int
/*xpos*/) const { return 0; } | 45 virtual unsigned width(unsigned /*from*/, unsigned /*len*/, const Font&, int
/*xpos*/) const { return 0; } |
46 virtual unsigned width(unsigned /*from*/, unsigned /*len*/, int /*xpos*/, bo
ol /*firstLine = false*/) const { return 0; } | 46 virtual unsigned width(unsigned /*from*/, unsigned /*len*/, int /*xpos*/, bo
ol /*firstLine = false*/) const { return 0; } |
47 | 47 |
48 virtual int lineHeight(bool firstLine, bool isRootLineBox = false) const; | 48 virtual int lineHeight(bool firstLine, bool isRootLineBox = false) const; |
49 virtual int baselinePosition(bool firstLine, bool isRootLineBox = false) con
st; | 49 virtual int baselinePosition(bool firstLine, bool isRootLineBox = false) con
st; |
50 | 50 |
51 // overrides | 51 // overrides |
52 virtual InlineBox* createInlineBox(bool, bool, bool isOnlyRun = false); | 52 virtual InlineBox* createInlineBox(bool, bool, bool isOnlyRun = false); |
53 | 53 |
54 virtual bool isBR() const { return true; } | 54 virtual bool isBR() const { return true; } |
55 | 55 |
56 virtual int caretMinOffset() const; | 56 virtual int caretMinOffset() const; |
57 virtual int caretMaxOffset() const; | 57 virtual int caretMaxOffset() const; |
58 virtual unsigned caretMaxRenderedOffset() const; | 58 virtual unsigned caretMaxRenderedOffset() const; |
59 | 59 |
60 virtual VisiblePosition positionForCoordinates(int x, int y); | 60 virtual VisiblePosition positionForCoordinates(int x, int y); |
61 | 61 |
62 protected: | 62 protected: |
63 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle); | 63 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle); |
64 | 64 |
65 private: | 65 private: |
66 mutable int m_lineHeight; | 66 mutable int m_lineHeight; |
67 }; | 67 }; |
68 | 68 |
69 } // namespace WebCore | 69 } // namespace WebCore |
70 | 70 |
71 #endif // RenderBR_h | 71 #endif // RenderBR_h |
OLD | NEW |