| 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 class CORE_EXPORT LayoutMultiColumnFlowThread : public LayoutFlowThread, | 143 class CORE_EXPORT LayoutMultiColumnFlowThread : public LayoutFlowThread, |
| 144 public FragmentationContext { | 144 public FragmentationContext { |
| 145 public: | 145 public: |
| 146 ~LayoutMultiColumnFlowThread() override; | 146 ~LayoutMultiColumnFlowThread() override; |
| 147 | 147 |
| 148 static LayoutMultiColumnFlowThread* createAnonymous( | 148 static LayoutMultiColumnFlowThread* createAnonymous( |
| 149 Document&, | 149 Document&, |
| 150 const ComputedStyle& parentStyle); | 150 const ComputedStyle& parentStyle); |
| 151 | 151 |
| 152 bool isLayoutMultiColumnFlowThread() const final { return true; } | 152 bool isLayoutMultiColumnFlowThread() const final { return true; } |
| 153 char objectSize() const override { return sizeof(this); } |
| 153 | 154 |
| 154 LayoutBlockFlow* multiColumnBlockFlow() const { | 155 LayoutBlockFlow* multiColumnBlockFlow() const { |
| 155 return toLayoutBlockFlow(parent()); | 156 return toLayoutBlockFlow(parent()); |
| 156 } | 157 } |
| 157 | 158 |
| 158 LayoutMultiColumnSet* firstMultiColumnSet() const; | 159 LayoutMultiColumnSet* firstMultiColumnSet() const; |
| 159 LayoutMultiColumnSet* lastMultiColumnSet() const; | 160 LayoutMultiColumnSet* lastMultiColumnSet() const; |
| 160 | 161 |
| 161 // Return the first column set or spanner placeholder. | 162 // Return the first column set or spanner placeholder. |
| 162 LayoutBox* firstMultiColumnBox() const { return nextSiblingBox(); } | 163 LayoutBox* firstMultiColumnBox() const { return nextSiblingBox(); } |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 // LayoutObject. | 372 // LayoutObject. |
| 372 DEFINE_TYPE_CASTS(LayoutMultiColumnFlowThread, | 373 DEFINE_TYPE_CASTS(LayoutMultiColumnFlowThread, |
| 373 LayoutFlowThread, | 374 LayoutFlowThread, |
| 374 object, | 375 object, |
| 375 object->isLayoutMultiColumnFlowThread(), | 376 object->isLayoutMultiColumnFlowThread(), |
| 376 object.isLayoutMultiColumnFlowThread()); | 377 object.isLayoutMultiColumnFlowThread()); |
| 377 | 378 |
| 378 } // namespace blink | 379 } // namespace blink |
| 379 | 380 |
| 380 #endif // LayoutMultiColumnFlowThread_h | 381 #endif // LayoutMultiColumnFlowThread_h |
| OLD | NEW |