static const unsigned unsetRowIndex = 0x7FFFFFFF;
static const unsigned maxRowIndex = 0x7FFFFFFE; // 2,147,483,646
-class RenderTableRow FINAL : public RenderBox {
+class RenderTableRow final : public RenderBox {
public:
explicit RenderTableRow(Element*);
- virtual void trace(Visitor*) OVERRIDE;
+ virtual void trace(Visitor*) override;
RenderTableCell* firstCell() const;
RenderTableCell* lastCell() const;
RenderTableSection* section() const { return toRenderTableSection(parent()); }
RenderTable* table() const { return toRenderTable(parent()->parent()); }
- void paintOutlineForRowIfNeeded(PaintInfo&, const LayoutPoint&);
-
static RenderTableRow* createAnonymous(Document*);
static RenderTableRow* createAnonymousWithParentRenderer(const RenderObject*);
- virtual RenderBox* createAnonymousBoxWithSameTypeAs(const RenderObject* parent) const OVERRIDE
+ virtual RenderBox* createAnonymousBoxWithSameTypeAs(const RenderObject* parent) const override
{
return createAnonymousWithParentRenderer(parent);
}
unsigned rowIndex() const
{
ASSERT(rowIndexWasSet());
+ ASSERT(!section() || !section()->needsCellRecalc()); // index may be bogus if cells need recalc.
return m_rowIndex;
}
const BorderValue& borderAdjoiningStartCell(const RenderTableCell*) const;
const BorderValue& borderAdjoiningEndCell(const RenderTableCell*) const;
- virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction) OVERRIDE;
+ virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction) override;
+
+ void addOverflowFromCell(const RenderTableCell*);
private:
- virtual RenderObjectChildList* virtualChildren() OVERRIDE { return children(); }
- virtual const RenderObjectChildList* virtualChildren() const OVERRIDE { return children(); }
+ virtual RenderObjectChildList* virtualChildren() override { return children(); }
+ virtual const RenderObjectChildList* virtualChildren() const override { return children(); }
- virtual const char* renderName() const OVERRIDE { return (isAnonymous() || isPseudoElement()) ? "RenderTableRow (anonymous)" : "RenderTableRow"; }
+ virtual const char* renderName() const override { return (isAnonymous() || isPseudoElement()) ? "RenderTableRow (anonymous)" : "RenderTableRow"; }
- virtual bool isTableRow() const OVERRIDE { return true; }
+ virtual bool isOfType(RenderObjectType type) const override { return type == RenderObjectTableRow || RenderBox::isOfType(type); }
- virtual void willBeRemovedFromTree() OVERRIDE;
+ virtual void willBeRemovedFromTree() override;
- virtual void addChild(RenderObject* child, RenderObject* beforeChild = 0) OVERRIDE;
- virtual void layout() OVERRIDE;
+ virtual void addChild(RenderObject* child, RenderObject* beforeChild = 0) override;
+ virtual void layout() override;
- virtual LayerType layerTypeRequired() const OVERRIDE
+ virtual LayerType layerTypeRequired() const override
{
- if (hasTransform() || hasHiddenBackface() || hasClipPath() || createsGroup() || style()->shouldCompositeForCurrentAnimations())
+ if (hasTransformRelatedProperty() || hasHiddenBackface() || hasClipPath() || createsGroup() || style()->shouldCompositeForCurrentAnimations())
return NormalLayer;
if (hasOverflowClip())
return NoLayer;
}
- virtual void paint(PaintInfo&, const LayoutPoint&) OVERRIDE;
+ virtual void paint(PaintInfo&, const LayoutPoint&) override;
- virtual void imageChanged(WrappedImagePtr, const IntRect* = 0) OVERRIDE;
+ virtual void imageChanged(WrappedImagePtr, const IntRect* = 0) override;
- virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OVERRIDE;
+ virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) override;
void nextSibling() const WTF_DELETED_FUNCTION;
void previousSibling() const WTF_DELETED_FUNCTION;