OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved. | 2 * Copyright (C) 2012 Adobe Systems Incorporated. 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 * | 7 * |
8 * 1. Redistributions of source code must retain the above | 8 * 1. Redistributions of source code must retain the above |
9 * copyright notice, this list of conditions and the following | 9 * copyright notice, this list of conditions and the following |
10 * disclaimer. | 10 * disclaimer. |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 flowRenderer->layoutIfNeeded(); | 219 flowRenderer->layoutIfNeeded(); |
220 if (flowRenderer->hasAutoLogicalHeightRegions()) { | 220 if (flowRenderer->hasAutoLogicalHeightRegions()) { |
221 ASSERT(flowRenderer->needsTwoPhasesLayout()); | 221 ASSERT(flowRenderer->needsTwoPhasesLayout()); |
222 flowRenderer->markAutoLogicalHeightRegionsForLayout(); | 222 flowRenderer->markAutoLogicalHeightRegionsForLayout(); |
223 } | 223 } |
224 flowRenderer->setInConstrainedLayoutPhase(true); | 224 flowRenderer->setInConstrainedLayoutPhase(true); |
225 flowRenderer->clearNeedsTwoPhasesLayout(); | 225 flowRenderer->clearNeedsTwoPhasesLayout(); |
226 } | 226 } |
227 } | 227 } |
228 | 228 |
| 229 bool FlowThreadController::isContentNodeRegisteredWithAnyNamedFlow(Node* content
Node) const |
| 230 { |
| 231 return m_mapNamedFlowContentNodes.contains(contentNode); |
| 232 } |
| 233 |
229 #ifndef NDEBUG | 234 #ifndef NDEBUG |
230 bool FlowThreadController::isAutoLogicalHeightRegionsCountConsistent() const | 235 bool FlowThreadController::isAutoLogicalHeightRegionsCountConsistent() const |
231 { | 236 { |
232 if (!hasRenderNamedFlowThreads()) | 237 if (!hasRenderNamedFlowThreads()) |
233 return !hasFlowThreadsWithAutoLogicalHeightRegions(); | 238 return !hasFlowThreadsWithAutoLogicalHeightRegions(); |
234 | 239 |
235 for (RenderNamedFlowThreadList::iterator iter = m_renderNamedFlowThreadList-
>begin(); iter != m_renderNamedFlowThreadList->end(); ++iter) { | 240 for (RenderNamedFlowThreadList::iterator iter = m_renderNamedFlowThreadList-
>begin(); iter != m_renderNamedFlowThreadList->end(); ++iter) { |
236 if (!(*iter)->isAutoLogicalHeightRegionsCountConsistent()) | 241 if (!(*iter)->isAutoLogicalHeightRegionsCountConsistent()) |
237 return false; | 242 return false; |
238 } | 243 } |
239 | 244 |
240 return true; | 245 return true; |
241 } | 246 } |
242 #endif | 247 #endif |
243 | 248 |
244 } // namespace WebCore | 249 } // namespace WebCore |
OLD | NEW |