webengine/osswebengine/WebCore/rendering/RenderTableRow.h
changeset 0 dd21522fd290
equal deleted inserted replaced
-1:000000000000 0:dd21522fd290
       
     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     virtual const char* renderName() const { return "RenderTableRow"; }
       
    39 
       
    40     virtual bool isTableRow() const { return true; }
       
    41 
       
    42     virtual void destroy();
       
    43 
       
    44     RenderTableSection* section() const { return static_cast<RenderTableSection*>(parent()); }
       
    45     RenderTable* table() const { return static_cast<RenderTable*>(parent()->parent()); }
       
    46 
       
    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);
       
    54 
       
    55     // The only time rows get a layer is when they have transparency.
       
    56     virtual bool requiresLayer() { return isTransparent() || hasOverflowClip(); }
       
    57 
       
    58     virtual void paint(PaintInfo&, int tx, int ty);
       
    59     virtual void imageChanged(CachedImage*);
       
    60 };
       
    61 
       
    62 } // namespace WebCore
       
    63 
       
    64 #endif // RenderTableRow_h