| 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) 2003, 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. | 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. |
| 7 * Copyright (C) 2006 Andrew Wellington (proton@wiretapped.net) | 7 * Copyright (C) 2006 Andrew Wellington (proton@wiretapped.net) |
| 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 661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 672 | 672 |
| 673 unsigned offset = start; | 673 unsigned offset = start; |
| 674 for (RenderObject* child = childAt(start); child && offset < end; child = ch
ild->nextSibling(), ++offset) { | 674 for (RenderObject* child = childAt(start); child && offset < end; child = ch
ild->nextSibling(), ++offset) { |
| 675 if (child->isText() || child->isInline() || child->isAnonymousBlock()) { | 675 if (child->isText() || child->isInline() || child->isAnonymousBlock()) { |
| 676 FloatPoint absPos = child->localToAbsoluteForContent(FloatPoint()); | 676 FloatPoint absPos = child->localToAbsoluteForContent(FloatPoint()); |
| 677 child->absoluteRects(rects, absPos.x(), absPos.y()); | 677 child->absoluteRects(rects, absPos.x(), absPos.y()); |
| 678 } | 678 } |
| 679 } | 679 } |
| 680 } | 680 } |
| 681 | 681 |
| 682 void RenderContainer::collectAbsoluteLineBoxQuads(Vector<FloatQuad>& quads, unsi
gned start, unsigned end, bool useSelectionHeight) |
| 683 { |
| 684 if (!m_firstChild && (isInline() || isAnonymousBlock())) { |
| 685 absoluteQuads(quads); |
| 686 return; |
| 687 } |
| 688 |
| 689 if (!m_firstChild) |
| 690 return; |
| 691 |
| 692 unsigned offset = start; |
| 693 for (RenderObject* child = childAt(start); child && offset < end; child = ch
ild->nextSibling(), ++offset) { |
| 694 if (child->isText() || child->isInline() || child->isAnonymousBlock()) |
| 695 child->absoluteQuads(quads); |
| 696 } |
| 697 } |
| 698 |
| 682 #undef DEBUG_LAYOUT | 699 #undef DEBUG_LAYOUT |
| 683 | 700 |
| 684 } // namespace WebCore | 701 } // namespace WebCore |
| OLD | NEW |