| 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 } | 142 } |
| 143 | 143 |
| 144 FloatPoint RenderView::absoluteToLocal(FloatPoint containerPoint, bool fixed, bo
ol) const | 144 FloatPoint RenderView::absoluteToLocal(FloatPoint containerPoint, bool fixed, bo
ol) const |
| 145 { | 145 { |
| 146 if (fixed && m_frameView) | 146 if (fixed && m_frameView) |
| 147 containerPoint -= m_frameView->scrollOffset(); | 147 containerPoint -= m_frameView->scrollOffset(); |
| 148 | 148 |
| 149 return containerPoint; | 149 return containerPoint; |
| 150 } | 150 } |
| 151 | 151 |
| 152 FloatQuad RenderView::localToContainerQuad(const FloatQuad& localQuad, RenderBox
ModelObject* repaintContainer, bool fixed) const | 152 FloatQuad RenderView::localToContainerQuad(const FloatQuad& localQuad, RenderBox
* repaintContainer, bool fixed) const |
| 153 { | 153 { |
| 154 // If a container was specified, and was not 0 or the RenderView, | 154 // If a container was specified, and was not 0 or the RenderView, |
| 155 // then we should have found it by now. | 155 // then we should have found it by now. |
| 156 ASSERT_UNUSED(repaintContainer, !repaintContainer || repaintContainer == thi
s); | 156 ASSERT_UNUSED(repaintContainer, !repaintContainer || repaintContainer == thi
s); |
| 157 | 157 |
| 158 FloatQuad quad = localQuad; | 158 FloatQuad quad = localQuad; |
| 159 if (fixed && m_frameView) | 159 if (fixed && m_frameView) |
| 160 quad += m_frameView->scrollOffset(); | 160 quad += m_frameView->scrollOffset(); |
| 161 | 161 |
| 162 return quad; | 162 return quad; |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 // If we're a frame, repaintViewRectangle will have repainted via a RenderOb
ject in the | 265 // If we're a frame, repaintViewRectangle will have repainted via a RenderOb
ject in the |
| 266 // parent document. | 266 // parent document. |
| 267 if (document()->ownerElement()) | 267 if (document()->ownerElement()) |
| 268 return; | 268 return; |
| 269 | 269 |
| 270 if (compositor()->inCompositingMode()) | 270 if (compositor()->inCompositingMode()) |
| 271 compositor()->repaintCompositedLayersAbsoluteRect(ur); | 271 compositor()->repaintCompositedLayersAbsoluteRect(ur); |
| 272 #endif | 272 #endif |
| 273 } | 273 } |
| 274 | 274 |
| 275 void RenderView::computeRectForRepaint(RenderBoxModelObject* repaintContainer, I
ntRect& rect, bool fixed) | 275 void RenderView::computeRectForRepaint(RenderBox* repaintContainer, IntRect& rec
t, bool fixed) |
| 276 { | 276 { |
| 277 // If a container was specified, and was not 0 or the RenderView, | 277 // If a container was specified, and was not 0 or the RenderView, |
| 278 // then we should have found it by now. | 278 // then we should have found it by now. |
| 279 ASSERT_UNUSED(repaintContainer, !repaintContainer || repaintContainer == thi
s); | 279 ASSERT_UNUSED(repaintContainer, !repaintContainer || repaintContainer == thi
s); |
| 280 | 280 |
| 281 if (printing()) | 281 if (printing()) |
| 282 return; | 282 return; |
| 283 | 283 |
| 284 if (fixed && m_frameView) | 284 if (fixed && m_frameView) |
| 285 rect.move(m_frameView->scrollX(), m_frameView->scrollY()); | 285 rect.move(m_frameView->scrollX(), m_frameView->scrollY()); |
| (...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 688 void RenderView::willMoveOffscreen() | 688 void RenderView::willMoveOffscreen() |
| 689 { | 689 { |
| 690 #if USE(ACCELERATED_COMPOSITING) | 690 #if USE(ACCELERATED_COMPOSITING) |
| 691 if (m_compositor) | 691 if (m_compositor) |
| 692 m_compositor->willMoveOffscreen(); | 692 m_compositor->willMoveOffscreen(); |
| 693 #endif | 693 #endif |
| 694 } | 694 } |
| 695 | 695 |
| 696 } // namespace WebCore | 696 } // namespace WebCore |
| 697 | 697 |
| OLD | NEW |