| 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. All rights reserv
ed. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv
ed. |
| 7 * Copyright (C) 2009 Google Inc. All rights reserved. | 7 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
| 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 968 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 979 for (size_t i = 1; i < n; ++i) | 979 for (size_t i = 1; i < n; ++i) |
| 980 result.unite(rects[i]); | 980 result.unite(rects[i]); |
| 981 return result; | 981 return result; |
| 982 } | 982 } |
| 983 | 983 |
| 984 IntRect LayoutObject::absoluteOutlineBoundingBoxRect() const | 984 IntRect LayoutObject::absoluteOutlineBoundingBoxRect() const |
| 985 { | 985 { |
| 986 Vector<LayoutRect> rects; | 986 Vector<LayoutRect> rects; |
| 987 const LayoutBoxModelObject* container = enclosingLayer()->layoutObject(); | 987 const LayoutBoxModelObject* container = enclosingLayer()->layoutObject(); |
| 988 addOutlineRects(rects, LayoutPoint(localToContainerPoint(FloatPoint(), conta
iner))); | 988 addOutlineRects(rects, LayoutPoint(localToContainerPoint(FloatPoint(), conta
iner))); |
| 989 return container->localToAbsoluteQuad(FloatQuad(unionRect(rects))).enclosing
BoundingBox(); | 989 return container->localToAbsoluteQuad(FloatQuad(FloatRect(unionRect(rects)))
).enclosingBoundingBox(); |
| 990 } | 990 } |
| 991 | 991 |
| 992 FloatRect LayoutObject::absoluteBoundingBoxRectForRange(const Range* range) | 992 FloatRect LayoutObject::absoluteBoundingBoxRectForRange(const Range* range) |
| 993 { | 993 { |
| 994 if (!range || !range->startContainer()) | 994 if (!range || !range->startContainer()) |
| 995 return FloatRect(); | 995 return FloatRect(); |
| 996 | 996 |
| 997 range->ownerDocument().updateLayout(); | 997 range->ownerDocument().updateLayout(); |
| 998 | 998 |
| 999 Vector<FloatQuad> quads; | 999 Vector<FloatQuad> quads; |
| (...skipping 2384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3384 const blink::LayoutObject* root = object1; | 3384 const blink::LayoutObject* root = object1; |
| 3385 while (root->parent()) | 3385 while (root->parent()) |
| 3386 root = root->parent(); | 3386 root = root->parent(); |
| 3387 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); | 3387 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); |
| 3388 } else { | 3388 } else { |
| 3389 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); | 3389 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); |
| 3390 } | 3390 } |
| 3391 } | 3391 } |
| 3392 | 3392 |
| 3393 #endif | 3393 #endif |
| OLD | NEW |