]>
Commit | Line | Data |
---|---|---|
a90939db JF |
1 | /* |
2 | * This file is part of the DOM implementation for KDE. | |
3 | * | |
4 | * Copyright (C) 1997 Martin Jones (mjones@kde.org) | |
5 | * (C) 1997 Torben Weis (weis@kde.org) | |
6 | * (C) 1998 Waldo Bastian (bastian@kde.org) | |
7 | * (C) 1999 Lars Knoll (knoll@kde.org) | |
8 | * (C) 1999 Antti Koivisto (koivisto@kde.org) | |
9 | * Copyright (C) 2003, 2004, 2005, 2006 Apple Computer, Inc. | |
10 | * | |
11 | * This library is free software; you can redistribute it and/or | |
12 | * modify it under the terms of the GNU Library General Public | |
13 | * License as published by the Free Software Foundation; either | |
14 | * version 2 of the License, or (at your option) any later version. | |
15 | * | |
16 | * This library is distributed in the hope that it will be useful, | |
17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
19 | * Library General Public License for more details. | |
20 | * | |
21 | * You should have received a copy of the GNU Library General Public License | |
22 | * along with this library; see the file COPYING.LIB. If not, write to | |
23 | * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | |
24 | * Boston, MA 02110-1301, USA. | |
25 | */ | |
26 | ||
27 | #ifndef RenderTableRow_h | |
28 | #define RenderTableRow_h | |
29 | ||
30 | #include "RenderTableSection.h" | |
31 | ||
32 | namespace WebCore { | |
33 | ||
34 | class RenderTableRow : public RenderContainer { | |
35 | public: | |
36 | RenderTableRow(Node*); | |
37 | ||
38 | RenderTableSection* section() const { return static_cast<RenderTableSection*>(parent()); } | |
39 | RenderTable* table() const { return static_cast<RenderTable*>(parent()->parent()); } | |
40 | ||
41 | private: | |
42 | virtual const char* renderName() const { return isAnonymous() ? "RenderTableRow (anonymous)" : "RenderTableRow"; } | |
43 | ||
44 | virtual bool isTableRow() const { return true; } | |
45 | ||
46 | virtual void destroy(); | |
47 | ||
48 | virtual void addChild(RenderObject* child, RenderObject* beforeChild = 0); | |
49 | virtual int lineHeight(bool, bool) const { return 0; } | |
50 | virtual void position(InlineBox*) { } | |
51 | virtual void layout(); | |
52 | virtual IntRect clippedOverflowRectForRepaint(RenderBox* repaintContainer); | |
53 | virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, int x, int y, int tx, int ty, HitTestAction); | |
54 | ||
55 | // The only time rows get a layer is when they have transparency. | |
56 | virtual bool requiresLayer() const { return isTransparent() || hasOverflowClip() || hasTransform() || hasMask(); } | |
57 | ||
58 | virtual void paint(PaintInfo&, int tx, int ty); | |
59 | ||
60 | virtual void imageChanged(WrappedImagePtr, const IntRect* = 0); | |
61 | ||
62 | virtual void styleWillChange(StyleDifference, const RenderStyle* newStyle); | |
63 | ||
64 | }; | |
65 | ||
66 | } // namespace WebCore | |
67 | ||
68 | #endif // RenderTableRow_h |