Index: Source/core/rendering/RenderBlock.h |
diff --git a/Source/core/rendering/RenderBlock.h b/Source/core/rendering/RenderBlock.h |
index 38a6d678b1c32b83a90487a285a13a61b3dbe087..30ea36b6cd92d688f2d345a199d4d4f56ce5cad6 100644 |
--- a/Source/core/rendering/RenderBlock.h |
+++ b/Source/core/rendering/RenderBlock.h |
@@ -255,15 +255,15 @@ public: |
void showLineTreeAndMark(const InlineBox* = 0, const char* = 0, const InlineBox* = 0, const char* = 0, const RenderObject* = 0) const; |
#endif |
- ShapeInsideInfo* ensureShapeInsideInfo() |
+ ShapeInsideInfo& ensureShapeInsideInfo() |
{ |
if (!m_rareData || !m_rareData->m_shapeInsideInfo) |
- setShapeInsideInfo(ShapeInsideInfo::createInfo(this)); |
- return m_rareData->m_shapeInsideInfo.get(); |
+ setShapeInsideInfo(ShapeInsideInfo::createInfo(*this)); |
+ return *m_rareData->m_shapeInsideInfo; |
} |
ShapeInsideInfo* shapeInsideInfo() const |
{ |
- return m_rareData && m_rareData->m_shapeInsideInfo && ShapeInsideInfo::isEnabledFor(this) ? m_rareData->m_shapeInsideInfo.get() : 0; |
+ return m_rareData && m_rareData->m_shapeInsideInfo && ShapeInsideInfo::isEnabledFor(*this) ? m_rareData->m_shapeInsideInfo.get() : 0; |
} |
void setShapeInsideInfo(PassOwnPtr<ShapeInsideInfo> value) |
{ |