| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 } | 49 } |
| 50 | 50 |
| 51 LayoutMultiColumnFlowThread::~LayoutMultiColumnFlowThread() {} | 51 LayoutMultiColumnFlowThread::~LayoutMultiColumnFlowThread() {} |
| 52 | 52 |
| 53 LayoutMultiColumnFlowThread* LayoutMultiColumnFlowThread::createAnonymous( | 53 LayoutMultiColumnFlowThread* LayoutMultiColumnFlowThread::createAnonymous( |
| 54 Document& document, | 54 Document& document, |
| 55 const ComputedStyle& parentStyle) { | 55 const ComputedStyle& parentStyle) { |
| 56 LayoutMultiColumnFlowThread* layoutObject = new LayoutMultiColumnFlowThread(); | 56 LayoutMultiColumnFlowThread* layoutObject = new LayoutMultiColumnFlowThread(); |
| 57 layoutObject->setDocumentForAnonymous(&document); | 57 layoutObject->setDocumentForAnonymous(&document); |
| 58 layoutObject->setStyle(ComputedStyle::createAnonymousStyleWithDisplay( | 58 layoutObject->setStyle(ComputedStyle::createAnonymousStyleWithDisplay( |
| 59 parentStyle, EDisplay::Block)); | 59 parentStyle, EDisplay::kBlock)); |
| 60 return layoutObject; | 60 return layoutObject; |
| 61 } | 61 } |
| 62 | 62 |
| 63 LayoutMultiColumnSet* LayoutMultiColumnFlowThread::firstMultiColumnSet() const { | 63 LayoutMultiColumnSet* LayoutMultiColumnFlowThread::firstMultiColumnSet() const { |
| 64 for (LayoutObject* sibling = nextSibling(); sibling; | 64 for (LayoutObject* sibling = nextSibling(); sibling; |
| 65 sibling = sibling->nextSibling()) { | 65 sibling = sibling->nextSibling()) { |
| 66 if (sibling->isLayoutMultiColumnSet()) | 66 if (sibling->isLayoutMultiColumnSet()) |
| 67 return toLayoutMultiColumnSet(sibling); | 67 return toLayoutMultiColumnSet(sibling); |
| 68 } | 68 } |
| 69 return nullptr; | 69 return nullptr; |
| (...skipping 1306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1376 const { | 1376 const { |
| 1377 return MultiColumnLayoutState(m_lastSetWorkedOn); | 1377 return MultiColumnLayoutState(m_lastSetWorkedOn); |
| 1378 } | 1378 } |
| 1379 | 1379 |
| 1380 void LayoutMultiColumnFlowThread::restoreMultiColumnLayoutState( | 1380 void LayoutMultiColumnFlowThread::restoreMultiColumnLayoutState( |
| 1381 const MultiColumnLayoutState& state) { | 1381 const MultiColumnLayoutState& state) { |
| 1382 m_lastSetWorkedOn = state.columnSet(); | 1382 m_lastSetWorkedOn = state.columnSet(); |
| 1383 } | 1383 } |
| 1384 | 1384 |
| 1385 } // namespace blink | 1385 } // namespace blink |
| OLD | NEW |