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

Side by Side Diff: third_party/WebKit/Source/core/layout/ViewFragmentationContext.cpp

Issue 1492143002: Add support for printing multicol containers, and enable it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: code review Created 5 years 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/core/layout/ViewFragmentationContext.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "config.h"
6
7 #include "core/layout/ViewFragmentationContext.h"
8
9 #include "core/layout/LayoutView.h"
10
11 namespace blink {
12
13 bool ViewFragmentationContext::isFragmentainerLogicalHeightKnown()
14 {
15 ASSERT(m_view.pageLogicalHeight());
16 return true;
17 }
18
19 LayoutUnit ViewFragmentationContext::fragmentainerLogicalHeightAt(LayoutUnit)
20 {
21 ASSERT(m_view.pageLogicalHeight());
22 return m_view.pageLogicalHeight();
23 }
24
25 LayoutUnit ViewFragmentationContext::remainingLogicalHeightAt(LayoutUnit blockOf fset)
26 {
27 LayoutUnit pageLogicalHeight = m_view.pageLogicalHeight();
28 return pageLogicalHeight - intMod(blockOffset, pageLogicalHeight);
29 }
30
31 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/ViewFragmentationContext.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698