OLD | NEW |
(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 |
OLD | NEW |