Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Side by Side Diff: Source/core/rendering/FlowThreadController.cpp

Issue 15027005: [CSS Regions] Elements in a region should be assignable to a named flow (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Incorporated Julien Chaffraix's feedback to avoid a style resolution for all. Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« Source/core/dom/NodeRenderingContext.cpp ('K') | « Source/core/rendering/FlowThreadController.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698