| 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 3887 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3898 { | 3898 { |
| 3899 RenderBlock* containerBlock = containingBlock(); | 3899 RenderBlock* containerBlock = containingBlock(); |
| 3900 if (!containerBlock || containerBlock == this) | 3900 if (!containerBlock || containerBlock == this) |
| 3901 return locationOffset(); | 3901 return locationOffset(); |
| 3902 | 3902 |
| 3903 LayoutRect rect(frameRect()); | 3903 LayoutRect rect(frameRect()); |
| 3904 containerBlock->flipForWritingMode(rect); // FIXME: This is wrong if we are
an absolutely positioned object enclosed by a relative-positioned inline. | 3904 containerBlock->flipForWritingMode(rect); // FIXME: This is wrong if we are
an absolutely positioned object enclosed by a relative-positioned inline. |
| 3905 return LayoutSize(rect.x(), rect.y()); | 3905 return LayoutSize(rect.x(), rect.y()); |
| 3906 } | 3906 } |
| 3907 | 3907 |
| 3908 bool RenderBox::hasRelativeDimensions() const |
| 3909 { |
| 3910 return style()->height().isPercent() || style()->width().isPercent() |
| 3911 || style()->maxHeight().isPercent() || style()->maxWidth().isPercent
() |
| 3912 || style()->minHeight().isPercent() || style()->minWidth().isPercent
(); |
| 3913 } |
| 3914 |
| 3908 } // namespace WebCore | 3915 } // namespace WebCore |
| OLD | NEW |