• abucur@adobe.com's avatar
    [CSS Regions] Convert regions iterator loops to range-based loops · 42276a7f
    abucur@adobe.com authored
    https://bugs.webkit.org/show_bug.cgi?id=127464
    
    Reviewed by Antti Koivisto.
    
    Replace most of the iterator loops in the region implementation with
    range based for loops. The for loops that iterate only over subsets
    of collections have not been changed.
    
    Tests: no new tests, this is a refactoring patch.
    
    * dom/WebKitNamedFlow.cpp:
    (WebCore::WebKitNamedFlow::firstEmptyRegionIndex):
    (WebCore::WebKitNamedFlow::getRegionsByContent):
    (WebCore::WebKitNamedFlow::getRegions):
    (WebCore::WebKitNamedFlow::getContent):
    * inspector/InspectorOverlay.cpp:
    (WebCore::buildObjectForCSSRegionsHighlight):
    * rendering/RenderFlowThread.cpp:
    (WebCore::RenderFlowThread::validateRegions):
    (WebCore::RenderFlowThread::updateLogicalWidth):
    (WebCore::RenderFlowThread::computeLogicalHeight):
    (WebCore::RenderFlowThread::repaintRectangleInRegions):
    (WebCore::RenderFlowThread::removeRenderBoxRegionInfo):
    (WebCore::RenderFlowThread::logicalWidthChangedInRegionsForBlock):
    (WebCore::RenderFlowThread::clearRenderBoxRegionInfoAndCustomStyle):
    (WebCore::RenderFlowThread::isAutoLogicalHeightRegionsCountConsistent):
    (WebCore::RenderFlowThread::markAutoLogicalHeightRegionsForLayout):
    (WebCore::RenderFlowThread::markRegionsForOverflowLayoutIfNeeded):
    (WebCore::RenderFlowThread::updateRegionsFlowThreadPortionRect):
    (WebCore::RenderFlowThread::collectLayerFragments):
    (WebCore::RenderFlowThread::fragmentsBoundingBox):
    * rendering/RenderNamedFlowFragment.cpp:
    (WebCore::RenderNamedFlowFragment::setRegionObjectsRegionStyle):
    (WebCore::RenderNamedFlowFragment::restoreRegionObjectsOriginalStyle):
    * rendering/RenderNamedFlowThread.cpp:
    (WebCore::RenderNamedFlowThread::clearContentElements):
    (WebCore::RenderNamedFlowThread::nextRendererForNode):
    (WebCore::RenderNamedFlowThread::dependsOn):
    (WebCore::RenderNamedFlowThread::computeOversetStateForRegions):
    (WebCore::RenderNamedFlowThread::checkInvalidRegions):
    (WebCore::RenderNamedFlowThread::pushDependencies):
    (WebCore::RenderNamedFlowThread::registerNamedFlowContentElement):
    (WebCore::isContainedInElements):
    (WebCore::RenderNamedFlowThread::getRanges):
    (WebCore::RenderNamedFlowThread::checkRegionsWithStyling):
    (WebCore::RenderNamedFlowThread::clearRenderObjectCustomStyle):
    * rendering/RenderTreeAsText.cpp:
    (WebCore::writeRenderRegionList):
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162602 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    42276a7f
Name
Last commit
Last update
..
protocol Loading commit data...
CommandLineAPIHost.cpp Loading commit data...
CommandLineAPIHost.h Loading commit data...
CommandLineAPIHost.idl Loading commit data...
CommandLineAPIModule.cpp Loading commit data...
CommandLineAPIModule.h Loading commit data...
CommandLineAPIModuleSource.js Loading commit data...
ConsoleAPITypes.h Loading commit data...
ConsoleMessage.cpp Loading commit data...
ConsoleMessage.h Loading commit data...
ContentSearchUtils.cpp Loading commit data...
ContentSearchUtils.h Loading commit data...
DOMEditor.cpp Loading commit data...
DOMEditor.h Loading commit data...
DOMPatchSupport.cpp Loading commit data...
DOMPatchSupport.h Loading commit data...
IdentifiersFactory.cpp Loading commit data...
IdentifiersFactory.h Loading commit data...
InjectedScriptCanvasModule.cpp Loading commit data...
InjectedScriptCanvasModule.h Loading commit data...
InjectedScriptCanvasModuleSource.js Loading commit data...
InspectorAllInOne.cpp Loading commit data...
InspectorApplicationCacheAgent.cpp Loading commit data...
InspectorApplicationCacheAgent.h Loading commit data...
InspectorCSSAgent.cpp Loading commit data...
InspectorCSSAgent.h Loading commit data...
InspectorCanvasAgent.cpp Loading commit data...
InspectorCanvasAgent.h Loading commit data...
InspectorCanvasInstrumentation.h Loading commit data...
InspectorClient.cpp Loading commit data...
InspectorClient.h Loading commit data...
InspectorConsoleAgent.cpp Loading commit data...
InspectorConsoleAgent.h Loading commit data...
InspectorConsoleInstrumentation.h Loading commit data...
InspectorController.cpp Loading commit data...
InspectorController.h Loading commit data...
InspectorCounters.cpp Loading commit data...
InspectorCounters.h Loading commit data...
InspectorDOMAgent.cpp Loading commit data...
InspectorDOMAgent.h Loading commit data...
InspectorDOMDebuggerAgent.cpp Loading commit data...
InspectorDOMDebuggerAgent.h Loading commit data...
InspectorDOMStorageAgent.cpp Loading commit data...
InspectorDOMStorageAgent.h Loading commit data...
InspectorDatabaseAgent.cpp Loading commit data...
InspectorDatabaseAgent.h Loading commit data...
InspectorDatabaseInstrumentation.h Loading commit data...
InspectorDatabaseResource.cpp Loading commit data...
InspectorDatabaseResource.h Loading commit data...
InspectorDebuggerAgent.cpp Loading commit data...
InspectorDebuggerAgent.h Loading commit data...
InspectorForwarding.h Loading commit data...
InspectorFrontendClient.h Loading commit data...
InspectorFrontendClientLocal.cpp Loading commit data...
InspectorFrontendClientLocal.h Loading commit data...
InspectorFrontendHost.cpp Loading commit data...
InspectorFrontendHost.h Loading commit data...
InspectorFrontendHost.idl Loading commit data...
InspectorHeapProfilerAgent.cpp Loading commit data...
InspectorHeapProfilerAgent.h Loading commit data...
InspectorHistory.cpp Loading commit data...
InspectorHistory.h Loading commit data...
InspectorIndexedDBAgent.cpp Loading commit data...
InspectorIndexedDBAgent.h Loading commit data...
InspectorInputAgent.cpp Loading commit data...
InspectorInputAgent.h Loading commit data...
InspectorInstrumentation.cpp Loading commit data...
InspectorInstrumentation.h Loading commit data...
InspectorInstrumentationCookie.cpp Loading commit data...
InspectorInstrumentationCookie.h Loading commit data...
InspectorLayerTreeAgent.cpp Loading commit data...
InspectorLayerTreeAgent.h Loading commit data...
InspectorMemoryAgent.cpp Loading commit data...
InspectorMemoryAgent.h Loading commit data...
InspectorNodeFinder.cpp Loading commit data...
InspectorNodeFinder.h Loading commit data...
InspectorOverlay.cpp Loading commit data...
InspectorOverlay.h Loading commit data...
InspectorOverlayPage.css Loading commit data...
InspectorOverlayPage.html Loading commit data...
InspectorOverlayPage.js Loading commit data...
InspectorPageAgent.cpp Loading commit data...
InspectorPageAgent.h Loading commit data...
InspectorProfilerAgent.cpp Loading commit data...
InspectorProfilerAgent.h Loading commit data...
InspectorResourceAgent.cpp Loading commit data...
InspectorResourceAgent.h Loading commit data...
InspectorRuntimeAgent.cpp Loading commit data...
InspectorRuntimeAgent.h Loading commit data...
InspectorStyleSheet.cpp Loading commit data...
InspectorStyleSheet.h Loading commit data...
InspectorStyleTextEditor.cpp Loading commit data...
InspectorStyleTextEditor.h Loading commit data...
InspectorTimelineAgent.cpp Loading commit data...
InspectorTimelineAgent.h Loading commit data...
InspectorWebAgentBase.h Loading commit data...
InspectorWorkerAgent.cpp Loading commit data...
InspectorWorkerAgent.h Loading commit data...
InspectorWorkerResource.h Loading commit data...
InstrumentingAgents.cpp Loading commit data...
InstrumentingAgents.h Loading commit data...
JavaScriptCallFrame.idl Loading commit data...
NetworkResourcesData.cpp Loading commit data...
NetworkResourcesData.h Loading commit data...
PageConsoleAgent.cpp Loading commit data...
PageConsoleAgent.h Loading commit data...
PageDebuggerAgent.cpp Loading commit data...
PageDebuggerAgent.h Loading commit data...
PageInjectedScriptHost.cpp Loading commit data...
PageInjectedScriptHost.h Loading commit data...
PageInjectedScriptManager.cpp Loading commit data...
PageInjectedScriptManager.h Loading commit data...
PageRuntimeAgent.cpp Loading commit data...
PageRuntimeAgent.h Loading commit data...
ScriptArguments.cpp Loading commit data...
ScriptArguments.h Loading commit data...
ScriptBreakpoint.h Loading commit data...
ScriptCallFrame.cpp Loading commit data...
ScriptCallFrame.h Loading commit data...
ScriptCallStack.cpp Loading commit data...
ScriptCallStack.h Loading commit data...
ScriptDebugListener.h Loading commit data...
ScriptProfile.idl Loading commit data...
ScriptProfileNode.idl Loading commit data...
TimelineRecordFactory.cpp Loading commit data...
TimelineRecordFactory.h Loading commit data...
WorkerConsoleAgent.cpp Loading commit data...
WorkerConsoleAgent.h Loading commit data...
WorkerDebuggerAgent.cpp Loading commit data...
WorkerDebuggerAgent.h Loading commit data...
WorkerInspectorController.cpp Loading commit data...
WorkerInspectorController.h Loading commit data...
WorkerRuntimeAgent.cpp Loading commit data...
WorkerRuntimeAgent.h Loading commit data...
combine-javascript-resources.pl Loading commit data...