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 2137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2148 *repaintContainerSkipped = true; | 2148 *repaintContainerSkipped = true; |
2149 o = o->parent(); | 2149 o = o->parent(); |
2150 } | 2150 } |
2151 } else if (pos == AbsolutePosition) { | 2151 } else if (pos == AbsolutePosition) { |
2152 // Same goes here. We technically just want our containing block, but | 2152 // Same goes here. We technically just want our containing block, but |
2153 // we may not have one if we're part of an uninstalled subtree. We'll | 2153 // we may not have one if we're part of an uninstalled subtree. We'll |
2154 // climb as high as we can though. | 2154 // climb as high as we can though. |
2155 while (o && o->style()->position() == StaticPosition && !o->isRenderView
() && !(o->hasTransform() && o->isRenderBlock())) { | 2155 while (o && o->style()->position() == StaticPosition && !o->isRenderView
() && !(o->hasTransform() && o->isRenderBlock())) { |
2156 if (repaintContainerSkipped && o == repaintContainer) | 2156 if (repaintContainerSkipped && o == repaintContainer) |
2157 *repaintContainerSkipped = true; | 2157 *repaintContainerSkipped = true; |
| 2158 #if ENABLE(SVG) |
| 2159 if (o->isSVGForeignObject()) // foreignObject is the containing
block for contents inside it |
| 2160 break; |
| 2161 #endif |
2158 o = o->parent(); | 2162 o = o->parent(); |
2159 } | 2163 } |
2160 } | 2164 } |
2161 | 2165 |
2162 return o; | 2166 return o; |
2163 } | 2167 } |
2164 | 2168 |
2165 bool RenderObject::isSelectionBorder() const | 2169 bool RenderObject::isSelectionBorder() const |
2166 { | 2170 { |
2167 SelectionState st = selectionState(); | 2171 SelectionState st = selectionState(); |
(...skipping 611 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2779 { | 2783 { |
2780 if (object1) { | 2784 if (object1) { |
2781 const WebCore::RenderObject* root = object1; | 2785 const WebCore::RenderObject* root = object1; |
2782 while (root->parent()) | 2786 while (root->parent()) |
2783 root = root->parent(); | 2787 root = root->parent(); |
2784 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); | 2788 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); |
2785 } | 2789 } |
2786 } | 2790 } |
2787 | 2791 |
2788 #endif | 2792 #endif |
OLD | NEW |