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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 } | 44 } |
45 | 45 |
46 LayoutMultiColumnFlowThread::~LayoutMultiColumnFlowThread() | 46 LayoutMultiColumnFlowThread::~LayoutMultiColumnFlowThread() |
47 { | 47 { |
48 } | 48 } |
49 | 49 |
50 LayoutMultiColumnFlowThread* LayoutMultiColumnFlowThread::createAnonymous(Docume
nt& document, const ComputedStyle& parentStyle) | 50 LayoutMultiColumnFlowThread* LayoutMultiColumnFlowThread::createAnonymous(Docume
nt& document, const ComputedStyle& parentStyle) |
51 { | 51 { |
52 LayoutMultiColumnFlowThread* layoutObject = new LayoutMultiColumnFlowThread(
); | 52 LayoutMultiColumnFlowThread* layoutObject = new LayoutMultiColumnFlowThread(
); |
53 layoutObject->setDocumentForAnonymous(&document); | 53 layoutObject->setDocumentForAnonymous(&document); |
54 layoutObject->setStyle(ComputedStyle::createAnonymousStyleWithDisplay(parent
Style, BLOCK)); | 54 layoutObject->setStyle(ComputedStyle::createAnonymousStyleWithDisplay(parent
Style, EDisplay::Block)); |
55 return layoutObject; | 55 return layoutObject; |
56 } | 56 } |
57 | 57 |
58 LayoutMultiColumnSet* LayoutMultiColumnFlowThread::firstMultiColumnSet() const | 58 LayoutMultiColumnSet* LayoutMultiColumnFlowThread::firstMultiColumnSet() const |
59 { | 59 { |
60 for (LayoutObject* sibling = nextSibling(); sibling; sibling = sibling->next
Sibling()) { | 60 for (LayoutObject* sibling = nextSibling(); sibling; sibling = sibling->next
Sibling()) { |
61 if (sibling->isLayoutMultiColumnSet()) | 61 if (sibling->isLayoutMultiColumnSet()) |
62 return toLayoutMultiColumnSet(sibling); | 62 return toLayoutMultiColumnSet(sibling); |
63 } | 63 } |
64 return nullptr; | 64 return nullptr; |
(...skipping 994 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1059 { | 1059 { |
1060 return MultiColumnLayoutState(m_lastSetWorkedOn); | 1060 return MultiColumnLayoutState(m_lastSetWorkedOn); |
1061 } | 1061 } |
1062 | 1062 |
1063 void LayoutMultiColumnFlowThread::restoreMultiColumnLayoutState(const MultiColum
nLayoutState& state) | 1063 void LayoutMultiColumnFlowThread::restoreMultiColumnLayoutState(const MultiColum
nLayoutState& state) |
1064 { | 1064 { |
1065 m_lastSetWorkedOn = state.columnSet(); | 1065 m_lastSetWorkedOn = state.columnSet(); |
1066 } | 1066 } |
1067 | 1067 |
1068 } // namespace blink | 1068 } // namespace blink |
OLD | NEW |