diff options
Diffstat (limited to 'Source/WebCore/rendering/RenderTable.h')
| -rw-r--r-- | Source/WebCore/rendering/RenderTable.h | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/Source/WebCore/rendering/RenderTable.h b/Source/WebCore/rendering/RenderTable.h index 55a450957..85a807a0f 100644 --- a/Source/WebCore/rendering/RenderTable.h +++ b/Source/WebCore/rendering/RenderTable.h @@ -42,7 +42,7 @@ enum SkipEmptySectionsValue { DoNotSkipEmptySections, SkipEmptySections }; class RenderTable : public RenderBlock { public: - explicit RenderTable(Node*); + explicit RenderTable(Element*); virtual ~RenderTable(); // Per CSS 3 writing-mode: "The first and second values of the 'border-spacing' property represent spacing between columns @@ -194,6 +194,10 @@ public: return 0; } + // Override paddingStart/End to return pixel values to match behavor of RenderTableCell. + virtual LayoutUnit paddingEnd() const OVERRIDE { return static_cast<int>(RenderBlock::paddingEnd()); } + virtual LayoutUnit paddingStart() const OVERRIDE { return static_cast<int>(RenderBlock::paddingStart()); } + LayoutUnit bordersPaddingAndSpacingInRowDirection() const { // 'border-spacing' only applies to separate borders (see 17.6.1 The separated borders model). @@ -260,6 +264,7 @@ public: protected: virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle); + virtual void simplifiedNormalFlowLayout(); private: virtual const char* renderName() const { return "RenderTable"; } @@ -273,7 +278,8 @@ private: virtual void paintBoxDecorations(PaintInfo&, const LayoutPoint&); virtual void paintMask(PaintInfo&, const LayoutPoint&); virtual void layout(); - virtual void computePreferredLogicalWidths(); + virtual void computeIntrinsicLogicalWidths(LayoutUnit& minWidth, LayoutUnit& maxWidth) const OVERRIDE; + virtual void computePreferredLogicalWidths() OVERRIDE; virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction) OVERRIDE; virtual int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode, LinePositionMode = PositionOnContainingLine) const OVERRIDE; @@ -293,7 +299,8 @@ private: LayoutUnit convertStyleLogicalWidthToComputedWidth(const Length& styleLogicalWidth, LayoutUnit availableWidth); LayoutUnit convertStyleLogicalHeightToComputedHeight(const Length& styleLogicalHeight); - virtual LayoutRect overflowClipRect(const LayoutPoint& location, RenderRegion*, OverlayScrollbarSizeRelevancy = IgnoreOverlayScrollbarSize); + virtual LayoutRect overflowClipRect(const LayoutPoint& location, RenderRegion*, OverlayScrollbarSizeRelevancy = IgnoreOverlayScrollbarSize, PaintPhase = PaintPhaseBlockBackground); + virtual LayoutRect overflowClipRectForChildLayers(const LayoutPoint& location, RenderRegion* region, OverlayScrollbarSizeRelevancy relevancy) { return RenderBox::overflowClipRect(location, region, relevancy); } virtual void addOverflowFromChildren(); @@ -344,13 +351,13 @@ inline RenderTableSection* RenderTable::topSection() const inline RenderTable* toRenderTable(RenderObject* object) { - ASSERT(!object || object->isTable()); + ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isTable()); return static_cast<RenderTable*>(object); } inline const RenderTable* toRenderTable(const RenderObject* object) { - ASSERT(!object || object->isTable()); + ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isTable()); return static_cast<const RenderTable*>(object); } |
