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

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 a logical space to one in a physical
Xianzhu 2016/05/06 22:25:04 "logical space" is not accurate. It's the third co
chrishtr 2016/05/09 16:47:43 Done.
100 // destination space.
96 ApplyContainerFlip = 1 << 2, 101 ApplyContainerFlip = 1 << 2,
97 TraverseDocumentBoundaries = 1 << 3, 102 TraverseDocumentBoundaries = 1 << 3,
98 103
99 // Applies to LayoutView::mapLocalToAncestor() and LayoutView::mapToVisualRe ctInAncestorSpace() 104 // 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 105 // 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. 106 // coordinates. This disables view clipping and scroll offset adjustment.
102 // TODO(wangxianzhu): Remove this when root-layer-scrolls launches. 107 // TODO(wangxianzhu): Remove this when root-layer-scrolls launches.
103 InputIsInFrameCoordinates = 1 << 4, 108 InputIsInFrameCoordinates = 1 << 4,
104 }; 109 };
105 typedef unsigned MapCoordinatesFlags; 110 typedef unsigned MapCoordinatesFlags;
(...skipping 2066 matching lines...) Expand 10 before | Expand all | Expand 10 after
2172 void showTree(const blink::LayoutObject*); 2177 void showTree(const blink::LayoutObject*);
2173 void showLineTree(const blink::LayoutObject*); 2178 void showLineTree(const blink::LayoutObject*);
2174 void showLayoutTree(const blink::LayoutObject* object1); 2179 void showLayoutTree(const blink::LayoutObject* object1);
2175 // We don't make object2 an optional parameter so that showLayoutTree 2180 // We don't make object2 an optional parameter so that showLayoutTree
2176 // can be called from gdb easily. 2181 // can be called from gdb easily.
2177 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2); 2182 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2);
2178 2183
2179 #endif 2184 #endif
2180 2185
2181 #endif // LayoutObject_h 2186 #endif // LayoutObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698