| 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 944 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 955 // See LayoutBlock.h for some extra explanations on containing blocks. | 955 // See LayoutBlock.h for some extra explanations on containing blocks. |
| 956 LayoutBlock* containingBlock() const; | 956 LayoutBlock* containingBlock() const; |
| 957 | 957 |
| 958 bool canContainAbsolutePositionObjects() const | 958 bool canContainAbsolutePositionObjects() const |
| 959 { | 959 { |
| 960 return isPositioned() || canContainFixedPositionObjects(); | 960 return isPositioned() || canContainFixedPositionObjects(); |
| 961 } | 961 } |
| 962 | 962 |
| 963 bool canContainFixedPositionObjects() const | 963 bool canContainFixedPositionObjects() const |
| 964 { | 964 { |
| 965 return isLayoutView() || (hasTransformRelatedProperty() && isLayoutBlock
()) || isSVGForeignObject() || style()->containsPaint(); | 965 return isLayoutView() || ((hasTransformRelatedProperty() || style()->con
tainsPaint()) && isLayoutBlock()) || isSVGForeignObject(); |
| 966 } | 966 } |
| 967 | 967 |
| 968 // Convert the given local point to absolute coordinates | 968 // Convert the given local point to absolute coordinates |
| 969 // FIXME: Temporary. If UseTransforms is true, take transforms into account.
Eventually localToAbsolute() will always be transform-aware. | 969 // FIXME: Temporary. If UseTransforms is true, take transforms into account.
Eventually localToAbsolute() will always be transform-aware. |
| 970 FloatPoint localToAbsolute(const FloatPoint& localPoint = FloatPoint(), MapC
oordinatesFlags = 0) const; | 970 FloatPoint localToAbsolute(const FloatPoint& localPoint = FloatPoint(), MapC
oordinatesFlags = 0) const; |
| 971 | 971 |
| 972 // If the LayoutBoxModelObject ancestor is non-null, the input point is in t
he space of the ancestor. | 972 // If the LayoutBoxModelObject ancestor is non-null, the input point is in t
he space of the ancestor. |
| 973 // Otherwise: | 973 // Otherwise: |
| 974 // If TraverseDocumentBoundaries is specified, the input point is in the s
pace of the local root frame. | 974 // If TraverseDocumentBoundaries is specified, the input point is in the s
pace of the local root frame. |
| 975 // Otherwise, the input point is in the space of the containing frame. | 975 // Otherwise, the input point is in the space of the containing frame. |
| (...skipping 1196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2172 void showTree(const blink::LayoutObject*); | 2172 void showTree(const blink::LayoutObject*); |
| 2173 void showLineTree(const blink::LayoutObject*); | 2173 void showLineTree(const blink::LayoutObject*); |
| 2174 void showLayoutTree(const blink::LayoutObject* object1); | 2174 void showLayoutTree(const blink::LayoutObject* object1); |
| 2175 // We don't make object2 an optional parameter so that showLayoutTree | 2175 // We don't make object2 an optional parameter so that showLayoutTree |
| 2176 // can be called from gdb easily. | 2176 // can be called from gdb easily. |
| 2177 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec
t* object2); | 2177 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec
t* object2); |
| 2178 | 2178 |
| 2179 #endif | 2179 #endif |
| 2180 | 2180 |
| 2181 #endif // LayoutObject_h | 2181 #endif // LayoutObject_h |
| OLD | NEW |