OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 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) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 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 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. | 9 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. |
10 * (http://www.torchmobile.com/) | 10 * (http://www.torchmobile.com/) |
(...skipping 940 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
951 size_t n = quads.size(); | 951 size_t n = quads.size(); |
952 if (n == 0) | 952 if (n == 0) |
953 return FloatRect(); | 953 return FloatRect(); |
954 | 954 |
955 FloatRect result = quads[0].boundingBox(); | 955 FloatRect result = quads[0].boundingBox(); |
956 for (size_t i = 1; i < n; ++i) | 956 for (size_t i = 1; i < n; ++i) |
957 result.unite(quads[i].boundingBox()); | 957 result.unite(quads[i].boundingBox()); |
958 return result; | 958 return result; |
959 } | 959 } |
960 | 960 |
961 IntRect LayoutObject::absoluteBoundingBoxRect() const { | 961 IntRect LayoutObject::absoluteBoundingBoxRect(MapCoordinatesFlags flags) const { |
962 Vector<FloatQuad> quads; | 962 Vector<FloatQuad> quads; |
963 absoluteQuads(quads); | 963 absoluteQuads(quads, flags); |
964 | 964 |
965 size_t n = quads.size(); | 965 size_t n = quads.size(); |
966 if (!n) | 966 if (!n) |
967 return IntRect(); | 967 return IntRect(); |
968 | 968 |
969 IntRect result = quads[0].enclosingBoundingBox(); | 969 IntRect result = quads[0].enclosingBoundingBox(); |
970 for (size_t i = 1; i < n; ++i) | 970 for (size_t i = 1; i < n; ++i) |
971 result.unite(quads[i].enclosingBoundingBox()); | 971 result.unite(quads[i].enclosingBoundingBox()); |
972 return result; | 972 return result; |
973 } | 973 } |
(...skipping 2518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3492 const blink::LayoutObject* root = object1; | 3492 const blink::LayoutObject* root = object1; |
3493 while (root->parent()) | 3493 while (root->parent()) |
3494 root = root->parent(); | 3494 root = root->parent(); |
3495 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); | 3495 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); |
3496 } else { | 3496 } else { |
3497 WTFLogAlways("%s", "Cannot showLayoutTree. Root is (nil)"); | 3497 WTFLogAlways("%s", "Cannot showLayoutTree. Root is (nil)"); |
3498 } | 3498 } |
3499 } | 3499 } |
3500 | 3500 |
3501 #endif | 3501 #endif |
OLD | NEW |