| 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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 | 283 |
| 284 protected: | 284 protected: |
| 285 LayoutMultiColumnFlowThread(); | 285 LayoutMultiColumnFlowThread(); |
| 286 void setProgressionIsInline(bool isInline) { | 286 void setProgressionIsInline(bool isInline) { |
| 287 m_progressionIsInline = isInline; | 287 m_progressionIsInline = isInline; |
| 288 } | 288 } |
| 289 | 289 |
| 290 void layout() override; | 290 void layout() override; |
| 291 | 291 |
| 292 private: | 292 private: |
| 293 void calculateColumnHeightAvailable(); |
| 293 void calculateColumnCountAndWidth(LayoutUnit& width, unsigned& count) const; | 294 void calculateColumnCountAndWidth(LayoutUnit& width, unsigned& count) const; |
| 294 void createAndInsertMultiColumnSet(LayoutBox* insertBefore = nullptr); | 295 void createAndInsertMultiColumnSet(LayoutBox* insertBefore = nullptr); |
| 295 void createAndInsertSpannerPlaceholder( | 296 void createAndInsertSpannerPlaceholder( |
| 296 LayoutBox* spannerObjectInFlowThread, | 297 LayoutBox* spannerObjectInFlowThread, |
| 297 LayoutObject* insertedBeforeInFlowThread); | 298 LayoutObject* insertedBeforeInFlowThread); |
| 298 void destroySpannerPlaceholder(LayoutMultiColumnSpannerPlaceholder*); | 299 void destroySpannerPlaceholder(LayoutMultiColumnSpannerPlaceholder*); |
| 299 virtual bool descendantIsValidColumnSpanner(LayoutObject* descendant) const; | 300 virtual bool descendantIsValidColumnSpanner(LayoutObject* descendant) const; |
| 300 | 301 |
| 301 void addColumnSetToThread(LayoutMultiColumnSet*) override; | 302 void addColumnSetToThread(LayoutMultiColumnSet*) override; |
| 302 void willBeRemovedFromTree() override; | 303 void willBeRemovedFromTree() override; |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 // LayoutObject. | 368 // LayoutObject. |
| 368 DEFINE_TYPE_CASTS(LayoutMultiColumnFlowThread, | 369 DEFINE_TYPE_CASTS(LayoutMultiColumnFlowThread, |
| 369 LayoutFlowThread, | 370 LayoutFlowThread, |
| 370 object, | 371 object, |
| 371 object->isLayoutMultiColumnFlowThread(), | 372 object->isLayoutMultiColumnFlowThread(), |
| 372 object.isLayoutMultiColumnFlowThread()); | 373 object.isLayoutMultiColumnFlowThread()); |
| 373 | 374 |
| 374 } // namespace blink | 375 } // namespace blink |
| 375 | 376 |
| 376 #endif // LayoutMultiColumnFlowThread_h | 377 #endif // LayoutMultiColumnFlowThread_h |
| OLD | NEW |