| 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 | 172 |
| 173 if (height() != viewHeight()) { | 173 if (height() != viewHeight()) { |
| 174 if (RenderObject* backgroundRenderer = this->backgroundRenderer()) { | 174 if (RenderObject* backgroundRenderer = this->backgroundRenderer()) { |
| 175 // When background-attachment is 'fixed', we treat the viewport (ins
tead of the 'root' | 175 // When background-attachment is 'fixed', we treat the viewport (ins
tead of the 'root' |
| 176 // i.e. html or body) as the background positioning area, and we sho
uld full paint invalidation | 176 // i.e. html or body) as the background positioning area, and we sho
uld full paint invalidation |
| 177 // viewport resize if the background image is not composited and nee
ds full paint invalidation on | 177 // viewport resize if the background image is not composited and nee
ds full paint invalidation on |
| 178 // background positioning area resize. | 178 // background positioning area resize. |
| 179 if (!m_compositor || !m_compositor->needsFixedRootBackgroundLayer(la
yer())) { | 179 if (!m_compositor || !m_compositor->needsFixedRootBackgroundLayer(la
yer())) { |
| 180 if (backgroundRenderer->style()->hasFixedBackgroundImage() | 180 if (backgroundRenderer->style()->hasFixedBackgroundImage() |
| 181 && mustInvalidateFillLayersPaintOnHeightChange(backgroundRen
derer->style()->backgroundLayers())) | 181 && mustInvalidateFillLayersPaintOnHeightChange(backgroundRen
derer->style()->backgroundLayers())) |
| 182 return true; | 182 return true; |
| 183 } | 183 } |
| 184 } | 184 } |
| 185 } | 185 } |
| 186 | 186 |
| 187 return false; | 187 return false; |
| 188 } | 188 } |
| 189 | 189 |
| 190 void RenderView::layout() | 190 void RenderView::layout() |
| 191 { | 191 { |
| 192 if (!document().paginated()) | 192 if (!document().paginated()) |
| (...skipping 675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 868 return viewWidth(IncludeScrollbars) / scale; | 868 return viewWidth(IncludeScrollbars) / scale; |
| 869 } | 869 } |
| 870 | 870 |
| 871 double RenderView::layoutViewportHeight() const | 871 double RenderView::layoutViewportHeight() const |
| 872 { | 872 { |
| 873 float scale = m_frameView ? m_frameView->frame().pageZoomFactor() : 1; | 873 float scale = m_frameView ? m_frameView->frame().pageZoomFactor() : 1; |
| 874 return viewHeight(IncludeScrollbars) / scale; | 874 return viewHeight(IncludeScrollbars) / scale; |
| 875 } | 875 } |
| 876 | 876 |
| 877 } // namespace blink | 877 } // namespace blink |
| OLD | NEW |