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

Unified Diff: Source/core/layout/LayoutView.cpp

Issue 1158183006: Remove the old multicol implementation. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 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
Index: Source/core/layout/LayoutView.cpp
diff --git a/Source/core/layout/LayoutView.cpp b/Source/core/layout/LayoutView.cpp
index 420970ec29130aae75e4a59fb122f13e96c79aa8..e53eae8275ae380c647fc9201e2f3c81c901fcd0 100644
--- a/Source/core/layout/LayoutView.cpp
+++ b/Source/core/layout/LayoutView.cpp
@@ -28,7 +28,6 @@
#include "core/frame/Settings.h"
#include "core/html/HTMLFrameOwnerElement.h"
#include "core/html/HTMLIFrameElement.h"
-#include "core/layout/ColumnInfo.h"
#include "core/layout/HitTestResult.h"
#include "core/layout/LayoutFlowThread.h"
#include "core/layout/LayoutGeometryMap.h"
@@ -152,14 +151,6 @@ void LayoutView::updateLogicalWidth()
setLogicalWidth(viewLogicalWidthForBoxSizing());
}
-LayoutUnit LayoutView::availableLogicalHeight(AvailableLogicalHeightType heightType) const
-{
- // If we have columns, then the available logical height is reduced to the column height.
- if (hasColumns())
- return columnInfo()->columnHeight();
- return LayoutBlockFlow::availableLogicalHeight(heightType);
-}
-
bool LayoutView::isChildAllowed(LayoutObject* child, const ComputedStyle&) const
{
return child->isBox();
@@ -867,20 +858,6 @@ LayoutObject* LayoutView::backgroundLayoutObject() const
return 0;
}
-LayoutRect LayoutView::backgroundRect(LayoutBox* backgroundLayoutObject) const
-{
- if (!hasColumns())
- return LayoutRect(unscaledDocumentRect());
-
- ColumnInfo* columnInfo = this->columnInfo();
- LayoutRect backgroundRect(0, 0, columnInfo->desiredColumnWidth(), columnInfo->columnHeight() * columnInfo->columnCount());
- if (!isHorizontalWritingMode())
- backgroundRect = backgroundRect.transposedRect();
- backgroundLayoutObject->flipForWritingMode(backgroundRect);
-
- return backgroundRect;
-}
-
IntRect LayoutView::documentRect() const
{
FloatRect overflowRect(unscaledDocumentRect());

Powered by Google App Engine
This is Rietveld 408576698