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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutObject.h

Issue 1955703004: Don't apply container flip when computing offset to transformed ancestor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com)
6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2009 Google Inc. All rights reserved. 7 * Copyright (C) 2009 Google Inc. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 }; 86 };
87 87
88 enum MarkingBehavior { 88 enum MarkingBehavior {
89 MarkOnlyThis, 89 MarkOnlyThis,
90 MarkContainerChain, 90 MarkContainerChain,
91 }; 91 };
92 92
93 enum MapCoordinatesMode { 93 enum MapCoordinatesMode {
94 IsFixed = 1 << 0, 94 IsFixed = 1 << 0,
95 UseTransforms = 1 << 1, 95 UseTransforms = 1 << 1,
96
97 // When walking up the containing block chain, applies a container flip for the first
98 // element found, if any, for which isFlippedBlocksWritingMode is true. This option should
99 // generally be used when mapping a source rect in the "physical coordinates with flipped
100 // block-flow" coordinate space (see LayoutBoxModelObject.h) to one in a phy sical
101 // destination space.
96 ApplyContainerFlip = 1 << 2, 102 ApplyContainerFlip = 1 << 2,
97 TraverseDocumentBoundaries = 1 << 3, 103 TraverseDocumentBoundaries = 1 << 3,
98 104
99 // Applies to LayoutView::mapLocalToAncestor() and LayoutView::mapToVisualRe ctInAncestorSpace() 105 // Applies to LayoutView::mapLocalToAncestor() and LayoutView::mapToVisualRe ctInAncestorSpace()
100 // only, to indicate the input point or rect is in frame coordinates instead of frame contents 106 // only, to indicate the input point or rect is in frame coordinates instead of frame contents
101 // coordinates. This disables view clipping and scroll offset adjustment. 107 // coordinates. This disables view clipping and scroll offset adjustment.
102 // TODO(wangxianzhu): Remove this when root-layer-scrolls launches. 108 // TODO(wangxianzhu): Remove this when root-layer-scrolls launches.
103 InputIsInFrameCoordinates = 1 << 4, 109 InputIsInFrameCoordinates = 1 << 4,
104 }; 110 };
105 typedef unsigned MapCoordinatesFlags; 111 typedef unsigned MapCoordinatesFlags;
(...skipping 2066 matching lines...) Expand 10 before | Expand all | Expand 10 after
2172 void showTree(const blink::LayoutObject*); 2178 void showTree(const blink::LayoutObject*);
2173 void showLineTree(const blink::LayoutObject*); 2179 void showLineTree(const blink::LayoutObject*);
2174 void showLayoutTree(const blink::LayoutObject* object1); 2180 void showLayoutTree(const blink::LayoutObject* object1);
2175 // We don't make object2 an optional parameter so that showLayoutTree 2181 // We don't make object2 an optional parameter so that showLayoutTree
2176 // can be called from gdb easily. 2182 // can be called from gdb easily.
2177 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2); 2183 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2);
2178 2184
2179 #endif 2185 #endif
2180 2186
2181 #endif // LayoutObject_h 2187 #endif // LayoutObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698