]>
git.saurik.com Git - iphone-api.git/blob - WebCore/RenderTableRow.h
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., 51 Franklin Street, Fifth Floor,
24 * Boston, MA 02110-1301, USA.
27 #ifndef RenderTableRow_h
28 #define RenderTableRow_h
30 #include "RenderTableSection.h"
34 class RenderTableRow
: public RenderContainer
{
36 RenderTableRow(Node
*);
38 RenderTableSection
* section() const { return static_cast<RenderTableSection
*>(parent()); }
39 RenderTable
* table() const { return static_cast<RenderTable
*>(parent()->parent()); }
42 virtual const char* renderName() const { return isAnonymous() ? "RenderTableRow (anonymous)" : "RenderTableRow"; }
44 virtual bool isTableRow() const { return true; }
46 virtual void destroy();
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
);
55 // The only time rows get a layer is when they have transparency.
56 virtual bool requiresLayer() const { return isTransparent() || hasOverflowClip() || hasTransform() || hasMask(); }
58 virtual void paint(PaintInfo
&, int tx
, int ty
);
60 virtual void imageChanged(WrappedImagePtr
, const IntRect
* = 0);
62 virtual void styleWillChange(StyleDifference
, const RenderStyle
* newStyle
);
66 } // namespace WebCore
68 #endif // RenderTableRow_h