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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObject.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 2016 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 #ifndef MapCoordinatesFlags_h
6 #define MapCoordinatesFlags_h
7
8 namespace blink {
9
10 enum MapCoordinatesMode {
11 IsFixed = 1 << 0,
12 UseTransforms = 1 << 1,
13
14 // When walking up the containing block chain, applies a container flip for
15 // the first element found, if any, for which isFlippedBlocksWritingMode is
16 // true. This option should generally be used when mapping a source rect in
17 // the "physical coordinates with flipped block-flow" coordinate space (see
18 // LayoutBoxModelObject.h) to one in a physical destination space.
19 ApplyContainerFlip = 1 << 2,
20 TraverseDocumentBoundaries = 1 << 3,
21
22 // Applies to LayoutView::mapLocalToAncestor() and LayoutView::
23 // mapToVisualRectInAncestorSpace() only, to indicate the input point or rect
24 // is in frame coordinates instead of frame contents coordinates. This
25 // disables view clipping and scroll offset adjustment.
26 // TODO(wangxianzhu): Remove this when root-layer-scrolls launches.
27 InputIsInFrameCoordinates = 1 << 4,
28 };
29 typedef unsigned MapCoordinatesFlags;
30
31 } // namespace blink
32
33 #endif // MapCoordinatesFlags_h
OLDNEW
« 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