Index: Source/core/rendering/RenderMultiColumnSet.h |
diff --git a/Source/core/rendering/RenderMultiColumnSet.h b/Source/core/rendering/RenderMultiColumnSet.h |
index 98a68bfa14b2d9323c551de085dfee272016efee..1cc93a5a071a44e96c35e58f49050097efae4351 100644 |
--- a/Source/core/rendering/RenderMultiColumnSet.h |
+++ b/Source/core/rendering/RenderMultiColumnSet.h |
@@ -27,6 +27,7 @@ |
#ifndef RenderMultiColumnSet_h |
#define RenderMultiColumnSet_h |
+#include "core/rendering/RenderMultiColumnFlowThread.h" |
#include "core/rendering/RenderRegionSet.h" |
#include "wtf/Vector.h" |
@@ -56,7 +57,11 @@ public: |
virtual bool isRenderMultiColumnSet() const OVERRIDE { return true; } |
RenderBlockFlow* multiColumnBlockFlow() const { return toRenderBlockFlow(parent()); } |
- RenderMultiColumnFlowThread* multiColumnFlowThread() const { return multiColumnBlockFlow()->multiColumnFlowThread(); } |
+ RenderMultiColumnFlowThread* multiColumnFlowThread() const |
+ { |
+ ASSERT_WITH_SECURITY_IMPLICATION(!flowThread() || flowThread()->isRenderMultiColumnFlowThread()); |
+ return static_cast<RenderMultiColumnFlowThread*>(flowThread()); |
+ } |
RenderMultiColumnSet* nextSiblingMultiColumnSet() const; |