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

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

Issue 2472573002: Move MapCoordinatesMode and MapCoordinatesFlags to a separate header. (Closed)
Patch Set: Created 4 years, 1 month 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 | « third_party/WebKit/Source/core/layout/LayoutObject.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/MapCoordinatesFlags.h
diff --git a/third_party/WebKit/Source/core/layout/MapCoordinatesFlags.h b/third_party/WebKit/Source/core/layout/MapCoordinatesFlags.h
new file mode 100644
index 0000000000000000000000000000000000000000..23b2425d8cc2574beff1ebb207e98a3e15708747
--- /dev/null
+++ b/third_party/WebKit/Source/core/layout/MapCoordinatesFlags.h
@@ -0,0 +1,33 @@
+// Copyright 2016 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 MapCoordinatesFlags_h
+#define MapCoordinatesFlags_h
+
+namespace blink {
+
+enum MapCoordinatesMode {
+ IsFixed = 1 << 0,
+ UseTransforms = 1 << 1,
+
+ // When walking up the containing block chain, applies a container flip for
+ // the first element found, if any, for which isFlippedBlocksWritingMode is
+ // true. This option should generally be used when mapping a source rect in
+ // the "physical coordinates with flipped block-flow" coordinate space (see
+ // LayoutBoxModelObject.h) to one in a physical destination space.
+ ApplyContainerFlip = 1 << 2,
+ TraverseDocumentBoundaries = 1 << 3,
+
+ // Applies to LayoutView::mapLocalToAncestor() and LayoutView::
+ // mapToVisualRectInAncestorSpace() only, to indicate the input point or rect
+ // is in frame coordinates instead of frame contents coordinates. This
+ // disables view clipping and scroll offset adjustment.
+ // TODO(wangxianzhu): Remove this when root-layer-scrolls launches.
+ InputIsInFrameCoordinates = 1 << 4,
+};
+typedef unsigned MapCoordinatesFlags;
+
+} // namespace blink
+
+#endif // MapCoordinatesFlags_h
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObject.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698