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) 2005 Allan Sandfeld Jensen (kde@carewolf.com) | 4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) |
5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) | 5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) |
6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv
ed. | 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv
ed. |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 for (RenderObject* curr = parent(); curr && !curr->isRenderView(); curr
= curr->parent()) { | 276 for (RenderObject* curr = parent(); curr && !curr->isRenderView(); curr
= curr->parent()) { |
277 if (curr->isRenderBlock()) { | 277 if (curr->isRenderBlock()) { |
278 RenderBlock* currBlock = toRenderBlock(curr); | 278 RenderBlock* currBlock = toRenderBlock(curr); |
279 if (!parentBlock || currBlock->containsFloat(this)) | 279 if (!parentBlock || currBlock->containsFloat(this)) |
280 parentBlock = currBlock; | 280 parentBlock = currBlock; |
281 } | 281 } |
282 } | 282 } |
283 | 283 |
284 if (parentBlock) { | 284 if (parentBlock) { |
285 RenderObject* parent = parentBlock->parent(); | 285 RenderObject* parent = parentBlock->parent(); |
286 if (parent && parent->isDeprecatedFlexibleBox()) | 286 if (parent && parent->isFlexibleBoxIncludingDeprecated()) |
287 parentBlock = toRenderBlock(parent); | 287 parentBlock = toRenderBlock(parent); |
288 | 288 |
289 parentBlock->markSiblingsWithFloatsForLayout(this); | 289 parentBlock->markSiblingsWithFloatsForLayout(this); |
290 parentBlock->markAllDescendantsWithFloatsForLayout(this, false); | 290 parentBlock->markAllDescendantsWithFloatsForLayout(this, false); |
291 } | 291 } |
292 } | 292 } |
293 | 293 |
294 if (isPositioned()) { | 294 if (isPositioned()) { |
295 for (RenderObject* curr = parent(); curr; curr = curr->parent()) { | 295 for (RenderObject* curr = parent(); curr; curr = curr->parent()) { |
296 if (curr->isRenderBlock()) | 296 if (curr->isRenderBlock()) |
(...skipping 3597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3894 RenderBlock* containerBlock = containingBlock(); | 3894 RenderBlock* containerBlock = containingBlock(); |
3895 if (!containerBlock || containerBlock == this) | 3895 if (!containerBlock || containerBlock == this) |
3896 return locationOffset(); | 3896 return locationOffset(); |
3897 | 3897 |
3898 LayoutRect rect(frameRect()); | 3898 LayoutRect rect(frameRect()); |
3899 containerBlock->flipForWritingMode(rect); // FIXME: This is wrong if we are
an absolutely positioned object enclosed by a relative-positioned inline. | 3899 containerBlock->flipForWritingMode(rect); // FIXME: This is wrong if we are
an absolutely positioned object enclosed by a relative-positioned inline. |
3900 return LayoutSize(rect.x(), rect.y()); | 3900 return LayoutSize(rect.x(), rect.y()); |
3901 } | 3901 } |
3902 | 3902 |
3903 } // namespace WebCore | 3903 } // namespace WebCore |
OLD | NEW |