Index: Source/core/paint/DeprecatedPaintLayer.cpp |
diff --git a/Source/core/paint/DeprecatedPaintLayer.cpp b/Source/core/paint/DeprecatedPaintLayer.cpp |
index 4f930e09e83c7c3e2e6eb8c0f45159eea8ca9e38..5d70439d08a9bafe87cde8292b7d740f4ab4abf3 100644 |
--- a/Source/core/paint/DeprecatedPaintLayer.cpp |
+++ b/Source/core/paint/DeprecatedPaintLayer.cpp |
@@ -479,17 +479,12 @@ static void convertFromFlowThreadToVisualBoundingBoxInAncestor(const DeprecatedP |
rect.moveBy(-ancestorLayer->visualOffsetFromAncestor(paginationLayer)); |
} |
-bool DeprecatedPaintLayer::useRegionBasedColumns() const |
-{ |
- return layoutObject()->document().regionBasedColumnsEnabled(); |
-} |
- |
void DeprecatedPaintLayer::updatePaginationRecursive(bool needsPaginationUpdate) |
{ |
m_isPaginated = false; |
m_enclosingPaginationLayer = 0; |
- if (useRegionBasedColumns() && layoutObject()->isLayoutFlowThread()) |
+ if (RuntimeEnabledFeatures::regionBasedColumnsEnabled() && layoutObject()->isLayoutFlowThread()) |
needsPaginationUpdate = true; |
if (needsPaginationUpdate) |
@@ -504,7 +499,7 @@ void DeprecatedPaintLayer::updatePaginationRecursive(bool needsPaginationUpdate) |
void DeprecatedPaintLayer::updatePagination() |
{ |
- bool usesRegionBasedColumns = useRegionBasedColumns(); |
+ bool usesRegionBasedColumns = RuntimeEnabledFeatures::regionBasedColumnsEnabled(); |
if ((!usesRegionBasedColumns && compositingState() != NotComposited) || !parent()) |
return; // FIXME: For now the LayoutView can't be paginated. Eventually printing will move to a model where it is though. |
@@ -871,7 +866,7 @@ bool DeprecatedPaintLayer::updateLayerPosition() |
// implementation. The compositing system doesn't understand columns and we're hacking |
// around that fact by faking the position of the Layers when we think we'll end up |
// being composited. |
- if (hasStyleDeterminedDirectCompositingReasons() && !useRegionBasedColumns()) { |
+ if (hasStyleDeterminedDirectCompositingReasons() && !RuntimeEnabledFeatures::regionBasedColumnsEnabled()) { |
// FIXME: Composited layers ignore pagination, so about the best we can do is make sure they're offset into the appropriate column. |
// They won't split across columns properly. |
if (!parent()->layoutObject()->hasColumns() && parent()->layoutObject()->isDocumentElement() && layoutObject()->view()->hasColumns()) |
@@ -2463,7 +2458,7 @@ LayoutRect DeprecatedPaintLayer::boundingBoxForCompositing(const DeprecatedPaint |
// The layer created for the LayoutFlowThread is just a helper for painting and hit-testing, |
// and should not contribute to the bounding box. The LayoutMultiColumnSets will contribute |
// the correct size for the layout content of the multicol container. |
- if (useRegionBasedColumns() && layoutObject()->isLayoutFlowThread()) |
+ if (RuntimeEnabledFeatures::regionBasedColumnsEnabled() && layoutObject()->isLayoutFlowThread()) |
return LayoutRect(); |
LayoutRect result = clipper().localClipRect(); |