2
* This file is part of the DOM implementation for KDE.
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.
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.
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.
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., 59 Temple Place - Suite 330,
24
* Boston, MA 02111-1307, USA.
27
#ifndef RenderTableRow_h
28
#define RenderTableRow_h
30
#include "RenderTableSection.h"
34
class RenderTableRow : public RenderContainer {
36
RenderTableRow(Node*);
38
virtual const char* renderName() const { return "RenderTableRow"; }
40
virtual bool isTableRow() const { return true; }
42
virtual void destroy();
44
RenderTableSection* section() const { return static_cast<RenderTableSection*>(parent()); }
45
RenderTable* table() const { return static_cast<RenderTable*>(parent()->parent()); }
47
virtual void setStyle(RenderStyle*);
48
virtual void addChild(RenderObject* child, RenderObject* beforeChild = 0);
49
virtual short lineHeight(bool firstLine, bool isRootLineBox = false) const { return 0; }
50
virtual void position(InlineBox*) { }
51
virtual void layout();
52
virtual IntRect absoluteClippedOverflowRect();
53
virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, int x, int y, int tx, int ty, HitTestAction);
55
// The only time rows get a layer is when they have transparency.
56
virtual bool requiresLayer() { return isTransparent() || hasOverflowClip(); }
58
virtual void paint(PaintInfo&, int tx, int ty);
59
virtual void imageChanged(CachedImage*);
62
} // namespace WebCore
64
#endif // RenderTableRow_h