Commit 71c8718d authored by robhogan@gmail.com's avatar robhogan@gmail.com

previousRegionLogicalHeight not getting updated

previousRegionLogicalHeight() was not getting updated in RenderFlowThread::validateRegions() and 
previousRegionLogicalWidth() was updated but not used.

Review URL: https://codereview.chromium.org/147653002

git-svn-id: svn://svn.chromium.org/blink/trunk@170589 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 51ab234b
......@@ -126,13 +126,11 @@ void RenderFlowThread::validateRegions()
m_regionsHaveUniformLogicalHeight = true;
if (hasRegions()) {
LayoutUnit previousRegionLogicalWidth = 0;
LayoutUnit previousRegionLogicalHeight = 0;
bool firstRegionVisited = false;
for (RenderRegionList::iterator iter = m_regionList.begin(); iter != m_regionList.end(); ++iter) {
RenderRegion* region = *iter;
LayoutUnit regionLogicalWidth = region->pageLogicalWidth();
LayoutUnit regionLogicalHeight = region->pageLogicalHeight();
if (!firstRegionVisited) {
......@@ -142,7 +140,7 @@ void RenderFlowThread::validateRegions()
m_regionsHaveUniformLogicalHeight = false;
}
previousRegionLogicalWidth = regionLogicalWidth;
previousRegionLogicalHeight = regionLogicalHeight;
}
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment