Index: Source/core/rendering/InlineTextBox.h |
diff --git a/Source/core/rendering/InlineTextBox.h b/Source/core/rendering/InlineTextBox.h |
index 92926070fc7c5f17572b3b841a7a7c63b7362809..a16bae318381c9d3cc5724cb8491dd050823fc2a 100644 |
--- a/Source/core/rendering/InlineTextBox.h |
+++ b/Source/core/rendering/InlineTextBox.h |
@@ -43,7 +43,7 @@ Color correctedTextColor(Color textColor, Color backgroundColor); |
class InlineTextBox : public InlineBox { |
public: |
- InlineTextBox(RenderObject* obj) |
+ InlineTextBox(RenderObject& obj) |
: InlineBox(obj) |
, m_prevTextBox(0) |
, m_nextTextBox(0) |
@@ -122,7 +122,7 @@ protected: |
virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, LayoutUnit lineTop, LayoutUnit lineBottom) OVERRIDE; |
public: |
- RenderText* textRenderer() const; |
+ RenderText& textRenderer() const; |
private: |
virtual void deleteLine() OVERRIDE FINAL; |
@@ -197,7 +197,7 @@ private: |
DEFINE_INLINE_BOX_TYPE_CASTS(InlineTextBox); |
-inline RenderText* InlineTextBox::textRenderer() const |
+inline RenderText& InlineTextBox::textRenderer() const |
{ |
return toRenderText(renderer()); |
} |