Chromium Code Reviews

Unified Diff: Source/core/layout/LayoutMultiColumnFlowThread.h

Issue 1282923004: Add toLayoutMultiColumnFlowThread(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « no previous file | Source/core/layout/LayoutMultiColumnSet.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutMultiColumnFlowThread.h
diff --git a/Source/core/layout/LayoutMultiColumnFlowThread.h b/Source/core/layout/LayoutMultiColumnFlowThread.h
index 25e05de7e1d187ebbbf7413c7b9933a4b60cea14..ca36f2ab1b26a8c3c53af5845e570db2da614c75 100644
--- a/Source/core/layout/LayoutMultiColumnFlowThread.h
+++ b/Source/core/layout/LayoutMultiColumnFlowThread.h
@@ -224,6 +224,10 @@ private:
bool m_isBeingEvacuated;
};
+// Cannot use DEFINE_LAYOUT_OBJECT_TYPE_CASTS here, because isMultiColumnFlowThread() is defined in
+// LayoutFlowThread, not in LayoutObject.
+DEFINE_TYPE_CASTS(LayoutMultiColumnFlowThread, LayoutFlowThread, object, object->isLayoutMultiColumnFlowThread(), object.isLayoutMultiColumnFlowThread());
+
} // namespace blink
#endif // LayoutMultiColumnFlowThread_h
« no previous file with comments | « no previous file | Source/core/layout/LayoutMultiColumnSet.h » ('j') | no next file with comments »

Powered by Google App Engine