| 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) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv
ed. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv
ed. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 697 RenderObject* o = renderer(); | 697 RenderObject* o = renderer(); |
| 698 | 698 |
| 699 if (!o->isInline() || o->isReplaced()) { | 699 if (!o->isInline() || o->isReplaced()) { |
| 700 point = o->localToAbsolute(FloatPoint(), UseTransforms); | 700 point = o->localToAbsolute(FloatPoint(), UseTransforms); |
| 701 return true; | 701 return true; |
| 702 } | 702 } |
| 703 | 703 |
| 704 // find the next text/image child, to get a position | 704 // find the next text/image child, to get a position |
| 705 while (o) { | 705 while (o) { |
| 706 RenderObject* p = o; | 706 RenderObject* p = o; |
| 707 if (o->firstChild()) { | 707 if (RenderObject* oFirstChild = o->slowFirstChild()) { |
| 708 o = o->firstChild(); | 708 o = oFirstChild; |
| 709 } else if (o->nextSibling()) { | 709 } else if (o->nextSibling()) { |
| 710 o = o->nextSibling(); | 710 o = o->nextSibling(); |
| 711 } else { | 711 } else { |
| 712 RenderObject* next = 0; | 712 RenderObject* next = 0; |
| 713 while (!next && o->parent()) { | 713 while (!next && o->parent()) { |
| 714 o = o->parent(); | 714 o = o->parent(); |
| 715 next = o->nextSibling(); | 715 next = o->nextSibling(); |
| 716 } | 716 } |
| 717 o = next; | 717 o = next; |
| 718 | 718 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 757 | 757 |
| 758 RenderObject* o = renderer(); | 758 RenderObject* o = renderer(); |
| 759 if (!o->isInline() || o->isReplaced()) { | 759 if (!o->isInline() || o->isReplaced()) { |
| 760 RenderBox* box = toRenderBox(o); | 760 RenderBox* box = toRenderBox(o); |
| 761 point = o->localToAbsolute(LayoutPoint(box->size()), UseTransforms); | 761 point = o->localToAbsolute(LayoutPoint(box->size()), UseTransforms); |
| 762 return true; | 762 return true; |
| 763 } | 763 } |
| 764 | 764 |
| 765 // find the last text/image child, to get a position | 765 // find the last text/image child, to get a position |
| 766 while (o) { | 766 while (o) { |
| 767 if (o->lastChild()) { | 767 if (RenderObject* oLastChild = o->slowLastChild()) { |
| 768 o = o->lastChild(); | 768 o = oLastChild; |
| 769 } else if (o->previousSibling()) { | 769 } else if (o->previousSibling()) { |
| 770 o = o->previousSibling(); | 770 o = o->previousSibling(); |
| 771 } else { | 771 } else { |
| 772 RenderObject* prev = 0; | 772 RenderObject* prev = 0; |
| 773 while (!prev) { | 773 while (!prev) { |
| 774 o = o->parent(); | 774 o = o->parent(); |
| 775 if (!o) | 775 if (!o) |
| 776 return false; | 776 return false; |
| 777 prev = o->previousSibling(); | 777 prev = o->previousSibling(); |
| 778 } | 778 } |
| (...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1218 return true; | 1218 return true; |
| 1219 | 1219 |
| 1220 if (node->isElementNode() && toElement(node)->shadow()) | 1220 if (node->isElementNode() && toElement(node)->shadow()) |
| 1221 return true; | 1221 return true; |
| 1222 | 1222 |
| 1223 return false; | 1223 return false; |
| 1224 } | 1224 } |
| 1225 #endif | 1225 #endif |
| 1226 | 1226 |
| 1227 } // namespace WebCore | 1227 } // namespace WebCore |
| OLD | NEW |