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

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

Issue 2646133002: Add offset contributed to sticky position box rect by location containers (Closed)
Patch Set: Add localToAncestorQuadWithoutTransforms and use container and sticky box rect offsets. Created 3 years, 10 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. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc.
7 * All rights reserved. 7 * All rights reserved.
8 * Copyright (C) 2009 Google Inc. All rights reserved. 8 * Copyright (C) 2009 Google Inc. All rights reserved.
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 1208 matching lines...) Expand 10 before | Expand all | Expand 10 after
1219 const LayoutBoxModelObject* ancestor, 1219 const LayoutBoxModelObject* ancestor,
1220 MapCoordinatesFlags = 0) const; 1220 MapCoordinatesFlags = 0) const;
1221 FloatPoint localToAncestorPoint(const FloatPoint&, 1221 FloatPoint localToAncestorPoint(const FloatPoint&,
1222 const LayoutBoxModelObject* ancestor, 1222 const LayoutBoxModelObject* ancestor,
1223 MapCoordinatesFlags = 0) const; 1223 MapCoordinatesFlags = 0) const;
1224 void localToAncestorRects(Vector<LayoutRect>&, 1224 void localToAncestorRects(Vector<LayoutRect>&,
1225 const LayoutBoxModelObject* ancestor, 1225 const LayoutBoxModelObject* ancestor,
1226 const LayoutPoint& preOffset, 1226 const LayoutPoint& preOffset,
1227 const LayoutPoint& postOffset) const; 1227 const LayoutPoint& postOffset) const;
1228 1228
1229 // Convert a local quad into the coordinate system of container, not
1230 // include transforms. See localToAncestorQuad for details.
1231 FloatQuad localToAncestorQuadWithoutTransforms(
1232 const FloatQuad&,
1233 const LayoutBoxModelObject* ancestor,
1234 MapCoordinatesFlags = 0) const;
1235
1229 // Return the transformation matrix to map points from local to the coordinate 1236 // Return the transformation matrix to map points from local to the coordinate
1230 // system of a container, taking transforms into account. 1237 // system of a container, taking transforms into account.
1231 // Passing null for |ancestor| behaves the same as localToAncestorQuad. 1238 // Passing null for |ancestor| behaves the same as localToAncestorQuad.
1232 TransformationMatrix localToAncestorTransform( 1239 TransformationMatrix localToAncestorTransform(
1233 const LayoutBoxModelObject* ancestor, 1240 const LayoutBoxModelObject* ancestor,
1234 MapCoordinatesFlags = 0) const; 1241 MapCoordinatesFlags = 0) const;
1235 TransformationMatrix localToAbsoluteTransform( 1242 TransformationMatrix localToAbsoluteTransform(
1236 MapCoordinatesFlags mode = 0) const { 1243 MapCoordinatesFlags mode = 0) const {
1237 return localToAncestorTransform(nullptr, mode); 1244 return localToAncestorTransform(nullptr, mode);
1238 } 1245 }
(...skipping 1461 matching lines...) Expand 10 before | Expand all | Expand 10 after
2700 CORE_EXPORT void showLineTree(const blink::LayoutObject*); 2707 CORE_EXPORT void showLineTree(const blink::LayoutObject*);
2701 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1); 2708 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1);
2702 // We don't make object2 an optional parameter so that showLayoutTree 2709 // We don't make object2 an optional parameter so that showLayoutTree
2703 // can be called from gdb easily. 2710 // can be called from gdb easily.
2704 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1, 2711 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1,
2705 const blink::LayoutObject* object2); 2712 const blink::LayoutObject* object2);
2706 2713
2707 #endif 2714 #endif
2708 2715
2709 #endif // LayoutObject_h 2716 #endif // LayoutObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698