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

Unified Diff: Source/core/paint/DeprecatedPaintLayer.cpp

Issue 1028383002: Enable new multicol for testing and experimental web platform features. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Need to mark virtual/slimmingpaint/svg/text/columns-do-not-apply.html as failing too. Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/paint/DeprecatedPaintLayer.h ('k') | Source/web/WebSettingsImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/DeprecatedPaintLayer.cpp
diff --git a/Source/core/paint/DeprecatedPaintLayer.cpp b/Source/core/paint/DeprecatedPaintLayer.cpp
index b8b9445a4982bedc21e676c3f7ff7ac8269f7dea..4252b9c8fbb2690806b3070ae0b33800ca95eb44 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.
@@ -866,7 +861,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())
@@ -2462,7 +2457,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 rendered content of the multicol container.
- if (useRegionBasedColumns() && layoutObject()->isLayoutFlowThread())
+ if (RuntimeEnabledFeatures::regionBasedColumnsEnabled() && layoutObject()->isLayoutFlowThread())
return LayoutRect();
LayoutRect result = clipper().localClipRect();
« no previous file with comments | « Source/core/paint/DeprecatedPaintLayer.h ('k') | Source/web/WebSettingsImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698