| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Apple Inc. All rights reserved. | 2 * Copyright (C) 2012 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 | 26 |
| 27 #ifndef RenderMultiColumnBlock_h | 27 #ifndef RenderMultiColumnBlock_h |
| 28 #define RenderMultiColumnBlock_h | 28 #define RenderMultiColumnBlock_h |
| 29 | 29 |
| 30 #include "RenderBlock.h" | 30 #include "RenderBlock.h" |
| 31 | 31 |
| 32 namespace WebCore { | 32 namespace WebCore { |
| 33 | 33 |
| 34 class RenderMultiColumnFlowThread; | 34 class RenderMultiColumnFlowThread; |
| 35 | 35 |
| 36 class RenderMultiColumnBlock : public RenderBlock { | 36 class RenderMultiColumnBlock FINAL : public RenderBlock { |
| 37 public: | 37 public: |
| 38 RenderMultiColumnBlock(Element*); | 38 RenderMultiColumnBlock(Element*); |
| 39 | 39 |
| 40 LayoutUnit columnHeight() const { return m_columnHeight; } | 40 LayoutUnit columnHeight() const { return m_columnHeight; } |
| 41 void setColumnHeight(LayoutUnit columnHeight) { m_columnHeight = columnHeigh
t; } | 41 void setColumnHeight(LayoutUnit columnHeight) { m_columnHeight = columnHeigh
t; } |
| 42 | 42 |
| 43 LayoutUnit columnWidth() const { return m_columnWidth; } | 43 LayoutUnit columnWidth() const { return m_columnWidth; } |
| 44 unsigned columnCount() const { return m_columnCount; } | 44 unsigned columnCount() const { return m_columnCount; } |
| 45 | 45 |
| 46 RenderMultiColumnFlowThread* flowThread() const { return m_flowThread; } | 46 RenderMultiColumnFlowThread* flowThread() const { return m_flowThread; } |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 return static_cast<const RenderMultiColumnBlock*>(object); | 86 return static_cast<const RenderMultiColumnBlock*>(object); |
| 87 } | 87 } |
| 88 | 88 |
| 89 // This will catch anyone doing an unnecessary cast. | 89 // This will catch anyone doing an unnecessary cast. |
| 90 void toRenderMultiColumnBlock(const RenderMultiColumnBlock*); | 90 void toRenderMultiColumnBlock(const RenderMultiColumnBlock*); |
| 91 | 91 |
| 92 } // namespace WebCore | 92 } // namespace WebCore |
| 93 | 93 |
| 94 #endif // RenderMultiColumnBlock_h | 94 #endif // RenderMultiColumnBlock_h |
| 95 | 95 |
| OLD | NEW |