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. | 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 Loading... |
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 792 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2031 } | 2038 } |
2032 | 2039 |
2033 private: | 2040 private: |
2034 // Adjusts a visual rect in the space of |m_previousVisualRect| to be in the | 2041 // Adjusts a visual rect in the space of |m_previousVisualRect| to be in the |
2035 // space of the |paintInvalidationContainer|, if needed. They can be different | 2042 // space of the |paintInvalidationContainer|, if needed. They can be different |
2036 // only if |paintInvalidationContainer| is a composited scroller. | 2043 // only if |paintInvalidationContainer| is a composited scroller. |
2037 void adjustVisualRectForCompositedScrolling( | 2044 void adjustVisualRectForCompositedScrolling( |
2038 LayoutRect&, | 2045 LayoutRect&, |
2039 const LayoutBoxModelObject& paintInvalidationContainer) const; | 2046 const LayoutBoxModelObject& paintInvalidationContainer) const; |
2040 | 2047 |
| 2048 FloatQuad localToAncestorQuadInternal(const FloatQuad&, |
| 2049 const LayoutBoxModelObject* ancestor, |
| 2050 MapCoordinatesFlags = 0) const; |
| 2051 |
2041 void clearLayoutRootIfNeeded() const; | 2052 void clearLayoutRootIfNeeded() const; |
2042 | 2053 |
2043 bool isInert() const; | 2054 bool isInert() const; |
2044 | 2055 |
2045 void updateImage(StyleImage*, StyleImage*); | 2056 void updateImage(StyleImage*, StyleImage*); |
2046 | 2057 |
2047 void scheduleRelayout(); | 2058 void scheduleRelayout(); |
2048 | 2059 |
2049 void updateShapeImage(const ShapeValue*, const ShapeValue*); | 2060 void updateShapeImage(const ShapeValue*, const ShapeValue*); |
2050 void updateFillImages(const FillLayer* oldLayers, const FillLayer& newLayers); | 2061 void updateFillImages(const FillLayer* oldLayers, const FillLayer& newLayers); |
(...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2700 CORE_EXPORT void showLineTree(const blink::LayoutObject*); | 2711 CORE_EXPORT void showLineTree(const blink::LayoutObject*); |
2701 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1); | 2712 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1); |
2702 // We don't make object2 an optional parameter so that showLayoutTree | 2713 // We don't make object2 an optional parameter so that showLayoutTree |
2703 // can be called from gdb easily. | 2714 // can be called from gdb easily. |
2704 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1, | 2715 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1, |
2705 const blink::LayoutObject* object2); | 2716 const blink::LayoutObject* object2); |
2706 | 2717 |
2707 #endif | 2718 #endif |
2708 | 2719 |
2709 #endif // LayoutObject_h | 2720 #endif // LayoutObject_h |
OLD | NEW |