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

Unified Diff: third_party/WebKit/Source/core/layout/ViewFragmentationContext.h

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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/ViewFragmentationContext.h
diff --git a/third_party/WebKit/Source/core/layout/ViewFragmentationContext.h b/third_party/WebKit/Source/core/layout/ViewFragmentationContext.h
new file mode 100644
index 0000000000000000000000000000000000000000..75cfb4fbe55160546c20ee75bc94116d1ca68b6c
--- /dev/null
+++ b/third_party/WebKit/Source/core/layout/ViewFragmentationContext.h
@@ -0,0 +1,27 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ViewFragmentationContext_h
+#define ViewFragmentationContext_h
+
+#include "core/layout/FragmentationContext.h"
+
+namespace blink {
+
+class LayoutView;
+
+class ViewFragmentationContext final : public FragmentationContext {
+public:
+ ViewFragmentationContext(LayoutView& view) : m_view(view) { }
+ bool isFragmentainerLogicalHeightKnown() final;
+ LayoutUnit fragmentainerLogicalHeightAt(LayoutUnit blockOffset) final;
+ LayoutUnit remainingLogicalHeightAt(LayoutUnit blockOffset) final;
+
+private:
+ LayoutView& m_view;
+};
+
+} // namespace blink
+
+#endif // ViewFragmentationContext_h

Powered by Google App Engine
This is Rietveld 408576698