diff options
Diffstat (limited to 'Source/WebCore/rendering/RenderLineBreak.h')
| -rw-r--r-- | Source/WebCore/rendering/RenderLineBreak.h | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/Source/WebCore/rendering/RenderLineBreak.h b/Source/WebCore/rendering/RenderLineBreak.h index 0189d5f68..55f4f597b 100644 --- a/Source/WebCore/rendering/RenderLineBreak.h +++ b/Source/WebCore/rendering/RenderLineBreak.h @@ -32,7 +32,7 @@ class Position; class RenderLineBreak final : public RenderBoxModelObject { public: - RenderLineBreak(HTMLElement&, Ref<RenderStyle>&&); + RenderLineBreak(HTMLElement&, PassRef<RenderStyle>); virtual ~RenderLineBreak(); // FIXME: The lies here keep render tree dump based test results unchanged. @@ -46,23 +46,19 @@ public: void deleteInlineBoxWrapper(); void replaceInlineBoxWrapper(InlineElementBox&); void dirtyLineBoxes(bool fullLayout); - void deleteLineBoxesBeforeSimpleLineLayout(); IntRect linesBoundingBox() const; virtual void absoluteRects(Vector<IntRect>&, const LayoutPoint& accumulatedOffset) const override; virtual void absoluteQuads(Vector<FloatQuad>&, bool* wasFixed) const override; -#if PLATFORM(IOS) -virtual void collectSelectionRects(Vector<SelectionRect>&, unsigned startOffset = 0, unsigned endOffset = std::numeric_limits<unsigned>::max()) override; -#endif private: void node() const = delete; virtual bool canHaveChildren() const override { return false; } - virtual void paint(PaintInfo&, const LayoutPoint&) override { } + virtual void paint(PaintInfo&, const LayoutPoint&) override final { } - virtual VisiblePosition positionForPoint(const LayoutPoint&, const RenderRegion*) override; + virtual VisiblePosition positionForPoint(const LayoutPoint&) override; virtual int caretMinOffset() const override; virtual int caretMaxOffset() const override; virtual bool canBeSelectionLeaf() const override; @@ -82,7 +78,7 @@ private: virtual LayoutUnit marginEnd(const RenderStyle*) const override { return 0; } virtual LayoutUnit offsetWidth() const override { return linesBoundingBox().width(); } virtual LayoutUnit offsetHeight() const override { return linesBoundingBox().height(); } - LayoutRect borderBoundingBox() const override { return LayoutRect(LayoutPoint(), linesBoundingBox().size()); } + virtual IntRect borderBoundingBox() const override; virtual LayoutRect frameRectForStickyPositioning() const override { ASSERT_NOT_REACHED(); return LayoutRect(); } virtual LayoutRect clippedOverflowRectForRepaint(const RenderLayerModelObject*) const override { return LayoutRect(); } @@ -94,8 +90,8 @@ private: bool m_isWBR; }; -} // namespace WebCore +RENDER_OBJECT_TYPE_CASTS(RenderLineBreak, isLineBreak()) -SPECIALIZE_TYPE_TRAITS_RENDER_OBJECT(RenderLineBreak, isLineBreak()) +} // namespace WebCore #endif // RenderLineBreak_h |
