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

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

Issue 1154493002: Cleanup: Get rid of LayoutBlock::offsetFromLogicalTopOfFirstPage(). (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
« no previous file with comments | « Source/core/layout/LayoutBlock.h ('k') | Source/core/layout/LayoutBox.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutBlock.cpp
diff --git a/Source/core/layout/LayoutBlock.cpp b/Source/core/layout/LayoutBlock.cpp
index d1a61fd3345cb31e0d994a61f1afe1da5ef30bfa..1a01cfed898ceb3101a53824f54799ae8acc9d00 100644
--- a/Source/core/layout/LayoutBlock.cpp
+++ b/Source/core/layout/LayoutBlock.cpp
@@ -3642,19 +3642,6 @@ void LayoutBlock::updateMinimumPageHeight(LayoutUnit offset, LayoutUnit minHeigh
colInfo->updateMinimumColumnHeight(minHeight);
}
-LayoutUnit LayoutBlock::offsetFromLogicalTopOfFirstPage() const
-{
- LayoutState* layoutState = view()->layoutState();
- RELEASE_ASSERT(layoutState);
- if (!layoutState->isPaginated())
- return LayoutUnit();
- // It would be possible to remove the requirement that this block be the one currently being
- // laid out, but nobody needs that at the moment.
- ASSERT(layoutState->layoutObject() == this);
- LayoutSize offsetDelta = layoutState->layoutOffset() - layoutState->pageOffset();
- return isHorizontalWritingMode() ? offsetDelta.height() : offsetDelta.width();
-}
-
LayoutUnit LayoutBlock::collapsedMarginBeforeForChild(const LayoutBox& child) const
{
// If the child has the same directionality as we do, then we can just return its
« no previous file with comments | « Source/core/layout/LayoutBlock.h ('k') | Source/core/layout/LayoutBox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698