OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 | 284 |
285 if (updateLogicalWidthAndColumnWidth()) | 285 if (updateLogicalWidthAndColumnWidth()) |
286 relayoutChildren = true; | 286 relayoutChildren = true; |
287 | 287 |
288 rebuildFloatsFromIntruding(); | 288 rebuildFloatsFromIntruding(); |
289 | 289 |
290 bool pageLogicalHeightChanged = false; | 290 bool pageLogicalHeightChanged = false; |
291 bool hasSpecifiedPageLogicalHeight = false; | 291 bool hasSpecifiedPageLogicalHeight = false; |
292 checkForPaginationLogicalHeightChange(pageLogicalHeight, pageLogicalHeightCh
anged, hasSpecifiedPageLogicalHeight); | 292 checkForPaginationLogicalHeightChange(pageLogicalHeight, pageLogicalHeightCh
anged, hasSpecifiedPageLogicalHeight); |
293 | 293 |
294 LayoutStateMaintainer statePusher(this, locationOffset(), hasColumns() || ha
sTransform() || hasReflection() || style()->isFlippedBlocksWritingMode(), pageLo
gicalHeight, pageLogicalHeightChanged, columnInfo()); | 294 LayoutStateMaintainer statePusher(this, locationOffset(), pageLogicalHeight,
pageLogicalHeightChanged, columnInfo()); |
295 | 295 |
296 // Regions changing widths can force us to relayout our children. | 296 // Regions changing widths can force us to relayout our children. |
297 RenderFlowThread* flowThread = flowThreadContainingBlock(); | 297 RenderFlowThread* flowThread = flowThreadContainingBlock(); |
298 if (updateRegionsAndShapesLogicalSize(flowThread)) | 298 if (updateRegionsAndShapesLogicalSize(flowThread)) |
299 relayoutChildren = true; | 299 relayoutChildren = true; |
300 | 300 |
301 // We use four values, maxTopPos, maxTopNeg, maxBottomPos, and maxBottomNeg,
to track | 301 // We use four values, maxTopPos, maxTopNeg, maxBottomPos, and maxBottomNeg,
to track |
302 // our current maximal positive and negative margins. These values are used
when we | 302 // our current maximal positive and negative margins. These values are used
when we |
303 // are collapsed with adjacent blocks, so for example, if you have block A a
nd B | 303 // are collapsed with adjacent blocks, so for example, if you have block A a
nd B |
304 // collapsing together, then you'd take the maximal positive margin from bot
h A and B | 304 // collapsing together, then you'd take the maximal positive margin from bot
h A and B |
(...skipping 2427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2732 RenderBlockFlow::RenderBlockFlowRareData& RenderBlockFlow::ensureRareData() | 2732 RenderBlockFlow::RenderBlockFlowRareData& RenderBlockFlow::ensureRareData() |
2733 { | 2733 { |
2734 if (m_rareData) | 2734 if (m_rareData) |
2735 return *m_rareData; | 2735 return *m_rareData; |
2736 | 2736 |
2737 m_rareData = adoptPtr(new RenderBlockFlowRareData(this)); | 2737 m_rareData = adoptPtr(new RenderBlockFlowRareData(this)); |
2738 return *m_rareData; | 2738 return *m_rareData; |
2739 } | 2739 } |
2740 | 2740 |
2741 } // namespace WebCore | 2741 } // namespace WebCore |
OLD | NEW |