| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv
ed. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv
ed. |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 continue; | 219 continue; |
| 220 | 220 |
| 221 if ((child->isBox() && toRenderBox(child)->hasRelativeLogicalHeight(
)) | 221 if ((child->isBox() && toRenderBox(child)->hasRelativeLogicalHeight(
)) |
| 222 || child->style()->logicalHeight().isPercent() | 222 || child->style()->logicalHeight().isPercent() |
| 223 || child->style()->logicalMinHeight().isPercent() | 223 || child->style()->logicalMinHeight().isPercent() |
| 224 || child->style()->logicalMaxHeight().isPercent()) | 224 || child->style()->logicalMaxHeight().isPercent()) |
| 225 layoutScope.setChildNeedsLayout(child); | 225 layoutScope.setChildNeedsLayout(child); |
| 226 } | 226 } |
| 227 | 227 |
| 228 if (document().svgExtensions()) | 228 if (document().svgExtensions()) |
| 229 document().accessSVGExtensions()->invalidateSVGRootsWithRelativeLeng
thDescendents(&layoutScope); | 229 document().accessSVGExtensions().invalidateSVGRootsWithRelativeLengt
hDescendents(&layoutScope); |
| 230 } | 230 } |
| 231 | 231 |
| 232 ASSERT(!m_layoutState); | 232 ASSERT(!m_layoutState); |
| 233 if (!needsLayout()) | 233 if (!needsLayout()) |
| 234 return; | 234 return; |
| 235 | 235 |
| 236 LayoutState state; | 236 LayoutState state; |
| 237 initializeLayoutState(state); | 237 initializeLayoutState(state); |
| 238 | 238 |
| 239 m_pageLogicalHeightChanged = false; | 239 m_pageLogicalHeightChanged = false; |
| (...skipping 767 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1007 return viewWidth(IncludeScrollbars) / scale; | 1007 return viewWidth(IncludeScrollbars) / scale; |
| 1008 } | 1008 } |
| 1009 | 1009 |
| 1010 double RenderView::layoutViewportHeight() const | 1010 double RenderView::layoutViewportHeight() const |
| 1011 { | 1011 { |
| 1012 float scale = m_frameView ? m_frameView->frame().pageZoomFactor() : 1; | 1012 float scale = m_frameView ? m_frameView->frame().pageZoomFactor() : 1; |
| 1013 return viewHeight(IncludeScrollbars) / scale; | 1013 return viewHeight(IncludeScrollbars) / scale; |
| 1014 } | 1014 } |
| 1015 | 1015 |
| 1016 } // namespace WebCore | 1016 } // namespace WebCore |
| OLD | NEW |