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

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

Issue 1198433002: *** NOT FOR LANDING *** mapLocalToContainer and offsetFromContainer cleanup. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: There's also work that LayoutBoxModelObject::offsetFromContainer could do instead of LayoutObject. Created 5 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/layout/LayoutMultiColumnFlowThread.cpp ('k') | Source/core/layout/LayoutObject.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 746 matching lines...) Expand 10 before | Expand all | Expand 10 after
757 // Convert an absolute quad to local coordinates. 757 // Convert an absolute quad to local coordinates.
758 FloatQuad absoluteToLocalQuad(const FloatQuad&, MapCoordinatesFlags mode = 0 ) const; 758 FloatQuad absoluteToLocalQuad(const FloatQuad&, MapCoordinatesFlags mode = 0 ) const;
759 759
760 // Convert a local quad into the coordinate system of container, taking tran sforms into account. 760 // Convert a local quad into the coordinate system of container, taking tran sforms into account.
761 FloatQuad localToContainerQuad(const FloatQuad&, const LayoutBoxModelObject* paintInvalidationContainer, MapCoordinatesFlags = 0, bool* wasFixed = nullptr) const; 761 FloatQuad localToContainerQuad(const FloatQuad&, const LayoutBoxModelObject* paintInvalidationContainer, MapCoordinatesFlags = 0, bool* wasFixed = nullptr) const;
762 FloatPoint localToContainerPoint(const FloatPoint&, const LayoutBoxModelObje ct* paintInvalidationContainer, MapCoordinatesFlags = 0, bool* wasFixed = nullpt r, const PaintInvalidationState* = nullptr) const; 762 FloatPoint localToContainerPoint(const FloatPoint&, const LayoutBoxModelObje ct* paintInvalidationContainer, MapCoordinatesFlags = 0, bool* wasFixed = nullpt r, const PaintInvalidationState* = nullptr) const;
763 763
764 // Convert a local point into the coordinate system of backing coordinates. Also returns the backing layer if needed. 764 // Convert a local point into the coordinate system of backing coordinates. Also returns the backing layer if needed.
765 FloatPoint localToInvalidationBackingPoint(const LayoutPoint&, DeprecatedPai ntLayer** backingLayer = nullptr); 765 FloatPoint localToInvalidationBackingPoint(const LayoutPoint&, DeprecatedPai ntLayer** backingLayer = nullptr);
766 766
767 // Return the offset from the container() layoutObject (excluding transforms ). In multi-column layout, 767 // Return the offset from the container() layoutObject (excluding transforms and multicol).
768 // different offsets apply at different points, so return the offset that ap plies to the given point. 768 virtual LayoutSize offsetFromContainer(const LayoutObject*) const;
769 virtual LayoutSize offsetFromContainer(const LayoutObject*, const LayoutPoin t&, bool* offsetDependsOnPoint = nullptr) const;
770 // Return the offset from an object up the container() chain. Asserts that n one of the intermediate objects have transforms. 769 // Return the offset from an object up the container() chain. Asserts that n one of the intermediate objects have transforms.
771 LayoutSize offsetFromAncestorContainer(const LayoutObject*) const; 770 LayoutSize offsetFromAncestorContainer(const LayoutObject*) const;
772 771
773 virtual void absoluteRects(Vector<IntRect>&, const LayoutPoint&) const { } 772 virtual void absoluteRects(Vector<IntRect>&, const LayoutPoint&) const { }
774 773
775 FloatRect absoluteBoundingBoxFloatRect() const; 774 FloatRect absoluteBoundingBoxFloatRect() const;
776 // This returns an IntRect enclosing this object. If this object has an 775 // This returns an IntRect enclosing this object. If this object has an
777 // integral size and the position has fractional values, the resultant 776 // integral size and the position has fractional values, the resultant
778 // IntRect can be larger than the integral size. 777 // IntRect can be larger than the integral size.
779 IntRect absoluteBoundingBoxRect() const; 778 IntRect absoluteBoundingBoxRect() const;
(...skipping 878 matching lines...) Expand 10 before | Expand all | Expand 10 after
1658 void showTree(const blink::LayoutObject*); 1657 void showTree(const blink::LayoutObject*);
1659 void showLineTree(const blink::LayoutObject*); 1658 void showLineTree(const blink::LayoutObject*);
1660 void showLayoutTree(const blink::LayoutObject* object1); 1659 void showLayoutTree(const blink::LayoutObject* object1);
1661 // We don't make object2 an optional parameter so that showLayoutTree 1660 // We don't make object2 an optional parameter so that showLayoutTree
1662 // can be called from gdb easily. 1661 // can be called from gdb easily.
1663 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2); 1662 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2);
1664 1663
1665 #endif 1664 #endif
1666 1665
1667 #endif // LayoutObject_h 1666 #endif // LayoutObject_h
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutMultiColumnFlowThread.cpp ('k') | Source/core/layout/LayoutObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698