| OLD | NEW |
| 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 926 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 937 FloatQuad localToAbsoluteQuad(const FloatQuad& quad, MapCoordinatesFlags mod
e = 0, bool* wasFixed = nullptr) const | 937 FloatQuad localToAbsoluteQuad(const FloatQuad& quad, MapCoordinatesFlags mod
e = 0, bool* wasFixed = nullptr) const |
| 938 { | 938 { |
| 939 return localToContainerQuad(quad, 0, mode, wasFixed); | 939 return localToContainerQuad(quad, 0, mode, wasFixed); |
| 940 } | 940 } |
| 941 // Convert an absolute quad to local coordinates. | 941 // Convert an absolute quad to local coordinates. |
| 942 FloatQuad absoluteToLocalQuad(const FloatQuad&, MapCoordinatesFlags mode = 0
) const; | 942 FloatQuad absoluteToLocalQuad(const FloatQuad&, MapCoordinatesFlags mode = 0
) const; |
| 943 | 943 |
| 944 // Convert a local quad into the coordinate system of container, taking tran
sforms into account. | 944 // Convert a local quad into the coordinate system of container, taking tran
sforms into account. |
| 945 FloatQuad localToContainerQuad(const FloatQuad&, const LayoutBoxModelObject*
paintInvalidationContainer, MapCoordinatesFlags = 0, bool* wasFixed = nullptr)
const; | 945 FloatQuad localToContainerQuad(const FloatQuad&, const LayoutBoxModelObject*
paintInvalidationContainer, MapCoordinatesFlags = 0, bool* wasFixed = nullptr)
const; |
| 946 FloatPoint localToContainerPoint(const FloatPoint&, const LayoutBoxModelObje
ct* paintInvalidationContainer, MapCoordinatesFlags = 0, bool* wasFixed = nullpt
r, const PaintInvalidationState* = nullptr) const; | 946 FloatPoint localToContainerPoint(const FloatPoint&, const LayoutBoxModelObje
ct* paintInvalidationContainer, MapCoordinatesFlags = 0, bool* wasFixed = nullpt
r, const PaintInvalidationState* = nullptr) const; |
| 947 void localToContainerRects(Vector<LayoutRect>&, const LayoutBoxModelObject*
paintInvalidationContainer, const LayoutPoint& preOffset, const LayoutPoint& pos
tOffset) const; |
| 947 | 948 |
| 948 // Convert a local point into the coordinate system of backing coordinates.
Also returns the backing layer if needed. | 949 // Convert a local point into the coordinate system of backing coordinates.
Also returns the backing layer if needed. |
| 949 FloatPoint localToInvalidationBackingPoint(const LayoutPoint&, PaintLayer**
backingLayer = nullptr); | 950 FloatPoint localToInvalidationBackingPoint(const LayoutPoint&, PaintLayer**
backingLayer = nullptr); |
| 950 | 951 |
| 951 // Return the offset from the container() layoutObject (excluding transforms
). In multi-column layout, | 952 // Return the offset from the container() layoutObject (excluding transforms
). In multi-column layout, |
| 952 // different offsets apply at different points, so return the offset that ap
plies to the given point. | 953 // different offsets apply at different points, so return the offset that ap
plies to the given point. |
| 953 virtual LayoutSize offsetFromContainer(const LayoutObject*, const LayoutPoin
t&, bool* offsetDependsOnPoint = nullptr) const; | 954 virtual LayoutSize offsetFromContainer(const LayoutObject*, const LayoutPoin
t&, bool* offsetDependsOnPoint = nullptr) const; |
| 954 // Return the offset from an object up the container() chain. Asserts that n
one of the intermediate objects have transforms. | 955 // Return the offset from an object up the container() chain. Asserts that n
one of the intermediate objects have transforms. |
| 955 LayoutSize offsetFromAncestorContainer(const LayoutObject*) const; | 956 LayoutSize offsetFromAncestorContainer(const LayoutObject*) const; |
| 956 | 957 |
| (...skipping 1083 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2040 void showTree(const blink::LayoutObject*); | 2041 void showTree(const blink::LayoutObject*); |
| 2041 void showLineTree(const blink::LayoutObject*); | 2042 void showLineTree(const blink::LayoutObject*); |
| 2042 void showLayoutTree(const blink::LayoutObject* object1); | 2043 void showLayoutTree(const blink::LayoutObject* object1); |
| 2043 // We don't make object2 an optional parameter so that showLayoutTree | 2044 // We don't make object2 an optional parameter so that showLayoutTree |
| 2044 // can be called from gdb easily. | 2045 // can be called from gdb easily. |
| 2045 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec
t* object2); | 2046 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec
t* object2); |
| 2046 | 2047 |
| 2047 #endif | 2048 #endif |
| 2048 | 2049 |
| 2049 #endif // LayoutObject_h | 2050 #endif // LayoutObject_h |
| OLD | NEW |