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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutObject.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
Index: third_party/WebKit/Source/core/layout/LayoutObject.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.h b/third_party/WebKit/Source/core/layout/LayoutObject.h
index 9bc41a61d3d939c8079040d0a86a59d45a090474..506e3f6a18ce584e8c81dfdbb9e1ec0b38ceaac0 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.h
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.h
@@ -33,6 +33,7 @@
#include "core/editing/PositionWithAffinity.h"
#include "core/fetch/ImageResourceObserver.h"
#include "core/layout/LayoutObjectChildList.h"
+#include "core/layout/MapCoordinatesFlags.h"
#include "core/layout/PaintInvalidationState.h"
#include "core/layout/ScrollAlignment.h"
#include "core/layout/SubtreeLayoutScope.h"
@@ -80,27 +81,6 @@ enum MarkingBehavior {
MarkContainerChain,
};
-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;
-
enum ScheduleRelayoutBehavior { ScheduleRelayout, DontScheduleRelayout };
const LayoutUnit& caretWidth();
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutGeometryMap.h ('k') | third_party/WebKit/Source/core/layout/MapCoordinatesFlags.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698